From: Dennis Schafroth Date: Thu, 9 Sep 2010 15:36:09 +0000 (+0200) Subject: Add facet.mincount=1 to avoid "ghost" facets X-Git-Tag: v4.1.0~12^2~1 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=55f306a7eb44ebfa39c096d2c76ad0cf12a089ea Add facet.mincount=1 to avoid "ghost" facets --- diff --git a/src/solr.c b/src/solr.c index 4ce820c..734e365 100644 --- a/src/solr.c +++ b/src/solr.c @@ -356,6 +356,7 @@ int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, Z_FacetList *facet_list = request->facetList; int limit = 0; yaz_add_name_value_str(encode, name, value, &i, "facet", "true"); + yaz_add_name_value_str(encode, name, value, &i, "facet.mincount", "1"); yaz_solr_encode_facet_list(encode, name, value, &i, facet_list, &limit); /* olimit = limit;