In my perusal of the code (SimpleFacets#getFacetQueryCounts), I'm not seeing that facet.query respects facet.limit even. If you asked for a count for a query, you get it regardless of any other parameters such as mincount or limit.

        Erik

p.s. I also notice that facet.query always uses the SolrQueryParser rather than a pluggable QParser implementation. We should switch that, eh?

On Dec 5, 2007, at 5:00 AM, Dilip.TS wrote:
Hi,
Ideally the params.put("facet.mincount","1"); used for the facet search
should do the same.
 It works fine in my case.
Regards
Dilip.

-----Original Message-----
From: Britske [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 3:19 PM
To: solr-user@lucene.apache.org
Subject: possible to set mincount on facetquery?



is it possible to set a mincount on a facetquery as well as on a facetfield? I have a situation in which I want to group facetqueries (price- ranges) but
I obviously dont want to show ranges with 0 results.

I tried things like: f.price:[0 TO 50].facet.mincount=1 and f.price: [0 TO
50].query.mincount=1.

Thanks,
Geert-Jan
--

#a14168182
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to