Thanks Yonik! I had not dug deeply into it but had expected to find a class named Murmur which I did not.
Second question, I know there are discussion about storing the shard assignments in ZK (i.e. shard 1 is responsible for hashed values between 0 and 10, shard 2 is responsible for hashed values between 11 and 20, etc), this isn't done yet right? So currently the hashing is based on the number of shards instead of having the assignments being calculated the first time you start the cluster (i.e. based on numShards) so it could be adjusted later, right? On Sat, Jan 28, 2012 at 10:28 AM, Yonik Seeley <yo...@lucidimagination.com> wrote: > On Fri, Jan 27, 2012 at 11:46 PM, Jamie Johnson <jej2...@gmail.com> wrote: >> I just want to verify some of the features in regards to SolrCloud >> that are now on Trunk >> >> documents added to the cluster are automatically distributed amongst >> the available shards (I had seen that Yonik had ported the Murmur >> hash, but I didn't see that on trunk, what is being used and where can >> I look at it? > > It's cut'n'pasted into the Hash class > ./solr/solrj/src/java/org/apache/solr/common/util/Hash.java > that also has a lookup3 variant for Strings. > > -Yonik > http://www.lucidimagination.com