Hi folks,

In Lucene, how can I retrieve all documents that don't match the term of my
query?  That is, I want all documents that don't have the word "CAT".

The only way I can think of how to do it now is to create a 'dummy' field
which always contains a known value, say "1" and than build a query like so:

        ("1" in dummy) AND (NOT "CAT")

Can I still achieve my goal without the 'dummy' field

Regards,

-- George Aroush


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

Reply via email to