# How do I force different routing value will route the document to a different shard?

**URL:** <https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217>\
**Category:** Elasticsearch\
**Created:** [November 2, 2018, 5:58pm UTC](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217 "2018-11-02T17:58:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![panfng](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@panfng](https://discuss.elastic.co/u/panfng)\
**Post date:** [November 2, 2018, 5:58pm UTC](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217/1 "2018-11-02T17:58:15Z")

</div>

Is there a way to tell ES which shard I want the document to go to?  
Different routing value could end up using the same shard which is annoying

---

<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 2, 2018, 6:25pm UTC](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217/2 "2018-11-02T18:25:18Z")

</div>

I don't think you really can. But you can also create one index with one single shard and then send the document to the index you want (so the shard you want).

---

<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:** [November 30, 2018, 6:25pm UTC](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217/3 "2018-11-30T18:25:19Z")

</div>

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