You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Elaine Li <el...@gmail.com> on 2009/10/08 16:10:02 UTC

correct syntax for boolean search

Hi,

What is the correct syntax for the following boolean search from a field?

fieldname1:(word_a1 or word_b1) && (word_a2 or word_b2) && (word_a3 or
word_b3) && fieldname2:.....

Thanks.

Elaine

Re: correct syntax for boolean search

Posted by Avlesh Singh <av...@gmail.com>.
q=+fieldname1:(+(word_a1 word_b1) +(word_a2 word_b2) +(word_a3 word_b3))
+fieldname2:...

Cheers
Avlesh

On Thu, Oct 8, 2009 at 7:40 PM, Elaine Li <el...@gmail.com> wrote:

> Hi,
>
> What is the correct syntax for the following boolean search from a field?
>
> fieldname1:(word_a1 or word_b1) && (word_a2 or word_b2) && (word_a3 or
> word_b3) && fieldname2:.....
>
> Thanks.
>
> Elaine
>