lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy <angelf...@yahoo.com>
Subject Re: facet on null value
Date Fri, 05 Mar 2010 00:19:23 GMT
Are you saying if I append that query to the facet query then the repsonse from Solr will include
facet count for null?

Or that it is a separate query to get the count of null?

--- On Thu, 3/4/10, Lance Norskog <goksron@gmail.com> wrote:

From: Lance Norskog <goksron@gmail.com>
Subject: Re: facet on null value
To: solr-user@lucene.apache.org
Date: Thursday, March 4, 2010, 7:13 PM

This query will find them: *:* AND -A:[* TO *]

The '*:* AND' is to get around a weird quirk of Lucene. "Minus field
range star TO star" is the trick.

On Thu, Mar 4, 2010 at 3:06 PM, Andy <angelflow@yahoo.com> wrote:
> There's a field "A" I want to facet on.
>
> Some documents have no value for field "A". So they wouldn't show up in the list of facet
value options.
>
> I want to find a way to let users to find those documents. One way is to make Null an
option the users can choose, something like:
>
> value1 (4558)
> value2 (1345)
> Null (156)
> value3 (85)
>
> Is that something that Solr support?
>
>
>
>
>
>



-- 
Lance Norskog
goksron@gmail.com



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