[ 
https://issues.apache.org/jira/browse/SOLR-5308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802845#comment-13802845
 ] 

Noble Paul edited comment on SOLR-5308 at 10/23/13 12:20 PM:
-------------------------------------------------------------

We can have a simpler routing rule as follows

{code:javascript}
  "routingRules":{"a!":{
                    "ranges":["3c250000-3c25ffff"]
                    "expireAt":"1382449837040",
                    
"targetCollection":"migrate_routekey_test_targetCollection"}}
{code}

The target shard does not make sense because it is something that can be easily 
derived and may change if there is a further split on the target collection. 
note that the "ranges" is an array now so that multiple values can be set there




was (Author: noble.paul):
We can have a simpler routing rule as follows

{code:javascript}
  "routingRules":{"a!":{
                    "ranges":["3c250000-3c25ffff"]
                    "expireAt":"1382449837040",
                    
"targetCollection":"migrate_routekey_test_targetCollection"}}
{code}

The target shard does not make sense because it is something that can be easily 
derived and may change if there is a further split on the target collection



> Split all documents of a route key into another collection
> ----------------------------------------------------------
>
>                 Key: SOLR-5308
>                 URL: https://issues.apache.org/jira/browse/SOLR-5308
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.6, 5.0
>
>         Attachments: SOLR-5308.patch, SOLR-5308.patch, SOLR-5308.patch
>
>
> Enable SolrCloud users to split out a set of documents from a source 
> collection into another collection.
> This will be useful in multi-tenant environments. This feature will make it 
> possible to split a tenant out of a collection and put them into their own 
> collection which can be scaled separately.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to