# Docs.count given by /\_cat/indices on index with replica shards

**URL:** https://discuss.elastic.co/t/docs-count-given-by-cat-indices-on-index-with-replica-shards/221303
**Category:** Elasticsearch
**Created:** [February 27, 2020, 6:26pm UTC](https://discuss.elastic.co/t/docs-count-given-by-cat-indices-on-index-with-replica-shards/221303 "2020-02-27T18:26:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lschmid](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lschmid](https://discuss.elastic.co/u/lschmid)
#### Post date: [February 27, 2020, 6:26pm UTC](https://discuss.elastic.co/t/docs-count-given-by-cat-indices-on-index-with-replica-shards/221303/1 "2020-02-27T18:26:56Z")

</div>

1. For an index with replica shard(s), does the docs.count field given by /\_cat/indices include docs on the replica shard or only docs on primary shards?

2. Say I want to get even splits of an index by using the scroll API with a given size. If in this case docs.count would include docs on the replica shards, would scrolling over portions of the total docs returned by \_cat/indices yield copies of data across different scrolls as it would scroll over the primary document on the primary shard and then again over the replica shard?

Example for clarification: Say we have index1 with 1 primary shard, 1 replica shard, and \_cat/indices returns 1000 for docs.count. Now I want to divide index1 into 4 sections, so I use the scroll API with a size of 250.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 26, 2020, 6:27pm UTC](https://discuss.elastic.co/t/docs-count-given-by-cat-indices-on-index-with-replica-shards/221303/2 "2020-03-26T18:27:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
