Apache Solr open-source search software
SOLR-11500: MOVEREPLICA api missing in V2
Noble Paul0953cb3270f6
diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adocindex 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 NodeThis 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.jsonindex 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",