Solr/Solrj: How can I determine the total number of documents in an index?

后端 未结 2 2003
暗喜
暗喜 2021-02-05 00:22

How can I determine the total number of documents in a Solr index using Solrj?

After hours of searching on my own, I actually have an answer (given below); I\'m only pos

2条回答
  •  渐次进展
    2021-02-05 01:22

    Your answer of sending the query *:* is probably the best, most general solution. Especially if you are using SolrCloud. However, there is an alternate solution, the Solr Core Admin API

提交回复
热议问题