lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
Subject Re: help with boolean expression
Date Mon, 28 Feb 2005 07:40:23 GMT
Omar Didi writes:
> I have a problem understanding how would lucene iterpret this boolean expression : A
> it neither return the same count as when I enter (A AND B) OR C nor A AND (B OR C). 
> if anyone knows how it is interpreted i would be thankful.
> thanks

A AND B OR C creates a query that requires A and B. C influcenes the 
score, but is neither sufficient nor required for a match.

IMO query parser is broken for queries mixing AND and OR without explicit
My favorite sample is `a AND b OR c AND d' which equals `a AND b AND c AND d'
in query parser.

I suggested a patch some time ago, but it's still pending in bugzilla.

Don't know if it's still usable with current sources.


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

View raw message