Skip to content

Commit 19ae3e6

Browse files
authored
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 2ed9e95)
1 parent 60c93b6 commit 19ae3e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/reindex.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
"default":"5m"
4646
},
4747
"slices":{
48-
"type":"number",
48+
"type":"number|string",
4949
"default":1,
50-
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks."
50+
"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`."
5151
},
5252
"max_docs":{
5353
"type":"number",

rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@
204204
"description":"The throttle to set on this request in sub-requests per second. -1 means no throttle."
205205
},
206206
"slices":{
207-
"type":"number",
207+
"type":"number|string",
208208
"default":1,
209-
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks."
209+
"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`."
210210
}
211211
},
212212
"body":{

0 commit comments

Comments
 (0)