Skip to content

Commit 8884582

Browse files
committed
Fix the type for "slices" in the Reindex and Update By Query REST API specification
This patch supplements #51792 and #51535 where the type of the "slices" parameter has been fixed.
1 parent 82479f1 commit 8884582

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
@@ -181,9 +181,9 @@
181181
"description":"The throttle to set on this request in sub-requests per second. -1 means no throttle."
182182
},
183183
"slices":{
184-
"type":"number",
184+
"type":"number|string",
185185
"default":1,
186-
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks."
186+
"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`."
187187
}
188188
},
189189
"body":{

0 commit comments

Comments
 (0)