lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Does SOLR Allow q= (A or B) AND (C or D)?
Date Thu, 27 May 2010 21:47:50 GMT

> I have a query need that requires multiple OR conditions,
> and, there must be
> a match in each condition for the query to provide a
> result.
> 
> The search would be * (A or B) AND (C or D)* and the only
> valid results it
> could turn up are:
> 
> A B
> A C
> B C
> B D
> 
> Can anyone provide guidance as to how to implement this in
> the query string?

It should be something like : q=+(A B) +(C D)&q.op=OR


      

Mime
View raw message