projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03253a9
)
Add facet.mincount=1 to avoid "ghost" facets
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 9 Sep 2010 15:36:09 +0000
(17:36 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 9 Sep 2010 15:36:09 +0000
(17:36 +0200)
src/solr.c
patch
|
blob
|
history
diff --git
a/src/solr.c
b/src/solr.c
index
4ce820c
..
734e365
100644
(file)
--- 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;