Re: Question about Boolean Operators

2008-01-02 Thread CowboyX
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.

Re: Question about Boolean Operators

2008-01-01 Thread Chris Hostetter
: 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

Re: Question about Boolean Operators

2008-01-01 Thread Chris
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(