From 0953cb3270f6eee9a21657ce85f9c3e3e99997db Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 17 Oct 2017 23:34:12 +1030 Subject: [PATCH] SOLR-11500: MOVEREPLICA api missing in V2 --- solr/solr-ref-guide/src/collections-api.adoc | 2 +- .../collections.collection.Commands.json | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adoc index 1bb0201bb67..a34cac28776 100644 --- a/solr/solr-ref-guide/src/collections-api.adoc +++ b/solr/solr-ref-guide/src/collections-api.adoc @@ -1878,7 +1878,7 @@ Time in seconds to wait until new replicas are created, and until leader replica ==== 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. ==== - +[[movereplica]] == MOVEREPLICA: Move a Replica to a New Node This command moves a replica from one node to a new node. In case of shared filesystems the `dataDir` will be reused. diff --git a/solr/solrj/src/resources/apispec/collections.collection.Commands.json b/solr/solrj/src/resources/apispec/collections.collection.Commands.json index c2314aefe67..dfae2f2bc90 100644 --- a/solr/solrj/src/resources/apispec/collections.collection.Commands.json +++ b/solr/solrj/src/resources/apispec/collections.collection.Commands.json @@ -17,6 +17,29 @@ "reload": { "#include": "collections.collection.Commands.reload" }, + "move-replica": { + "type": "object", + "documentation": "https://lucene.apache.org/solr/guide/collections-api.html#movereplica", + "description": "This command moves a replica from one node to a new node. In case of shared filesystems the `dataDir` will be reused.", + "properties": { + "replica": { + "type": "string", + "description": "The name of the replica" + }, + "shard": { + "type": "string", + "description": "The name of the shard" + }, + "sourceNode": { + "type": "string", + "description": "The name of the node that contains the replica" + }, + "targetNode": { + "type": "string", + "description": "The name of the destination node. This parameter is required" + } + } + }, "migrate-docs":{ "type":"object", "documentation":"https://lucene.apache.org/solr/guide/collections-api.html#migrate",