Thanks for the responses. I think Ive got a handle on it now.
Cheers
--
View this message in context:
http://www.nabble.com/Question-about-Boolean-Operators-tp14573890p14587056.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
: 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:
: http://lucene.apache.org/java/docs/queryparse
Dear CowBoyX .
if you use lucene query function with boolean query . You can try to use
the BooleanQuery to create the logic with yourself.
Like the codeļ¼
BooleanQuery query = new BooleanQuery();
query.add(new TermQuery() , BooleanClause.Occur.MUST); // for +
or
query.add(