You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2013/10/11 07:11:42 UTC

[jira] [Commented] (SOLR-5308) Split all documents of a route key into another collection

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

Shalin Shekhar Mangar commented on SOLR-5308:
---------------------------------------------

Assume that documents for a route key span 'N' shards in a collection 'collection1'. The same collection1 may also have data for other route keys as well. Suppose the route key 'A!' is receiving too much traffic and needs to migrated to another collection. The user shall create a new collection, say 'collection2' to hold data for key 'A!' and then call an API such as: 
{code}
/admin/collections?action=migrate&collection=collection1&split.key=A!&target.collection=collection2
{code}

At this point, Solr determines the shards which overlap the hash range of the split key on both the source and target collections and for each such pair (shardX, shardY) invoke:
{code}
/admin/collections?action=migrate&collection=collection1&split.key=A!&shard=shardX&target.collection=collection2&target.shard=shardY
{code}

The above API will do the actual work of splitting and migrating index from source shard to target shard.

> 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
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org