lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
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 
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message