ElasticSearch Hash Function

Hi,

I would like to predict the shards routing of a set of keys as a function
of the number of shards,without defining the actual index.
Elasticsearch Version 1.4.2

How can i check which hash function is used for routing ? and how can i
check it inside my java program ?

Thanks,
Costya

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8410c34e-5ad7-4b6b-89b9-7cbf758010eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

For ES 1.4, see

and the hash function is

Note, the hash function will change in ES 2.0.

You can not check from outside what hash function ES uses, this is internal
use only.

Jörg

On Mon, Dec 29, 2014 at 12:48 PM, Costya Regev costya@totango.com wrote:

Hi,

I would like to predict the shards routing of a set of keys as a
function of the number of shards,without defining the actual index.
Elasticsearch Version 1.4.2

How can i check which hash function is used for routing ? and how can i
check it inside my java program ?

Thanks,
Costya

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8410c34e-5ad7-4b6b-89b9-7cbf758010eb%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/8410c34e-5ad7-4b6b-89b9-7cbf758010eb%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGLciGr6QEKDy_PLAU2v68aXNGHXf5gmN1w9Xb8aq%2BtnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.