Thanks Yonik.
I guess the confusing thing is if the lucene query parser (for nested
querries) does backslash escaping, and the LocalParams also does
backslash escaping when you have a nested query with local params,
with quotes at both places... the inner scope needs... double escaping?
Hmmm, well, the lucene query parser does basic backslash escaping, and
so does local params within quoted strings. You can also use
parameter derefererencing to avoid the need to escape values too.
Like you pointed out, using single quotes in some places can also
help.
But instead of me trying to
I am just trying to figure it out mostly, the particular thing I am
trying to do is a very general purpose mapper to complex dismax nested
querries. I could try to explain it, and we could go back and forth for
a while, and maybe I could convince you it makes sense to do what I'm
trying to do.
It's not clear if you're just trying to figure it all out, or get
something specific to work.
If you can give a specific example, we might be able to suggest easier
ways to achieve it rather than going escape crazy :-)
-Yonik
http://www.lucidimagination.com
On Tue, Jun 1, 2010 at 5:06 PM, Jonat
Thanks, the pointer to that documentation page (which somehow I had
missed), as well as Chris's response is very helpful.
The one thing I'm still not sure about, which I might be able to figure
it out through trial-and-error reverse engineering, is escaping issues
when you combine nested querr
In addition to yonik's point about the LocalParams wiki page (and please
let us know if you aren't sure of the answers to any of your questions
after reading it) I wanted to clear up one thing...
: Let's start with that not-nested query example. Can you in fact use it as
: above, to force dis
Have you seen
http://wiki.apache.org/solr/LocalParams
It may answer some of the questions, such as stating that "backslash
escaping works within quoted strings".
I'd encourage you to try things out with the example server and adding
debugQuery=true to your requests... it's the easiest way to figu
So I'm trying to wrap my head around nested querries. Also that thing
that isn't a nested query, but is similar, which I think is called
"LocalParams syntax", like:
&q={!dismax qf=$something}cat dog
(All my examples are not URL-encoded for clarity, of course they'd have
to be before sending