My understanding is that <int>2</int> means there are 2 documents missing a facet value.
But how does adding fq=-fieldName:[* TO *] enable users to click on that value to filter? There was no value, only the count (2) was returned. --- On Thu, 3/4/10, Lance Norskog <goks...@gmail.com> wrote: From: Lance Norskog <goks...@gmail.com> Subject: Re: facet on null value To: solr-user@lucene.apache.org Date: Thursday, March 4, 2010, 10:33 PM I have added facet.limit=5 to the above to make this easier. Here is the <facets> part of the response: - <lst name="facet_counts"> <lst name="facet_queries" /> - <lst name="facet_fields"> - <lst name="features"> <int name="0">0</int> <int name="000">0</int> <int name="1">0</int> <int name="1024">0</int> <int name="118">0</int> <int>2</int> </lst> </lst> <lst name="facet_dates" /> </lst> (What is the <int>2</int>?) On Thu, Mar 4, 2010 at 7:30 PM, Lance Norskog <goks...@gmail.com> wrote: > Set up the out-of-the-box example Solr. Index the documents in > example/exampledocs. > > Run this query: > > http://localhost:8983/solr/select/?q=*:*&fq=-features:[* TO > *]&version=2.2&start=0&rows=10&indent=on&facet=true&facet.field=features&facet.missing=on > > Now, change facet.missing=on to =off. There is no change. You get all > of the 0-valued facets anyway. > > What exactly is facet.missing supposed to do with this query? > > On Thu, Mar 4, 2010 at 6:39 PM, Andy <angelf...@yahoo.com> wrote: >> What would the response look like with this query? >> >> Can you give an example? >> >> --- On Thu, 3/4/10, Chris Hostetter <hossman_luc...@fucit.org> wrote: >> >> From: Chris Hostetter <hossman_luc...@fucit.org> >> Subject: Re: facet on null value >> To: solr-user@lucene.apache.org >> Date: Thursday, March 4, 2010, 8:40 PM >> >> >> : > 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: >> >> : Isn't it facet.missing=on? >> : http://wiki.apache.org/solr/SimpleFacetParameters#facet.missing >> >> that will get you the count, but if you then want to let them click on >> that value to filter your query you need: fq=-fieldName:[* TO *] >> >> >> >> -Hoss >> >> >> >> >> > > > > -- > Lance Norskog > goks...@gmail.com > -- Lance Norskog goks...@gmail.com