Re: nested querries, and LocalParams syntax

2010-06-02 Thread Jonathan Rochkind
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?

Re: nested querries, and LocalParams syntax

2010-06-01 Thread Yonik Seeley
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

Re: nested querries, and LocalParams syntax

2010-06-01 Thread Jonathan Rochkind
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.

Re: nested querries, and LocalParams syntax

2010-06-01 Thread Yonik Seeley
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

Re: nested querries, and LocalParams syntax

2010-06-01 Thread Jonathan Rochkind
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

Re: nested querries, and LocalParams syntax

2010-05-29 Thread Chris Hostetter
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

Re: nested querries, and LocalParams syntax

2010-05-26 Thread Yonik Seeley
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

nested querries, and LocalParams syntax

2010-05-26 Thread Jonathan Rochkind
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