Nope, that's the way to do it.

S

On Jan 4, 2005, at 11:53 AM, George Aroush wrote:

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]



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



Reply via email to