Try looking at DistributedUpdateProcessor, there's a "hash(cmd)" method in there.
Best Erick On Tue, Apr 17, 2012 at 4:45 PM, emma1023 <smile.emma1...@gmail.com> wrote: > Thanks for your reply. In sorl 3.x, we need to manually hash the doc Id to > the server.How does solrcloud do this instead? I am working on a project > using solrcloud.But we need to monitor how the solrcloud distribute the > data. I cannot find which part of the code it is from source code.Is it > from the cloud part? Thanks. > > > On Tue, Apr 17, 2012 at 3:16 PM, Mark Miller-3 [via Lucene] < > ml-node+s472066n3918192...@n3.nabble.com> wrote: > >> >> On Apr 17, 2012, at 9:56 AM, emma1023 wrote: >> >> It hashes the id. The doc distribution is fairly even - but sizes may be >> fairly different. >> >> > How solrcloud manage distribute data among shards of the same cluster >> when >> > you query? Is it distribute the data equally? What is the basis? Which >> part >> > of the code that I can find about it?Thank you so much! >> > >> > >> > -- >> > View this message in context: >> http://lucene.472066.n3.nabble.com/How-sorlcloud-distribute-data-among-shards-of-the-same-cluster-tp3917323p3917323.html >> > Sent from the Solr - User mailing list archive at Nabble.com. >> >> - Mark Miller >> lucidimagination.com >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://lucene.472066.n3.nabble.com/How-sorlcloud-distribute-data-among-shards-of-the-same-cluster-tp3917323p3918192.html >> To unsubscribe from How sorlcloud distribute data among shards of the >> same cluster?, click >> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3917323&code=c21pbGUuZW1tYTEwMjNAZ21haWwuY29tfDM5MTczMjN8LTYzMTg4ODk4Mw==> >> . >> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-sorlcloud-distribute-data-among-shards-of-the-same-cluster-tp3917323p3918348.html > Sent from the Solr - User mailing list archive at Nabble.com.