Is there a way to get Hit Counts in solr

丶灬走出姿态 提交于 2019-12-24 11:47:59

问题


I have a simple question that is it possible to get hit counts in a document. like if we search "risk" could we get the count of risk in the matched document.


回答1:


You can use highlighting and count the snippets. Make sure you have termVectors enabled for the affected fields and understand the highlighting options.

You could also use the TermVectorComponent, it's currently not directly addressable via SolrNet though.



来源:https://stackoverflow.com/questions/4143896/is-there-a-way-to-get-hit-counts-in-solr

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