Hi everyone,
I want to know how many documents in a shard.
For example, I was created the index with the default configuration. How many document of number 0 shard?
Similarly, how do I know which shard document?
Thanks.
Hi everyone,
I want to know how many documents in a shard.
For example, I was created the index with the default configuration. How many document of number 0 shard?
Similarly, how do I know which shard document?
Thanks.
curl -XGET 'http://localhost:9200/index_name/_stats?level=shards'
will give you shard-level stats, including the number of documents per shard.
As a side note, the plugin Kopf is excellent for viewing this sort of information. You should check it out.
Thank you so much @Joshua_P
This information is very valuable to me.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.