Hi Koji,
Thanks, "f.<field name>.facet.mincount works.
Thanks to you Chris as well,
I was expecting that if I set the mincount to be ZERO, then facet will be
totally ignored. But that is not the case.
For example: If I want to display facets on fields A, B, C and D. But in
case a field say C, does not have any data, then C should be excluded from
the solr response
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="A">
<int name="Aplha">2</int>
</lst>
<lst name="B">
<int name="Beta">20</int>
</lst>
<lst name="D">
<int name="Gamma">12</int>
</lst>
</lst>
<lst name="facet_dates"/>
This way I need not do any hiding in the View related code, because
displaying a facet with no values does not make sense.
But looks like, I need to handle Empty facets in code as solr will return
the empty facets as well in the response as given below:
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="A">
<int name="Aplha">2</int>
</lst>
<lst name="B">
<int name="Beta">20</int>
</lst>
<lst name="C"/>
</lst>
<lst name="D">
<int name="Gamma">12</int>
</lst>
</lst>
<lst name="facet_dates"/>
~Umesh
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-does-not-honor-facet-mincount-and-field-facet-mincount-tp746499p757206.html
Sent from the Solr - User mailing list archive at Nabble.com.