# Does reindex honour \_routing option

**URL:** <https://discuss.elastic.co/t/does-reindex-honour-routing-option/306881>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [June 10, 2022, 12:02pm UTC](https://discuss.elastic.co/t/does-reindex-honour-routing-option/306881 "2022-06-10T12:02:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [June 10, 2022, 12:02pm UTC](https://discuss.elastic.co/t/does-reindex-honour-routing-option/306881/1 "2022-06-10T12:02:56Z")

</div>

We have ingested a few parent docs and few child docs per parent. For all child docs we used \_routing=parentID. So that child also sits on the same shard where the parent lies.

Now we had only 1 shard and called reindex to destination index with 2 shards.

Does the reindex makes sure that all child are placed in the same shard as the parent?

---

<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:** [June 14, 2022, 5:46am UTC](https://discuss.elastic.co/t/does-reindex-honour-routing-option/306881/2 "2022-06-14T05:46:08Z")

</div>

Based off of [Reindex API | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/docs-reindex.html#docs-reindex-routing), yes it does.

---

<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 12, 2022, 5:46am UTC](https://discuss.elastic.co/t/does-reindex-honour-routing-option/306881/3 "2022-07-12T05:46:09Z")

</div>

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