Add facet.mincount=1 to avoid "ghost" facets
authorDennis Schafroth <dennis@indexdata.com>
Thu, 9 Sep 2010 15:36:09 +0000 (17:36 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 9 Sep 2010 15:36:09 +0000 (17:36 +0200)
src/solr.c

index 4ce820c..734e365 100644 (file)
@@ -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;