On 2/23/07, Neville Burnell <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The following [simplified] query works well, however a variation which
> includes parenthesis seems to fail, in that it returns hits which should
> be excluded by the NOT term.
>
> This is surprising because in this simple case, the parenthesis
> shouldn't change the Boolean evaluation  ... any pointers?
>
> Working Query:  field1:value1 AND NOT field2:value2
> Failing Query:    field1:value1 AND ( NOT field2:value2 )

This is a carry over from Lucene. Currently queries must have at least
one positive clause. So a search for;

    NOT field2:value2

will return nothing. So ANDing this clause with another clause will
also return nothing. NOT clauses are more like filters than real
boolean clauses I guess. You are correct to say this is surprising and
it is something I should probably fix but it isn't urgent. I'll put it
on my TODO list.

Cheers,
Dave

-- 
Dave Balmain
http://www.davebalmain.com/
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to