On 1/29/07, escher2k <[EMAIL PROTECTED]> wrote:

Hi,
  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.

Multiple fq's are AND'd together, but a single fq can contain
arbitrary lucene query syntax.

So
fq=colA[10 TO 20] AND (state:USA OR country:USA)
or
fq=colA[10 TO 20])&fq=state:USA OR country:USA

The different lies in the caching behaviour.
-Mike

Reply via email to