# Unable to use automatic slicing in reindex API

**URL:** https://discuss.elastic.co/t/unable-to-use-automatic-slicing-in-reindex-api/364378
**Category:** Elasticsearch
**Tags:** reindex
**Created:** [August 5, 2024, 11:52am UTC](https://discuss.elastic.co/t/unable-to-use-automatic-slicing-in-reindex-api/364378 "2024-08-05T11:52:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abhadauria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhadauria/32/127899_2.png) [@abhadauria](https://discuss.elastic.co/u/abhadauria)
#### Post date: [August 5, 2024, 11:52am UTC](https://discuss.elastic.co/t/unable-to-use-automatic-slicing-in-reindex-api/364378/1 "2024-08-05T11:52:53Z")

</div>

We are re-indexing data in ES cluster using \_reindex API ES version 7.17.

We want to leverage automated slicing to finish the process sooner as we have really large index with doc count ~150 million.  
We were following this document [Reindex API | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-reindex.html#docs-reindex-automatic-slice), however while using the mentioned url, we are getting error: refresh is not recognized parameter.

Please suggest if we are missing anything, just wanted to inform that we are using curl request.

---

<div class="post-metadata">

### Author: ![abhadauria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhadauria/32/127899_2.png) [@abhadauria](https://discuss.elastic.co/u/abhadauria)
#### Post date: [August 7, 2024, 6:43am UTC](https://discuss.elastic.co/t/unable-to-use-automatic-slicing-in-reindex-api/364378/2 "2024-08-07T06:43:04Z")

</div>

can someone please respond or help here?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [August 13, 2024, 8:12am UTC](https://discuss.elastic.co/t/unable-to-use-automatic-slicing-in-reindex-api/364378/3 "2024-08-13T08:12:00Z")

</div>

Please show the full reindexing request as well as the full response.
