Any suggestions on what to do then, as the following query exhibits the same behavior
(+cat) (-dog) Due to the implied AND. Removing the parenthesis allows it to work. It doesn't seem that adding parenthesis in this case should cause the query to fail??? Doesn't it suggest that there is a bug in the BooleanQuery scorer is not handling the case of a REQUIRED clause that is a BooleanQuery, that consists of a single prohibited boolean clause? -----Original Message----- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 1:03 PM To: java-dev@lucene.apache.org Subject: Re: query parsing On Mittwoch 22 März 2006 18:49, Robert Engels wrote: > If I use > > (+cat) AND (-dog) > > it parses to > > +(+cat) +(-dog) > > and returns no results. > > Is this a known issue? Basically yes. QueryParser is known to exhibit strange behavior when combining +/- and AND/OR/NOT. Regards Daniel -- http://www.danielnaber.de --------------------------------------------------------------------- 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]