# Routing to an index partition

**URL:** <https://discuss.elastic.co/t/routing-to-an-index-partition/130299>\
**Category:** Elasticsearch\
**Created:** [May 2, 2018, 4:25pm UTC](https://discuss.elastic.co/t/routing-to-an-index-partition/130299 "2018-05-02T16:25:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [May 2, 2018, 4:25pm UTC](https://discuss.elastic.co/t/routing-to-an-index-partition/130299/1 "2018-05-02T16:25:22Z")

</div>

Hi, I came across "index.routing\_partition\_size" and would like to experiment the same for our scenario. Prev when we used custom routing, we leveraged the \_search\_shards api to get to know the routingId to shardId mapping.

With setting "index.routing\_partition\_size", how can we know the list of shards the data might be spread across ?

Also, lets say if I set "index.routing\_partition\_size" to 5 and we index 5 docs will the 5 docs be in 5 different shards?

Thanks, Divya

---

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [May 3, 2018, 2:02pm UTC](https://discuss.elastic.co/t/routing-to-an-index-partition/130299/2 "2018-05-03T14:02:34Z")

</div>

Any suggestions?

---

<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:** [May 31, 2018, 2:02pm UTC](https://discuss.elastic.co/t/routing-to-an-index-partition/130299/3 "2018-05-31T14:02:41Z")

</div>

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