Re: A "not" query question

2005-01-04 Thread Erik Hatcher
Or use IndexReader and find the document id's that contain the term you're avoiding, then access all the documents but those. Erik On Jan 4, 2005, at 1:39 PM, Scott Ganyo wrote: 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

Re: A "not" query question

2005-01-04 Thread Scott Ganyo
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 "not" query question

2005-01-04 Thread George Aroush
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