# "docs" number in Elasticsearch head

**URL:** https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514
**Category:** Elasticsearch
**Created:** [December 9, 2016, 6:24am UTC](https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514 "2016-12-09T06:24:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bluish\_penguin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluish_penguin/32/13769_2.png) [@bluish\_penguin](https://discuss.elastic.co/u/bluish_penguin)
#### Post date: [December 9, 2016, 6:24am UTC](https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514/1 "2016-12-09T06:24:01Z")

</div>

Hi,  
I am running a python script that repetitively build the index. Before building the new index, I will delete the old index first with some filter criteria (by month id). I am using function delete\_by\_query.

```
tableName = "ds_item"
body = {
    "query": {
        "match": {
            "pkey": monthId
        }            
    }    
}

```

`elasticsearch.delete_by_query(index=indexName, doc_type=tableName, body=body)`

After running the script, I check the "docs" showed in the elasticsearch head. The figure in the bracket always show double of the figure outside the bracket.  
does anyone know what is the docs number (in bracket) mean?

![](https://us1.discourse-cdn.com/elastic/original/2X/a/a8f17da6db42b1c46cf55d0b3215b195925389af.JPG)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [December 9, 2016, 6:28am UTC](https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514/2 "2016-12-09T06:28:08Z")

</div>

That'd be the replicated count.

---

<div class="post-metadata">

### Author: ![bluish\_penguin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluish_penguin/32/13769_2.png) [@bluish\_penguin](https://discuss.elastic.co/u/bluish_penguin)
#### Post date: [December 9, 2016, 7:12am UTC](https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514/3 "2016-12-09T07:12:23Z")

</div>

I see. So, it depends on the number\_of\_replicas of the index.

---

<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: [January 6, 2017, 7:12am UTC](https://discuss.elastic.co/t/docs-number-in-elasticsearch-head/68514/4 "2017-01-06T07:12:58Z")

</div>

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