On Jan 29, 2007, at 7:26 PM, Yonik Seeley wrote:

On 1/29/07, escher2k <[EMAIL PROTECTED]> wrote:
I have a question about the syntax for doing an OR filter in my URL. How
do I specify
where ((fq=colA[10 TO 20]) AND (fq=state:USA OR fq=country:USA) ? Basically,
I am
doing a search for a keyword across certain fields and I want to filter the
result set.
The user can input city/state/country in a text field on the UI - hence the
OR.

A single fq with the OR clauses in lucene query parser syntax should work.

&fq=colA[10 TO 20]&fq=state:USA OR country:USA

Note that this should be fq=colA:[10 TO 20], etc. (note the colon after "colA").

(or is another of those "get with it Erik, QueryParser handles this already" sorta things? ;)

        Erik

Reply via email to