lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Engels" <>
Subject RE: query parsing
Date Wed, 22 Mar 2006 21:20:07 GMT
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

-----Original Message-----
From: Daniel Naber []
Sent: Wednesday, March 22, 2006 1:03 PM
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.



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

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

View raw message