# Routing and segmentation

**URL:** <https://discuss.elastic.co/t/routing-and-segmentation/9255>\
**Category:** Elasticsearch\
**Created:** [October 5, 2012, 4:03pm UTC](https://discuss.elastic.co/t/routing-and-segmentation/9255 "2012-10-05T16:03:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ephraim\_Mower](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ephraim_mower/32/2687_2.png) [@Ephraim\_Mower](https://discuss.elastic.co/u/Ephraim_Mower)\
**Post date:** [October 5, 2012, 4:03pm UTC](https://discuss.elastic.co/t/routing-and-segmentation/9255/1 "2012-10-05T16:03:16Z")

</div>

I have a little bit of a grasp on routing, but I do have one specific  
question. Can a routing value be used to segment data? For instance, if I  
specify in my query a routing value of "Foo", does that guarantee that I  
will only get documents that were indexed with a routing value of "Foo", or  
does it only guarantee that I hit a specific shard?

Thanks!

-Cork

--

---

<div class="post-metadata">

**Author:** ![Ephraim\_Mower](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ephraim_mower/32/2687_2.png) [@Ephraim\_Mower](https://discuss.elastic.co/u/Ephraim_Mower)\
**Post date:** [October 5, 2012, 4:42pm UTC](https://discuss.elastic.co/t/routing-and-segmentation/9255/2 "2012-10-05T16:42:33Z")

</div>

I guess maybe I didn't look hard enough before I posted:

[https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/routing/elasticsearch/OHfoLnNBFV4/-NK16j7ar1YJ](https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/routing/elasticsearch/OHfoLnNBFV4/-NK16j7ar1YJ)

I guess I need to filter/query and route...

On Friday, October 5, 2012 12:03:16 PM UTC-4, Ephraim Mower wrote:

> I have a little bit of a grasp on routing, but I do have one specific  
> question. Can a routing value be used to segment data? For instance, if I  
> specify in my query a routing value of "Foo", does that guarantee that I  
> will only get documents that were indexed with a routing value of "Foo", or  
> does it only guarantee that I hit a specific shard?
> 
> Thanks!
> 
> -Cork

--

---

<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, 3:09am UTC](https://discuss.elastic.co/t/routing-and-segmentation/9255/3 "2017-07-06T03:09:57Z")

</div>


