lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: Strange search results with wildcard - Bug?
Date Fri, 24 Sep 2004 08:36:23 GMT
Ulrich Mayring writes:
> Daniel Naber wrote:
> > 
> > AND always refers to the terms on both sides, +/- only refers to the term 
> > on the right. So "a AND b" -> "+a +b" is correct.
> 
> *slap forehead* - you're right. Wasn't there something about operator 
> precedence way back when.... ;-)
> 
Yes. January. And it's still in bugzilla. :-(

But it would not make a difference in this case, since AND has higher 
precedence, so 
a OR b AND c 
is
a OR (b AND c)
which is correctly done as
a (+b +c) 
in boolean queries.
a +b +c is different, since it won't find documents containing only a.
Occurences of a only modify score in this case.

Morus


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message