Re: facet on null value

2010-03-06 Thread Yonik Seeley
On Thu, Mar 4, 2010 at 10:33 PM, Lance Norskog wrote: > I have added facet.limit=5 to the above to make this easier. Here is > the part of the response: > > > - >   > - > - >  0 >  0 >  0 >  0 >  0 >  2 >   >   >   >   > > (What is the 2?) That's what happens when you have a null name/key in

Re: facet on null value

2010-03-05 Thread Lance Norskog
0, Lance Norskog wrote: > > From: Lance Norskog > 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 part of the respo

Re: facet on null value

2010-03-04 Thread Andy
: 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 part of the response: -   - -   0   0   0   0   0   2         (What is the 2?) On Thu, Mar 4, 2010 at 7:30 PM, Lance

Re: facet on null value

2010-03-04 Thread Lance Norskog
ange. 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 wrote: >> What would the response look like with this query? >> >> Can you give an example? >> >>

Re: facet on null value

2010-03-04 Thread Lance Norskog
> --- On Thu, 3/4/10, Chris Hostetter wrote: > > From: Chris Hostetter > 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 >

Re: facet on null value

2010-03-04 Thread Andy
What would the response look like with this query? Can you give an example? --- On Thu, 3/4/10, Chris Hostetter wrote: From: Chris Hostetter 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 f

Re: facet on null value

2010-03-04 Thread Chris Hostetter
: > 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

Re: facet on null value

2010-03-04 Thread Lance Norskog
Ah! I did not know this one. On Thu, Mar 4, 2010 at 5:01 PM, Andy wrote: > Yes. Thank you. > > --- On Thu, 3/4/10, Koji Sekiguchi wrote: > > From: Koji Sekiguchi > Subject: Re: facet on null value > To: solr-user@lucene.apache.org > Date: Thursday, March 4, 2010

Re: facet on null value

2010-03-04 Thread Andy
Yes. Thank you. --- On Thu, 3/4/10, Koji Sekiguchi wrote: From: Koji Sekiguchi Subject: Re: facet on null value To: solr-user@lucene.apache.org Date: Thursday, March 4, 2010, 7:21 PM Andy wrote: > There's a field "A" I want to facet on. > > Some documents have no valu

Re: facet on null value

2010-03-04 Thread Koji Sekiguchi
Andy 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: valu

Re: facet on null value

2010-03-04 Thread Andy
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 wrote: From: Lance Norskog Subject: Re: facet on null value To: solr-user

Re: facet on null value

2010-03-04 Thread Lance Norskog
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 wrote: > There's a field "A" I want to facet on. > > Some documents have no value for field "A". So they woul

facet on null value

2010-03-04 Thread Andy
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) valu