Solr - Getting facet counts without returning search results

ぃ、小莉子 提交于 2019-11-28 21:05:25
nialloc

Setting facet=true will enable faceting and setting rows=0 will prevent any results being returned. Conveniently the numFound will show you how many results were found.

Ryan

I guess the obvious solution would be to search using a wildcard and specify that you want zero results returned.

That's my solution so far.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!