I am trying to find optimum number of shards for my data.
I have custom routing value in my application.
I know the formula: hash(routing) % num of primary shards.
Can anyone point me to the hashing function above ? Is there a utility or source code which i can use ?