lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <...@digimem.net>
Subject Re: searching on for null/blank field val
Date Thu, 14 Nov 2002 10:14:10 GMT
I think you will have to go the psuedo null/blank placeholder route.


--
Ian.
ian@digimem.net


> aaz@leopard.com (aaz) wrote 
>
> 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
> 
> 
----------------------------------------------------------------------
Searchable personal storage and archiving from http://www.digimem.net/


Mime
View raw message