lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Question about Boolean Operators
Date Wed, 02 Jan 2008 07:13:37 GMT

: What's the difference between the "AND" and the "+" boolean operators. Also
: the "NOT" and "-" boolean operators? Are each of these pair of operators
: functionally equivalent?
: >From the examples provided in the Query Syntax documentation at:
: it looks as if these are the same.

this doc may be of use to you...

In a nut shell: BooleanQuery is not really boolean ... prefix + and - 
corrispond directly to the MUST and MUST_NOT operators of a BooleanClause 
... AND, OR and NOT make best attempts at mapping singular clause rules to 
boolean operators.


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

View raw message