lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
Subject Re: Unary Operators and Operator Precedence
Date Tue, 19 Jan 2010 17:13:25 GMT
> 3.) Does grouping or nesting affect results with unary operators? Does 
> using unary operators with binary operators affect results. For example, 
> in the query:
> 
>     (+a +b) OR c
> 
> has the "required" effect of the + (plus) operator been eliminated by 
> the OR operator, so that nevermind whether a record contains a or 
> contains b both of which supposedly are required, so long as it contains 
> c, it's a hit?

IMO, that's the only sensible way to handle unary operators.  If they were
global rather than nested, what would this query produce?

   (a AND -b) OR (b AND c)

Marvin Humphrey


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


Mime
View raw message