Solr - Getting facet counts without returning search results

前端 未结 3 1446
逝去的感伤
逝去的感伤 2020-12-29 02:20

I need to return only the facet counts from solr. So I basically want to search over all documents and return the facet counts, but I don\'t want to return any search result

3条回答
  •  不知归路
    2020-12-29 02:40

    So, from what I have understood if I need to get facets count for all documents in a paginated system, I need to make two requests (selects):
    - The first to get the facets count for all documents.
    - And the second to get the documents from current page.

提交回复
热议问题