Re: Search for null value or empty string in lucene

2006-12-06 Thread Erick Erickson
Perhaps the most straight-forward way would be to index a known unique value for each document that would have had a null entry. Conceptually, when a field would be null, index the value "nothinghere". Then you can just search on documents where the value is equal to "nothinghere". Alternatively,

Search for null value or empty string in lucene

2006-12-06 Thread Supriya Kumar Shyamal
Hi, I have some question regarding the search. In a document we can have several fields but not all fields have the value in all documents i.e. some fields in a document can have null or empty string. But how to search for a null field value in a document using the IndexSearcher? Any idea wil