SOLR-11500: MOVEREPLICA api missing in V2

This commit is contained in:
Noble Paul 2017-10-17 23:34:12 +10:30
parent fb97ff1400
commit 0953cb3270
2 changed files with 24 additions and 1 deletions

View File

@ -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.

View File

@ -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",