Also you might want to check this blog post, just went up today. http://searchhub.org/2013/06/13/solr-cloud-document-routing/
On Wed, Jun 12, 2013 at 2:18 PM, James Thomas <jtho...@camstar.com> wrote: > This page has some good information on custom document routing: > > http://docs.lucidworks.com/display/solr/Shards+and+Indexing+Data+in+SolrCloud > > > > -----Original Message----- > From: Rishi Easwaran [mailto:rishi.easwa...@aol.com] > Sent: Wednesday, June 12, 2013 1:40 PM > To: solr-user@lucene.apache.org > Subject: Re: shardkey > > From my understanding. > In SOLR cloud the CompositeIdDocRouter uses HashbasedDocRouter. > CompositeId router is default if your numShards>1 on collection creation. > CompositeId router generates an hash using the uniqueKey defined in your > schema.xml to route your documents to a dedicated shard. > > You can use select?q=xyz&shard.keys=uniquekey to focus your search to hit > only the shard that has your shard.key > > > > Thanks, > > Rishi. > > > > -----Original Message----- > From: Joshi, Shital <shital.jo...@gs.com> > To: 'solr-user@lucene.apache.org' <solr-user@lucene.apache.org> > Sent: Wed, Jun 12, 2013 10:01 am > Subject: shardkey > > > Hi, > > We are using Solr 4.3.0 SolrCloud (5 shards, 10 replicas). I have couple > questions on shard key. > > 1. Looking at the admin GUI, how do I know which field is being > used for shard key. > 2. What is the default shard key used? > 3. How do I override the default shard key? > > Thanks. > > > -- Joel Bernstein Professional Services LucidWorks