lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aaz" <...@leopard.com>
Subject searching on for null/blank field val
Date Wed, 13 Nov 2002 18:48:00 GMT
Hi,
We have a document with 2 Fields.

a) title = "X"
b) fieldX = ""  

How can I do a search to only get documents where fieldX = "". When I construct a TermQuery
against FieldX with "" as the value I get no results. What is the best way to do searches
for such values or should we create some psuedo null/blank placeholder to store in such fields
with blank values?

thanks


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message