lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <>
Subject Re: AND not as a boolean operator in Phrase
Date Wed, 26 Mar 2014 02:21:58 GMT
(2014/03/26 2:29), abhishek jain wrote:
> hi friends,
> when i search for "A and B" it gives me result for A , B , i am not sure
> why?
> Please guide how can i exact match when it is within phrase/quotes.

Generally speaking (w/ LuceneQParser), if you want phrase match results,
use quotes, i.e. q="A B". If you want results which contain both terms A
and B, do not use quotes but boolean operator AND, i.e. q=A AND B.


View raw message