Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
urinud committed Jun 22, 2023
1 parent 7d22a7d commit 86e94de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public final SlicedScroll slice() {

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -1125,7 +1125,7 @@ public final Builder slice(Function<SlicedScroll.Builder, ObjectBuilder<SlicedSc

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -1327,7 +1327,7 @@ protected static void setupDeleteByQueryRequestDeserializer(ObjectDeserializer<D
request -> {
Map<String, String> params = new HashMap<>();
if (request.slices != null) {
params.put("slices", String.valueOf(request.slices));
params.put("slices", request.slices == 0 ? "auto" : String.valueOf(request.slices));
}
if (request.df != null) {
params.put("df", request.df);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public final Long size() {

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -467,7 +467,7 @@ public final Builder size(@Nullable Long value) {

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -605,7 +605,7 @@ protected static void setupReindexRequestDeserializer(ObjectDeserializer<Reindex
request -> {
Map<String, String> params = new HashMap<>();
if (request.slices != null) {
params.put("slices", String.valueOf(request.slices));
params.put("slices", request.slices == 0 ? "auto" : String.valueOf(request.slices));
}
if (request.requestsPerSecond != null) {
params.put("requests_per_second", String.valueOf(request.requestsPerSecond));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public final SlicedScroll slice() {

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -1181,7 +1181,7 @@ public final Builder slice(Function<SlicedScroll.Builder, ObjectBuilder<SlicedSc

/**
* 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 <code>auto</code>.
* the task isn't sliced into subtasks. Can be set to 0 for <code>auto</code>.
* <p>
* API name: {@code slices}
*/
Expand Down Expand Up @@ -1397,7 +1397,7 @@ protected static void setupUpdateByQueryRequestDeserializer(ObjectDeserializer<U
request -> {
Map<String, String> params = new HashMap<>();
if (request.slices != null) {
params.put("slices", String.valueOf(request.slices));
params.put("slices", request.slices == 0 ? "auto" : String.valueOf(request.slices));
}
if (request.df != null) {
params.put("df", request.df);
Expand Down

0 comments on commit 86e94de

Please sign in to comment.