Nick, FAQ entry: http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-0cda565d913389773ca9c3246bde894c3e99084e
Otis ----- Original Message ---- From: Nick Atkins <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, March 22, 2006 3:16:47 PM Subject: Query for a non-value Hi there, How do I do a query for the value of a field not being equal to something? For example, we all do Query("field:value") but I want to do Query("NOT field:value") to essentially return all the documents that do not have fields with this value? I've tried this but Lucene always returns no documents when I know there are plenty of documents without that field set to that value. Many thanks, Nick. --------------------------------------------------------------------- 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]