You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Eric Jain <Er...@isb-sib.ch> on 2006/07/25 09:11:25 UTC
Precedence in PrecedenceQueryParser
The query "foo NOT bar AND baz" seems to be interpreted as "+foo -(+bar
+baz)" (using default operator AND). Is this a bug, or a feature?
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Precedence in PrecedenceQueryParser
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jul 25, 2006, at 3:11 AM, Eric Jain wrote:
> The query "foo NOT bar AND baz" seems to be interpreted as "+foo -
> (+bar +baz)" (using default operator AND). Is this a bug, or a
> feature?
It's been a while since I've touched PrecedenceQueryParser, but I
recall there still being some issues with it. I agree that this
seems like a bug and the NOT should have a higher precedence than AND.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org