On 6/1/2014 12:58 PM, SolrUser1543 wrote: > I have a SOLR cloud with 5 solr instances . > > Indexing of new documents is always performed against instance#1 . > > Then according to hash calculation the document is being indexing on one of > instances . > > How could i know on which one it will be ? > How could I know how SOLR is calculating the hash to predict to which > instance it will be sent ?
It appears that SolrCloud calculates a murmurhash3 on the uniqueKey field value, which is checked against each shard's hash range in the clusterstate. I believe this hashing algorithm was chosen because it calculates hashes very quickly. http://en.wikipedia.org/wiki/MurmurHash Thanks, Shawn