Solr - 在不返回搜索结果的情况下获取方面计数 [英] Solr - Getting facet counts without returning search results
本文介绍了Solr - 在不返回搜索结果的情况下获取方面计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只需要从 solr 返回分面计数.所以我基本上想搜索所有文档并返回构面计数,但我不想返回任何搜索结果.这可能吗?
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 results. Is this possible?
谢谢
推荐答案
设置 facet=true
将启用分面,设置 rows=0
将阻止返回任何结果.numFound
将方便地显示找到了多少结果.
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.
这篇关于Solr - 在不返回搜索结果的情况下获取方面计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文