You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by escher2k <es...@yahoo.com> on 2007/05/01 08:00:22 UTC

Faceted count syntax (exclude zeros)...

I am trying to execute a faceted count on a field called "load_id" and want
to exclude 0s. The URL below
doesn't seem to be excluding zeros. 
http://localhost:12002/solr/select/?qt=dismax&q=Y&qf=show_all_flag&fl=load_id&facet=true&facet.limit=-1&facet.field=load_id&facet.mincount=1&rows=0

Result (relevant part of XML):
<lst name="facet_fields">
	<lst name="load_id">
           <int name="20070424150841">0</int>
           <int name="20070425145301">0</int>
           <int name="20070426145301">80</int>
           <int name="20070427145302">81</int>
           <int name="20070428145301">77</int>
           <int name="20070429145301">62</int>
           <int name="20070430145301">31061</int>
      </lst>
</lst>

Thanks.
-- 
View this message in context: http://www.nabble.com/Faceted-count-syntax-%28exclude-zeros%29...-tf3673535.html#a10264961
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Faceted count syntax (exclude zeros)...

Posted by Chris Hostetter <ho...@fucit.org>.
: to exclude 0s. The URL below
: doesn't seem to be excluding zeros.
: http://localhost:12002/solr/select/?qt=dismax&q=Y&qf=show_all_flag&fl=load_id&facet=true&facet.limit=-1&facet.field=load_id&facet.mincount=1&rows=0

which version of Solr are you using?  facet.mincount was added after Solr
1.1, but you can use "facet.zeros=false" to getthe desired results.



-Hoss


RE: Faceted count syntax (exclude zeros)...

Posted by "Ge, Yao (Y.)" <yg...@ford.com>.
There is an bug related to "facet.mincount" in incubating version.
http://www.mail-archive.com/solr-user@lucene.apache.org/msg03269.html
-Yao 

-----Original Message-----
From: escher2k [mailto:escher2k@yahoo.com] 
Sent: Tuesday, May 01, 2007 2:00 AM
To: solr-user@lucene.apache.org
Subject: Faceted count syntax (exclude zeros)...


I am trying to execute a faceted count on a field called "load_id" and
want
to exclude 0s. The URL below
doesn't seem to be excluding zeros. 
http://localhost:12002/solr/select/?qt=dismax&q=Y&qf=show_all_flag&fl=lo
ad_id&facet=true&facet.limit=-1&facet.field=load_id&facet.mincount=1&row
s=0

Result (relevant part of XML):
<lst name="facet_fields">
	<lst name="load_id">
           <int name="20070424150841">0</int>
           <int name="20070425145301">0</int>
           <int name="20070426145301">80</int>
           <int name="20070427145302">81</int>
           <int name="20070428145301">77</int>
           <int name="20070429145301">62</int>
           <int name="20070430145301">31061</int>
      </lst>
</lst>

Thanks.
-- 
View this message in context:
http://www.nabble.com/Faceted-count-syntax-%28exclude-zeros%29...-tf3673
535.html#a10264961
Sent from the Solr - User mailing list archive at Nabble.com.