# Es 5.0 - reshard index

**URL:** https://discuss.elastic.co/t/es-5-0-reshard-index/64854
**Category:** Elasticsearch
**Created:** [November 3, 2016, 11:44am UTC](https://discuss.elastic.co/t/es-5-0-reshard-index/64854 "2016-11-03T11:44:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mikello](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@Mikello](https://discuss.elastic.co/u/Mikello)
#### Post date: [November 3, 2016, 11:44am UTC](https://discuss.elastic.co/t/es-5-0-reshard-index/64854/1 "2016-11-03T11:44:22Z")

</div>

Hello,

is it possible to reshard old index to new using reindex API?

My index has 5 shards and i want to change it to 2. I tried diffrent combinations using "number\_of\_shards" but without good result.

curl -XPOST 'localhost:9200/\_reindex?pretty' -d'{  
"source": {  
"index": "test"  
},  
"dest": {  
"index": "test\_new",  
"number\_of\_shards": "2"  
}  
}'

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2016, 11:59am UTC](https://discuss.elastic.co/t/es-5-0-reshard-index/64854/2 "2016-11-03T11:59:21Z")

</div>

Just create the new index first with new settings (number of shards) then launch reindex task to this index.

---

<div class="post-metadata">

### Author: ![Mikello](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@Mikello](https://discuss.elastic.co/u/Mikello)
#### Post date: [November 3, 2016, 12:34pm UTC](https://discuss.elastic.co/t/es-5-0-reshard-index/64854/3 "2016-11-03T12:34:17Z")

</div>

It's working, thanks!

---

<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: [July 5, 2017, 10:06pm UTC](https://discuss.elastic.co/t/es-5-0-reshard-index/64854/4 "2017-07-05T22:06:57Z")

</div>


