Find total term count in Solr index

2019-07-17 20:31发布

问题:

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.



标签: solr lucene