You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/10/19 08:30:56 UTC
[08/50] [abbrv] lucene-solr:jira/solr-11072: SOLR-11500: MOVEREPLICA
api missing in V2
SOLR-11500: MOVEREPLICA api missing in V2
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0953cb32
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0953cb32
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0953cb32
Branch: refs/heads/jira/solr-11072
Commit: 0953cb3270f6eee9a21657ce85f9c3e3e99997db
Parents: fb97ff1
Author: Noble Paul <no...@apache.org>
Authored: Tue Oct 17 23:34:12 2017 +1030
Committer: Noble Paul <no...@apache.org>
Committed: Tue Oct 17 23:34:12 2017 +1030
----------------------------------------------------------------------
solr/solr-ref-guide/src/collections-api.adoc | 2 +-
.../collections.collection.Commands.json | 23 ++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0953cb32/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 1bb0201..a34cac2 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.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0953cb32/solr/solrj/src/resources/apispec/collections.collection.Commands.json
----------------------------------------------------------------------
diff --git a/solr/solrj/src/resources/apispec/collections.collection.Commands.json b/solr/solrj/src/resources/apispec/collections.collection.Commands.json
index c2314ae..dfae2f2 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",