lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Murzaku" <>
Subject RE: Searching for null value?
Date Fri, 11 Apr 2003 12:39:57 GMT
Hi PA,

I don't think a free standing NOT query works. The best way would be to
have a default value that is there for every record (some kind of
support field) which in turn can be combined with a NOT query, e.g.:
	+field:category -category:junk
which assumes you have a field called "field" and a field called

Just my 25 Fils,


-----Original Message-----
From: petite_abeille [] 
Sent: Friday, April 11, 2003 7:57 AM
Subject: Searching for null value?


Is there a simple way to query an index for documents which don't have 
a specific value (a keyword field in this instance). For example, I 
have documents with a category field and I would like to retrieve all 
the documents which don't have any category? Any way to express that as 
a Lucene query?




To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message