lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Searching for empty fields
Date Wed, 07 May 2008 14:02:43 GMT
the really simple way is to index "none" for fields that are empty then just
search on color:none.....



On Tue, May 6, 2008 at 9:06 PM, Brendan Grainger <brendan.grainger@gmail.com>
wrote:

> Hi,
>
> Not sure if this is what you want, but to search for 'empty' fields we use
> something like this:
>
> (*:* AND -color:[* TO *])
>
> Hope that helps.
>
> Brendan
>
>
> On May 6, 2008, at 6:43 PM, Daniel Andersson wrote:
>
>  Hi (again)
> >
> > One of the fields in my database is color. It can either contain a value
> > (blue, red etc) or be blank. When I perform a search with facet counts on, I
> > get a count for "_empty_".
> >
> > How do I go about searching for this?
> >
> > I've tried color:"" which gives me an error. Same with color:.
> > color:_empty_ returns nothing at all.
> >
> > Thanks in advance!
> >
> > / d
> >
>
>

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