# How a host map with a hash value which the shard used as route?

**URL:** <https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248>\
**Category:** Elasticsearch\
**Created:** [June 4, 2013, 1:21am UTC](https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248 "2013-06-04T01:21:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 4, 2013, 1:21am UTC](https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248/1 "2013-06-04T01:21:42Z")

</div>

how a host map with a hash value which the shard used as route?  
could anyone tell me about that? or tell me which class save this problem  
in source code.  
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:** ![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:** [June 4, 2013, 8:38am UTC](https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248/2 "2013-06-04T08:38:34Z")

</div>

Not sure I fully understand your question.

Is it what you are looking for?  
[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/plain/PlainOperationRouting.java#L297](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/plain/PlainOperationRouting.java#L297)  
[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/hash/djb/DjbHashFunction.java#L30](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/hash/djb/DjbHashFunction.java#L30)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 4 juin 2013 à 03:21, deng dereek [chuanhua.deng@gmail.com](mailto:chuanhua.deng@gmail.com) a écrit :

> how a host map with a hash value which the shard used as route?  
> could anyone tell me about that? or tell me which class save this problem in source code.  
> 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:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 5, 2013, 1:21am UTC](https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248/3 "2013-06-05T01:21:51Z")

</div>

thanks , It is my looking for.  
在 2013年6月4日星期二UTC+8下午4时38分34秒，David Pilato写道：

> Not sure I fully understand your question.
> 
> Is it what you are looking for?
> 
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/plain/PlainOperationRouting.java#L297](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/plain/PlainOperationRouting.java#L297)
> 
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/hash/djb/DjbHashFunction.java#L30](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/cluster/routing/operation/hash/djb/DjbHashFunction.java#L30)
> 
> ```
> -- 
> 
> ```
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 4 juin 2013 à 03:21, deng dereek \<[chuanh...@gmail.com](mailto:chuanh...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> how a host map with a hash value which the shard used as route?  
> could anyone tell me about that? or tell me which class save this problem  
> in source code.  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:32am UTC](https://discuss.elastic.co/t/how-a-host-map-with-a-hash-value-which-the-shard-used-as-route/12248/4 "2017-07-06T02:32:56Z")

</div>

Closed on July 6, 2017, 2:32am UTC


