You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2017/06/01 17:42:22 UTC

lucene-solr:branch_6x: SOLR-10239: Adding documentation for MoveReplica

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 7015fdc56 -> 39c43ecb1


SOLR-10239: Adding documentation for MoveReplica


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/39c43ecb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/39c43ecb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/39c43ecb

Branch: refs/heads/branch_6x
Commit: 39c43ecb13f53d27db26b36f1139e06347852295
Parents: 7015fdc
Author: Cao Manh Dat <da...@apache.org>
Authored: Thu Jun 1 08:50:54 2017 +0700
Committer: Cassandra Targett <ct...@apache.org>
Committed: Thu Jun 1 12:42:05 2017 -0500

----------------------------------------------------------------------
 solr/solr-ref-guide/src/collections-api.adoc | 25 +++++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/39c43ecb/solr/solr-ref-guide/src/collections-api.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adoc
index 9ef8a2d..0857744 100644
--- a/solr/solr-ref-guide/src/collections-api.adoc
+++ b/solr/solr-ref-guide/src/collections-api.adoc
@@ -1874,6 +1874,31 @@ This command recreates replicas in the source node to the target node. After eac
 This operation does not hold necessary locks on the replicas that belong to on the source node. So don't perform other collection operations in this period.
 ====
 
+[[CollectionsAPI-movereplica]]
+== MOVEREPLICA: Move a Replica to a New node
+
+This command move a replica from a node to a new node, in case of shared-file systems the `dataDir` will be reused.
+
+`/admin/collections?action=MOVEREPLICA&collection=collection&shard=shard&replica=replica&node=nodeName&toNode=nodeName`
+
+[[CollectionsAPI-Input.26]]
+=== Input
+
+*Query Parameters*
+
+// TODO: Change column width to %autowidth.spread when https://github.com/asciidoctor/asciidoctor-pdf/issues/599 is fixed
+
+[cols="20,15,10,55",options="header"]
+|===
+|Key |Type |Required |Description
+|collection |string |Yes |The name of the collection.
+|shard |string |Yes |The name of shard that replica belong to.
+|replica |string |Yes |The name of the replica.
+|node |string |Yes |The name of the node that contains the replica.
+|toNode |string |Yes |The name of the destination node.
+|async |string |No |Request ID to track this action which will be <<CollectionsAPI-async,processed asynchronously>>.
+|===
+
 [[CollectionsAPI-async]]
 == Asynchronous Calls