diff --git a/src/yz_solr.erl b/src/yz_solr.erl index b600ffb9..afc9beb5 100644 --- a/src/yz_solr.erl +++ b/src/yz_solr.erl @@ -278,8 +278,11 @@ prepare_json(Docs) -> -spec partition_list(index_name()) -> {ok, Resp::binary()} | {error, term()}. partition_list(Core) -> Params = [{q, "*:*"}, + {rows, 0}, + {omitHeader, <<"true">>}, {facet, "on"}, {"facet.mincount", "1"}, + {"facet.method", <<"enum">>}, {"facet.field", ?YZ_PN_FIELD_S}, {wt, "json"}], Encoded = mochiweb_util:urlencode(Params),