Fix the type for "slices" in the Reindex and Update By Query REST API specification (#51908) (#51911)

This patch supplements #51792 and #51535 where the type of the "slices" parameter has been fixed.

(cherry picked from commit 2ed9e95100474f3dfbeb7efb0529e237b8f61e53)
This commit is contained in:
Karel Minarik 2020-02-05 11:29:21 +01:00 committed by GitHub
parent 60c93b6df5
commit 19ae3e6a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@
"default":"5m" "default":"5m"
}, },
"slices":{ "slices":{
"type":"number", "type":"number|string",
"default":1, "default":1,
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks." "description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`."
}, },
"max_docs":{ "max_docs":{
"type":"number", "type":"number",

View File

@ -204,9 +204,9 @@
"description":"The throttle to set on this request in sub-requests per second. -1 means no throttle." "description":"The throttle to set on this request in sub-requests per second. -1 means no throttle."
}, },
"slices":{ "slices":{
"type":"number", "type":"number|string",
"default":1, "default":1,
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks." "description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`."
} }
}, },
"body":{ "body":{