lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From findbestopensource <>
Subject Re: Searching for Empty Field
Date Fri, 15 Jul 2011 04:52:24 GMT
Hi Jason,

The easiest way would be to set some default value for the field which is
empty, Say EMPTY and search for this string to check out the records having
empty field.


On Fri, Jul 15, 2011 at 5:32 AM, Trieu, Jason T <>wrote:

> Hi all,
> I read postings about searching for empty field with but did not find any
> cases of successful search using query language syntax itself(-myField:[* TO
> *] for example). I  saw that other techniques like using a filter were used
> to get around this syntax string limitation.   Given that the latest
> postings on this topic were a few years old, I am wondering  if there have
> been any changes in Lucene query syntax to support searching for empty
> fields.   Has anyone been successfully searched for empty fields with recent
> Lucene releases?
> Thanks
> Jason

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