[ https://issues.apache.org/jira/browse/SOLR-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13725625#comment-13725625 ]
Noble Paul commented on SOLR-4221: ---------------------------------- A custom collection can be created by explicitly specifying the router as 'implicit' and by giving the names of the shards explicitly as follows http://host:port/solr/admin/collections?action=CREATE&name=monthly&router=implicit&collection.configName=x&shards=jan13,feb13,mar13 where 3 shards named jan13,feb13,mar13 will be created h2.Document routing * add a special request param called \_route_=june13’ . It means all docs added in the batch would belong to the same shard or, * add a special field \_route_ in the document to signal the shard where it belongs to * if the collection is created with ‘routeField’ value , the docRouter would look at that field to get the shard name SOLR-5017 * If it is unable to identify the shard using any of the above methods , the write operation fails. If the shard is not present , then the write fails too h2.Query routing It remain same as other routers. \_route_ parameter can specify the actual shard name h2.Creating new shards There is a a new command CREATESHARD . refer to SOLR-5006. > Custom sharding > --------------- > > Key: SOLR-4221 > URL: https://issues.apache.org/jira/browse/SOLR-4221 > Project: Solr > Issue Type: New Feature > Reporter: Yonik Seeley > Assignee: Noble Paul > Attachments: SOLR-4221.patch, SOLR-4221.patch, SOLR-4221.patch, > SOLR-4221.patch, SOLR-4221.patch > > > Features to let users control everything about sharding/routing. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org