lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Technology Preview of new Lucene QueryParser
Date Mon, 22 Jan 2007 21:29:26 GMT

: With my syntax you can get real precedence that mixes with how no
: precedence (Lucene's unary operators) works. No precedence is created by
: allowing you to make any operator resolve first...any operator that
: resolves first connected with another operator that resolves first will
: behave as if neither has precedence over the other and generate a single
: BooleanQuery.

what i was trying to get at is that i don't think precedence is really the
issue -- it's the lack of unary operators.  If the only way to get a
single BooleanQuery is to use operators that have the exact same
precedence, and all operators are binary, then how to you create the
equivilent of QueryParser "+a b c -d -e" ? ... if i remember your syntax
correctly the only way to match the same documents is...
	"a & ( b | c ) ! d ! e"

...but it won't score the same way because the parens force a nested
boolean query to be created.


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

View raw message