# Get without knowing custom routing

**URL:** <https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462>\
**Category:** Elasticsearch\
**Created:** [July 17, 2017, 9:52pm UTC](https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462 "2017-07-17T21:52:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henryyi\_q](https://avatars.discourse-cdn.com/v4/letter/h/6bbea6/32.png) [@henryyi\_q](https://discuss.elastic.co/u/henryyi_q)\
**Post date:** [July 17, 2017, 9:52pm UTC](https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462/1 "2017-07-17T21:52:50Z")

</div>

I have several documents with custom routing (for multi-level parent/child relationships), and there are times where I would like to get a document, but do not know the routing for the document. Are there any best practices for this kind of scenario? Should I avoid using search as a proxy to get the document?

---

<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:** [July 17, 2017, 10:11pm UTC](https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462/2 "2017-07-17T22:11:34Z")

</div>

The best practice is to use a search or a get without the routing value.

---

<div class="post-metadata">

**Author:** ![henryyi\_q](https://avatars.discourse-cdn.com/v4/letter/h/6bbea6/32.png) [@henryyi\_q](https://discuss.elastic.co/u/henryyi_q)\
**Post date:** [July 17, 2017, 10:27pm UTC](https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462/3 "2017-07-17T22:27:07Z")

</div>

> [@warkolm](#):
>
> The best practice is to use a search or a get without the routing value.

Thanks for the response. Is it possible to use get without the routing value, across all shards?

---

<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:** [August 14, 2017, 10:27pm UTC](https://discuss.elastic.co/t/get-without-knowing-custom-routing/93462/4 "2017-08-14T22:27:09Z")

</div>

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