Find total term count in Solr index

妖精的绣舞 提交于 2020-01-04 02:10:26

问题


I need to figure out how many unique terms are in our Solr (Lucene) index. And by unique terms, I dont mean by document. I mean total unique terms from all documents in the index. The Solr admin console shows how many documents, but not total terms.

I found a tool called Luke (Lucene Index Toolbox) that will give you that info, but its a UI tool, and my Sorl index is on a Ubuntu server so I cant run it.

Any Ideas?


回答1:


You can use the LukeRequestHandler. You should see the tag "numTerms" in the xml returned.



来源:https://stackoverflow.com/questions/4306240/find-total-term-count-in-solr-index

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