# Elastic search reindexing stuck at 52000 docs while the source has more docs

**URL:** <https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [April 12, 2021, 4:51am UTC](https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831 "2021-04-12T04:51:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nissha](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@Nissha](https://discuss.elastic.co/u/Nissha)\
**Post date:** [April 12, 2021, 4:51am UTC](https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831/1 "2021-04-12T04:51:36Z")

</div>

I am trying to reindex a source index which has 500k documents with new mapping but the reindexing gets stuck at 52000 docs and doesn't proceed. It worked perfectly for another index which had 190k docs. Kindly help me with this.

```auto
   body = {
        "source": {
            "index": source_index
        },
        "dest": {
            "index": new_index
        }
    }

```

---

<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:** [April 12, 2021, 5:17am UTC](https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831/2 "2021-04-12T05:17:28Z")

</div>

Welcome to our community! 😃  
Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

What do you mean by "get's stuck"?

---

<div class="post-metadata">

**Author:** ![Nissha](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@Nissha](https://discuss.elastic.co/u/Nissha)\
**Post date:** [April 12, 2021, 5:33am UTC](https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831/3 "2021-04-12T05:33:39Z")

</div>

By stuck, I mean it is not reindexing more documents. It looks like it stopped with 52000 docs .

**\_cat/indices (output):**  
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
green open source-index 3j1w5PFiRfK-vgIL2uNycg 2 2 586057 0 2.8gb 985.6mb  
green open dest-index\_bak OAbKhR3cR3eyBt6ifZ2VmQ 1 1 52000 0 85.5mb 41.8mb

**\_cat/shards/dest-index\_bak (output) :**  
dest-index\_bak 0 p STARTED 52000  
dest-index\_bak 0 r STARTED 52000

---

<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:** [May 10, 2021, 5:33am UTC](https://discuss.elastic.co/t/elastic-search-reindexing-stuck-at-52000-docs-while-the-source-has-more-docs/269831/4 "2021-05-10T05:33:44Z")

</div>

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