Search code examples
solrsolrcloud

How to get number of documents by shard wise in solrcloud?


I want to get number of shards along with number of documents in each shard in solrcloud, is there any direct command to get these stats?

As of now I pull these stats from each node UI which takes very long time. I am using solcloud5.2.


Solution

  • Solr supports adding shards.info in the request to get numFound, score and time spent for each shard when retrieving the results.

    That works for manual sharding at least, but give it a try for implicit sharding in SolrCloud as well!