# Lookup for routing to shard mappings?

**URL:** <https://discuss.elastic.co/t/lookup-for-routing-to-shard-mappings/13413>\
**Category:** Elasticsearch\
**Created:** [August 30, 2013, 7:40pm UTC](https://discuss.elastic.co/t/lookup-for-routing-to-shard-mappings/13413 "2013-08-30T19:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkebinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkebinger/32/2129_2.png) [@jkebinger](https://discuss.elastic.co/u/jkebinger)\
**Post date:** [August 30, 2013, 7:40pm UTC](https://discuss.elastic.co/t/lookup-for-routing-to-shard-mappings/13413/1 "2013-08-30T19:40:43Z")

</div>

Is there any way to determine to which shard a given routing path maps? In  
other words for routing path "123" i'd like to know which shard it ends up  
on. We're trying to understand the vast difference in shard sizes we have.

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [August 30, 2013, 7:48pm UTC](https://discuss.elastic.co/t/lookup-for-routing-to-shard-mappings/13413/2 "2013-08-30T19:48:22Z")

</div>

Hello!

Yes there is on search level. You can use the Search Shards API to see which shard will be hit with query. Although its a search related thing you can pass routing value and see which shard it will be routed to. The Github issue about it - [https://github.com/elasticsearch/elasticsearch/issues/2726](https://github.com/elasticsearch/elasticsearch/issues/2726) and the page with some simple example [http://goo.gl/stBLT7](http://goo.gl/stBLT7)

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - ElasticSearch_

Is there any way to determine to which shard a given routing path maps? In other words for routing path "123" i'd like to know which shard it ends up on. We're trying to understand the vast difference in shard sizes we have.

Thanks!

--

You received this message because you are subscribed to the Google Groups "elasticsearch" group.

To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:18am UTC](https://discuss.elastic.co/t/lookup-for-routing-to-shard-mappings/13413/3 "2017-07-06T02:18:43Z")

</div>


