From 55f306a7eb44ebfa39c096d2c76ad0cf12a089ea Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 9 Sep 2010 17:36:09 +0200 Subject: [PATCH] Add facet.mincount=1 to avoid "ghost" facets --- src/solr.c | 1 + 1 file changed, 1 insertion(+) 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; -- 1.7.10.4