Hi,

The following query does not work as expected for me:
"alwaysTrueField:true (-name:john)"
neither does this:
"alwaysTrueField:true +(-name:john)"

It returns zero results, despite there being many documents without name
john. (alwaysTrueField is, needless to say, true for all documents).

This query works just as expected:
"alwaysTrueField:true -name:john"

i.e. it returns all those documents except those with name john.

Does lucene run a sub-query for each part of the query inside
parentheses, which is why the NOT query that is alone doesn't work? I am
using the following template for converting user queries into lucene
queries "alwaysTrueField:true +(<user query with a few modifications>)".
I need to put extra parentheses in order to retain the correctness of
the query. 

Any suggestions on how to work around this (buggy?) behaviour?

Many thanks,
Venu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to