You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/11/28 15:52:18 UTC
lucene-solr:apiv2: SOLR-8029: more spec refinements
Repository: lucene-solr
Updated Branches:
refs/heads/apiv2 cc21a767b -> 509db5805
SOLR-8029: more spec refinements
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/509db580
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/509db580
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/509db580
Branch: refs/heads/apiv2
Commit: 509db5805748e9d8e825f70058d92f6c251aa0f4
Parents: cc21a76
Author: Noble Paul <no...@apache.org>
Authored: Mon Nov 28 21:22:07 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Mon Nov 28 21:22:07 2016 +0530
----------------------------------------------------------------------
.../org/apache/solr/handler/admin/CoreAdminHandlerApi.java | 2 +-
solr/core/src/resources/apispec/cores.core.Commands.json | 7 ++-----
.../core/src/resources/apispec/cores.core.Commands.split.json | 4 ++--
3 files changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/509db580/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandlerApi.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandlerApi.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandlerApi.java
index 50579fa..6ae806b 100644
--- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandlerApi.java
+++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandlerApi.java
@@ -62,7 +62,7 @@ public class CoreAdminHandlerApi extends BaseHandlerApiSupport {
OVERSEEROP(NODEAPIS, POST, OVERSEEROP_OP, "overseer-op", null),
REJOINLEADERELECTION(NODEAPIS, POST, REJOINLEADERELECTION_OP, "rejoin-leader-election", null),
INVOKE(NODEINVOKE, GET, INVOKE_OP, null, null),
- FORCEPREPAREFORLEADERSHIP(PER_CORE_COMMANDS, POST, FORCEPREPAREFORLEADERSHIP_OP, null, null);
+ FORCEPREPAREFORLEADERSHIP(PER_CORE_COMMANDS, POST, FORCEPREPAREFORLEADERSHIP_OP, "force-prepare-for-leadership", null);
public final String commandName;
public final EndPoint endPoint;
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/509db580/solr/core/src/resources/apispec/cores.core.Commands.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/cores.core.Commands.json b/solr/core/src/resources/apispec/cores.core.Commands.json
index 5ebab70..20ad0dd 100644
--- a/solr/core/src/resources/apispec/cores.core.Commands.json
+++ b/solr/core/src/resources/apispec/cores.core.Commands.json
@@ -10,8 +10,7 @@
},
"commands": {
"reload": {
- "type":"object",
- "additionalProperties":true
+ "type":"object"
},
"swap": {
"type":"object",
@@ -92,13 +91,11 @@
},
"request-recovery": {
"type":"object",
- "additionalProperties": true,
"description": "Internal API"
},
- "forceprepareforleadership": {
+ "force-prepare-for-leadership": {
"type": "object",
- "additionalProperties": true,
"description": "Internal API"
},
"split": { "#include": "cores.core.Commands.split"},
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/509db580/solr/core/src/resources/apispec/cores.core.Commands.split.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/cores.core.Commands.split.json b/solr/core/src/resources/apispec/cores.core.Commands.split.json
index fe38e42..1753b52 100644
--- a/solr/core/src/resources/apispec/cores.core.Commands.split.json
+++ b/solr/core/src/resources/apispec/cores.core.Commands.split.json
@@ -7,14 +7,14 @@
"items": {
"type": "string"
},
- "description": "the directory path in which a piece of the index will be written"
+ "description": "the directory path(s) in which a piece of the index will be written"
},
"targetCore": {
"type": "array",
"items": {
"type": "string"
},
- "description": "the target Solr core to which a piece of the index will be merged"
+ "description": "the target Solr core(s) to which a piece of the index will be merged"
},
"splitKey": {
"type":"string",