# Reindex stopping on multiples of 5000

**URL:** <https://discuss.elastic.co/t/reindex-stopping-on-multiples-of-5000/84731>\
**Category:** Elasticsearch\
**Created:** [May 5, 2017, 1:52pm UTC](https://discuss.elastic.co/t/reindex-stopping-on-multiples-of-5000/84731 "2017-05-05T13:52:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 5, 2017, 1:52pm UTC](https://discuss.elastic.co/t/reindex-stopping-on-multiples-of-5000/84731/1 "2017-05-05T13:52:49Z")

</div>

Hi,

I have been using `_reindex` to copy documents from a remote ES 1.7.4 cluster to 5.3.1 ES Cloud. Oddly the reindexing stops on multiples of 5000 documents.

1st attempt: Stopped after 290,000 documents.  
2nd attempt: Stopped after 80,000 documents.  
3rd attempt: Stopped after 5,000 documents.

No error is returned.

This is the request with senstive info redacted,

```
POST _reindex
{
  "source": {
    "remote": {
      "host": "http://xxxxx:9200",
      "username": "xxx",
      "password": "xxx"
    },
    "index": "xxx",
        "query": {
            "bool": {
              "must": [
                {
                  "range": {
                    "myDate": {
                      "gt": "2016-01-26T13:30:55.285Z",
                      "lt": "2016-02-01T00:00:00.000Z"
                    }
                  }
                }
              ]
            }
          }
  },
  "dest": {
    "index": "xxx"
  }
}

```

The initiating cluster is in Elasticsearch Cloud.

Any guidance?

---

<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:** [June 2, 2017, 2:03pm UTC](https://discuss.elastic.co/t/reindex-stopping-on-multiples-of-5000/84731/2 "2017-06-02T14:03:18Z")

</div>

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