You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2017/05/15 04:59:20 UTC
lucene-solr:master: SOLR-10412: v2 API: many API command
specification properties are typed "number" but should instead be typed
"integer"
Repository: lucene-solr
Updated Branches:
refs/heads/master 21362a3ba -> 9dc952a47
SOLR-10412: v2 API: many API command specification properties are typed "number" but should instead be typed "integer"
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9dc952a4
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9dc952a4
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9dc952a4
Branch: refs/heads/master
Commit: 9dc952a47c48f463f04722e2f22ad99689831319
Parents: 21362a3
Author: Cao Manh Dat <da...@apache.org>
Authored: Mon May 15 11:59:08 2017 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Mon May 15 11:59:08 2017 +0700
----------------------------------------------------------------------
solr/CHANGES.txt | 3 +++
solr/core/src/resources/apispec/collections.Commands.json | 4 ++--
.../src/resources/apispec/collections.collection.Commands.json | 4 ++--
.../core/src/resources/apispec/core.SchemaEdit.addFieldType.json | 2 +-
solr/core/src/resources/apispec/cores.Commands.json | 2 +-
5 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9dc952a4/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index a3b5515..f42d2ac 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -107,6 +107,9 @@ Bug Fixes
* SOLR-10405: v2 API introspect response contains multiple copies of the experimental format WARNING (Cao Manh Dat)
+* SOLR-10412: v2 API: many API command specification properties are typed "number" but should instead be typed "integer"
+ (Steve Rowe, Cao Manh Dat)
+
Optimizations
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9dc952a4/solr/core/src/resources/apispec/collections.Commands.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/collections.Commands.json b/solr/core/src/resources/apispec/collections.Commands.json
index 60ddd4e..8f5132a 100644
--- a/solr/core/src/resources/apispec/collections.Commands.json
+++ b/solr/core/src/resources/apispec/collections.Commands.json
@@ -42,7 +42,7 @@
}
},
"numShards": {
- "type": "number",
+ "type": "integer",
"description": "The number of shards to be created as part of the collection. Shards are logical partitions of a single collection. Each shard has at least one replica, but more replicas for each shard can be defined with the replicationFactor property. This is a required parameter when using the 'compositeId' router."
},
"shards": {
@@ -50,7 +50,7 @@
"description": "A comma-separated list of shard names, e.g., shard-x,shard-y,shard-z. This is a required parameter when using the 'implicit' router."
},
"replicationFactor": {
- "type": "number",
+ "type": "integer",
"description": "The number of replicas to be created for each shard. Replicas are physical copies of each shard, acting as failover for the shard."
},
"nodeSet": {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9dc952a4/solr/core/src/resources/apispec/collections.collection.Commands.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/collections.collection.Commands.json b/solr/core/src/resources/apispec/collections.collection.Commands.json
index eb3b1da..e749347 100644
--- a/solr/core/src/resources/apispec/collections.collection.Commands.json
+++ b/solr/core/src/resources/apispec/collections.collection.Commands.json
@@ -69,11 +69,11 @@
"description": "Reassign leaders in a collection according to the preferredLeader property across active nodes. This command should be run after the preferredLeader property has been set with the balance-shards or add-replica-property commands.",
"properties":{
"maxAtOnce":{
- "type":"number",
+ "type":"integer",
"description":"The maximum number of reassignments to have in the queue at one time. Values <=0 use the default value Integer.MAX_VALUE. When this number is reached, the process waits for one or more leaders to be successfully assigned before adding more to the queue."
},
"maxWaitSeconds":{
- "type":"number",
+ "type":"integer",
"description":"Timeout, in seconds, when waiting for leaders to be reassigned. If maxAtOnce is less than the number of reassignments pending, this is the maximum interval for any single reassignment.",
"default": "60"
}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9dc952a4/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json b/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
index e24572e..dda6847 100644
--- a/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
+++ b/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
@@ -10,7 +10,7 @@
"description": "The class name to use for the field type. Class names do not need to be fully qualified if they are included with Solr, so instead of 'org.apache.solr.schema.TextField', you can abbreviate the name as 'solr.TextField'. Custom or third-party class names may need to be fully qualified, however."
},
"positionIncrementGap": {
- "type": "number",
+ "type": "integer",
"description": "The distance between the values of a multivalued field. This is used to prevent inaccurate phrase matches across two separate values of the same field.",
"default": "0"
},
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9dc952a4/solr/core/src/resources/apispec/cores.Commands.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/cores.Commands.json b/solr/core/src/resources/apispec/cores.Commands.json
index d6419cf..1ece63c 100644
--- a/solr/core/src/resources/apispec/cores.Commands.json
+++ b/solr/core/src/resources/apispec/cores.Commands.json
@@ -69,7 +69,7 @@
"description": "The replica name."
},
"numShards": {
- "type":"number",
+ "type":"integer",
"description":"The number of shards to create for this core."
},
"async": {