Apache Solr open-source search software
SOLR-10412: v2 API: many API command specification properties are typed "number" but should instead be typed "integer"
Cao Manh Dat9dc952a47c48
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex a3b551519de..f42d2acf47c 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----------------------diff --git a/solr/core/src/resources/apispec/collections.Commands.json b/solr/core/src/resources/apispec/collections.Commands.jsonindex 60ddd4e1ed7..8f5132aaa67 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": {diff --git a/solr/core/src/resources/apispec/collections.collection.Commands.json b/solr/core/src/resources/apispec/collections.collection.Commands.jsonindex eb3b1da82c9..e7493474957 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"}diff --git a/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json b/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.jsonindex e24572e284e..dda684721fc 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"},diff --git a/solr/core/src/resources/apispec/cores.Commands.json b/solr/core/src/resources/apispec/cores.Commands.jsonindex d6419cf60f9..1ece63cafed 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": {