在Solr索引中找到总学期数 [英] Find total term count in Solr index
问题描述
我需要弄清楚Solr(Lucene)索引中有多少个唯一术语.用独特的术语来说,我不是指文件.我的意思是指索引中所有文档中的唯一字词总数. Solr管理控制台显示多少文档,但不显示总条款.
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.
我找到了一个名为Luke(Lucene索引工具箱)的工具,该工具可以为您提供该信息,但是它是一个UI工具,并且我的Sorl索引位于Ubuntu服务器上,因此我无法运行它.
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.
有什么想法吗?
推荐答案
您可以使用 LukeRequestHandler .您应该在返回的xml中看到标签"numTerms".
You can use the LukeRequestHandler. You should see the tag "numTerms" in the xml returned.
这篇关于在Solr索引中找到总学期数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!