Read my own complaints about QueryParser here: http://marc.theaimsgroup.com/?l=lucene-user&m=116069469827270&w=2
You're in for a surprise. As alluded by Erick, the stock QP doesn't quite do what one (legitimately IMO) expects. --Renaud -----Original Message----- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 11:56 AM To: java-user@lucene.apache.org Subject: Re: BooleanQuery These are not boolean operators, which is often confusing. See the thread "*Another problem with the QueryParser*" for an exposition by Chris about how these operate. This may change what you expect to come back from the parser... If it doesn't, then maybe someone else can chime in <G>... Erick On 12/6/06, Marcelo Ohashi <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anyone know if lucene can handle complex boolean queries > like the following ones? > > 1. T: (A OR NOT B) > 2. (T:A AND NOT T:B) OR NOT T:C > > Cause I figured out in some tests that the results were not > really what I expected. > > Thanks in advance, > > _____________ > Marcelo Ohashi > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]