# Not getting exact number of documents after reindexing the index

**URL:** <https://discuss.elastic.co/t/not-getting-exact-number-of-documents-after-reindexing-the-index/286116>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [October 7, 2021, 10:49am UTC](https://discuss.elastic.co/t/not-getting-exact-number-of-documents-after-reindexing-the-index/286116 "2021-10-07T10:49:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [October 7, 2021, 10:49am UTC](https://discuss.elastic.co/t/not-getting-exact-number-of-documents-after-reindexing-the-index/286116/1 "2021-10-07T10:49:32Z")

</div>

I am reindexing some indices.After the completion of reindex process,i saw that destination index has not the exact number of documents as compared to source index.

```auto
POST _reindex?max_docs=1614914&wait_for_completion=false&slices=5
{
   "source": {
    "index": "log-wlb-sysmon-2021.10.06-000001",
    "size": 5000
    
  }
  , "dest": {
    "index": "log-wlb-sysmon-2021.10.07-000003"
    
  }
}

```

I also reduced the `size` but nothing happened

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open log-wlb-sysmon-2021.10.07-000003 B-adM5RSTFaU0TumsTjofg 1 0 1614205 0 1.2gb 1.2gb
green open log-wlb-sysmon-2021.10.07-000002 S9IEIIiYQI-B5Yd8F7EwXg 1 1 551619 23829 725mb 359.5mb
green open log-wlb-sysmon-2021.10.06-000001 p1KhVH__QD6OgTXcbZQPJg 1 1 1614914 19361 1.9gb 991.2mb

```

---

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [October 12, 2021, 10:33am UTC](https://discuss.elastic.co/t/not-getting-exact-number-of-documents-after-reindexing-the-index/286116/2 "2021-10-12T10:33:04Z")

</div>

I solved this problem by increasing `indices.lifecycle.poll_interval` value.

---

<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:** [November 9, 2021, 10:33am UTC](https://discuss.elastic.co/t/not-getting-exact-number-of-documents-after-reindexing-the-index/286116/3 "2021-11-09T10:33:39Z")

</div>

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