Hi, I was able to implement custom hashing with the use of "_shard_" field. It contains the name of shard a document should go to. Works fine. Maybe there's some other method to do the same with the use of solrconfig.xml, but I have not found any docs about it so far.
Regards. On 18 February 2013 13:34, Markus Jelsma <markus.jel...@openindex.io> wrote: > Hi, > > By defaut SolrCloud partitions records by the hash of the uniqueKey field > but we want to do some tests and partition the records by a signed integer > field but keep the current uniqueKey unique. I've scanned through several > issues concerning distributed index, custom hashing, shard policies etc but > i have not found some concise examples or documentation or even blog post > on this matter. > > How do we set up shard partitioning via another than the default uniqueKey > field? > > According to some older resolved issue CloudSolrServer should be cloud > aware and send updates to the leader of the correct shards, how does it > know this? Must we set up the same partitioning in SolrServer client as > well? If so, how? The apidocs do not reveal a lot when i look through them. > > I probably totally missed an issue or discussion or wiki page. > > Thanks, > Markus >