lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Engels" <reng...@ix.netcom.com>
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
clause?

-----Original Message-----
From: Daniel Naber [mailto:lucenelist2005@danielnaber.de]
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message