@@ -164,9 +164,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
164164
165165 private final List <Map <String , Double >> indicesBoost ;
166166
167- @ Nullable
168- private final Time keepAlive ;
169-
170167 @ Nullable
171168 private final Boolean keepOnCompletion ;
172169
@@ -190,9 +187,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
190187 @ Nullable
191188 private final Query postFilter ;
192189
193- @ Nullable
194- private final Long preFilterShardSize ;
195-
196190 @ Nullable
197191 private final String preference ;
198192
@@ -217,9 +211,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
217211
218212 private final Map <String , ScriptField > scriptFields ;
219213
220- @ Nullable
221- private final Time scroll ;
222-
223214 private final List <FieldValue > searchAfter ;
224215
225216 @ Nullable
@@ -287,7 +278,6 @@ private SubmitRequest(Builder builder) {
287278 this .ignoreUnavailable = builder .ignoreUnavailable ;
288279 this .index = ApiTypeHelper .unmodifiable (builder .index );
289280 this .indicesBoost = ApiTypeHelper .unmodifiable (builder .indicesBoost );
290- this .keepAlive = builder .keepAlive ;
291281 this .keepOnCompletion = builder .keepOnCompletion ;
292282 this .knn = ApiTypeHelper .unmodifiable (builder .knn );
293283 this .lenient = builder .lenient ;
@@ -296,7 +286,6 @@ private SubmitRequest(Builder builder) {
296286 this .minScore = builder .minScore ;
297287 this .pit = builder .pit ;
298288 this .postFilter = builder .postFilter ;
299- this .preFilterShardSize = builder .preFilterShardSize ;
300289 this .preference = builder .preference ;
301290 this .profile = builder .profile ;
302291 this .q = builder .q ;
@@ -306,7 +295,6 @@ private SubmitRequest(Builder builder) {
306295 this .routing = builder .routing ;
307296 this .runtimeMappings = ApiTypeHelper .unmodifiable (builder .runtimeMappings );
308297 this .scriptFields = ApiTypeHelper .unmodifiable (builder .scriptFields );
309- this .scroll = builder .scroll ;
310298 this .searchAfter = ApiTypeHelper .unmodifiable (builder .searchAfter );
311299 this .searchType = builder .searchType ;
312300 this .seqNoPrimaryTerm = builder .seqNoPrimaryTerm ;
@@ -554,17 +542,6 @@ public final List<Map<String, Double>> indicesBoost() {
554542 return this .indicesBoost ;
555543 }
556544
557- /**
558- * Specifies how long the async search needs to be available. Ongoing async
559- * searches and any saved search results are deleted after this period.
560- * <p>
561- * API name: {@code keep_alive}
562- */
563- @ Nullable
564- public final Time keepAlive () {
565- return this .keepAlive ;
566- }
567-
568545 /**
569546 * If <code>true</code>, results are stored for later retrieval when the search
570547 * completes within the <code>wait_for_completion_timeout</code>.
@@ -646,18 +623,6 @@ public final Query postFilter() {
646623 return this .postFilter ;
647624 }
648625
649- /**
650- * The default value cannot be changed, which enforces the execution of a
651- * pre-filter roundtrip to retrieve statistics from each shard so that the ones
652- * that surely don’t hold any document matching the query get skipped.
653- * <p>
654- * API name: {@code pre_filter_shard_size}
655- */
656- @ Nullable
657- public final Long preFilterShardSize () {
658- return this .preFilterShardSize ;
659- }
660-
661626 /**
662627 * Specify the node or shard the operation should be performed on (default:
663628 * random)
@@ -744,14 +709,6 @@ public final Map<String, ScriptField> scriptFields() {
744709 return this .scriptFields ;
745710 }
746711
747- /**
748- * API name: {@code scroll}
749- */
750- @ Nullable
751- public final Time scroll () {
752- return this .scroll ;
753- }
754-
755712 /**
756713 * API name: {@code search_after}
757714 */
@@ -1239,9 +1196,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
12391196 @ Nullable
12401197 private List <Map <String , Double >> indicesBoost ;
12411198
1242- @ Nullable
1243- private Time keepAlive ;
1244-
12451199 @ Nullable
12461200 private Boolean keepOnCompletion ;
12471201
@@ -1266,9 +1220,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
12661220 @ Nullable
12671221 private Query postFilter ;
12681222
1269- @ Nullable
1270- private Long preFilterShardSize ;
1271-
12721223 @ Nullable
12731224 private String preference ;
12741225
@@ -1296,9 +1247,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
12961247 @ Nullable
12971248 private Map <String , ScriptField > scriptFields ;
12981249
1299- @ Nullable
1300- private Time scroll ;
1301-
13021250 @ Nullable
13031251 private List <FieldValue > searchAfter ;
13041252
@@ -1733,27 +1681,6 @@ public final Builder indicesBoost(Map<String, Double> value, Map<String, Double>
17331681 return this ;
17341682 }
17351683
1736- /**
1737- * Specifies how long the async search needs to be available. Ongoing async
1738- * searches and any saved search results are deleted after this period.
1739- * <p>
1740- * API name: {@code keep_alive}
1741- */
1742- public final Builder keepAlive (@ Nullable Time value ) {
1743- this .keepAlive = value ;
1744- return this ;
1745- }
1746-
1747- /**
1748- * Specifies how long the async search needs to be available. Ongoing async
1749- * searches and any saved search results are deleted after this period.
1750- * <p>
1751- * API name: {@code keep_alive}
1752- */
1753- public final Builder keepAlive (Function <Time .Builder , ObjectBuilder <Time >> fn ) {
1754- return this .keepAlive (fn .apply (new Time .Builder ()).build ());
1755- }
1756-
17571684 /**
17581685 * If <code>true</code>, results are stored for later retrieval when the search
17591686 * completes within the <code>wait_for_completion_timeout</code>.
@@ -1878,18 +1805,6 @@ public final Builder postFilter(Function<Query.Builder, ObjectBuilder<Query>> fn
18781805 return this .postFilter (fn .apply (new Query .Builder ()).build ());
18791806 }
18801807
1881- /**
1882- * The default value cannot be changed, which enforces the execution of a
1883- * pre-filter roundtrip to retrieve statistics from each shard so that the ones
1884- * that surely don’t hold any document matching the query get skipped.
1885- * <p>
1886- * API name: {@code pre_filter_shard_size}
1887- */
1888- public final Builder preFilterShardSize (@ Nullable Long value ) {
1889- this .preFilterShardSize = value ;
1890- return this ;
1891- }
1892-
18931808 /**
18941809 * Specify the node or shard the operation should be performed on (default:
18951810 * random)
@@ -2062,21 +1977,6 @@ public final Builder scriptFields(String key, Function<ScriptField.Builder, Obje
20621977 return scriptFields (key , fn .apply (new ScriptField .Builder ()).build ());
20631978 }
20641979
2065- /**
2066- * API name: {@code scroll}
2067- */
2068- public final Builder scroll (@ Nullable Time value ) {
2069- this .scroll = value ;
2070- return this ;
2071- }
2072-
2073- /**
2074- * API name: {@code scroll}
2075- */
2076- public final Builder scroll (Function <Time .Builder , ObjectBuilder <Time >> fn ) {
2077- return this .scroll (fn .apply (new Time .Builder ()).build ());
2078- }
2079-
20801980 /**
20811981 * API name: {@code search_after}
20821982 * <p>
@@ -2544,9 +2444,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
25442444 if (request .df != null ) {
25452445 params .put ("df" , request .df );
25462446 }
2547- if (request .preFilterShardSize != null ) {
2548- params .put ("pre_filter_shard_size" , String .valueOf (request .preFilterShardSize ));
2549- }
25502447 if (request .minCompatibleShardNode != null ) {
25512448 params .put ("min_compatible_shard_node" , request .minCompatibleShardNode );
25522449 }
@@ -2587,9 +2484,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
25872484 if (request .analyzeWildcard != null ) {
25882485 params .put ("analyze_wildcard" , String .valueOf (request .analyzeWildcard ));
25892486 }
2590- if (request .scroll != null ) {
2591- params .put ("scroll" , request .scroll ._toJsonString ());
2592- }
25932487 if (request .waitForCompletionTimeout != null ) {
25942488 params .put ("wait_for_completion_timeout" , request .waitForCompletionTimeout ._toJsonString ());
25952489 }
@@ -2605,9 +2499,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
26052499 if (request .defaultOperator != null ) {
26062500 params .put ("default_operator" , request .defaultOperator .jsonValue ());
26072501 }
2608- if (request .keepAlive != null ) {
2609- params .put ("keep_alive" , request .keepAlive ._toJsonString ());
2610- }
26112502 if (request .requestCache != null ) {
26122503 params .put ("request_cache" , String .valueOf (request .requestCache ));
26132504 }
0 commit comments