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: solr-lucene AND vs "+"
Date Thu, 03 Jun 2010 20:34:23 GMT
> Using solr-lucene query parser, is
> there a difference between using "AND" and using "+" in
> querries like this:
> 
> 1)   q= some_field:( one AND two AND "some
> phrase")
> 
> 2)   q= some_field:(+one +two +"some
> phrase")
> 
> Are those always exactly identical in all respects, or are
> there any differences in terms of result sets, relevancy
> ranking, or potentially performance?

Your two examples are identical. You can verify this by adding &debugQuery=on to your
search URL. 
AND OR NOT operators parsed/converted into their + - forms.

About unitary operators versus AND OR NOT :
http://wiki.apache.org/lucene-java/BooleanQuerySyntax


      

Mime
View raw message