lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: OR filtering...
Date Tue, 30 Jan 2007 00:26:20 GMT
On 1/29/07, escher2k <escher2k@yahoo.com> 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

-Yonik

Mime
View raw message