lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <>
Subject Re: Ignore records that are missing a value in a field
Date Mon, 25 Jul 2011 16:10:52 GMT
So, with other words you want to exlude those records? :)
FilterQuery with a Range-Query could help: fq=-field:[* TO *]


Am 25.07.2011 17:53, schrieb Brian Lamb:
> Hi all,
> I have an optional field called "common_names". I would like to keep this
> field optional but at the same, occasionally do a search where I do not
> include results where there is no value set for this field. Is this possible
> to do within solr?
> In other words, I would like to do a search where if there is no value set
> for common_names, I would not want that record included in the search
> result.
> Thanks,
> Brian Lamb

View raw message