@@ -164,9 +164,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
164
164
165
165
private final List <Map <String , Double >> indicesBoost ;
166
166
167
- @ Nullable
168
- private final Time keepAlive ;
169
-
170
167
@ Nullable
171
168
private final Boolean keepOnCompletion ;
172
169
@@ -190,9 +187,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
190
187
@ Nullable
191
188
private final Query postFilter ;
192
189
193
- @ Nullable
194
- private final Long preFilterShardSize ;
195
-
196
190
@ Nullable
197
191
private final String preference ;
198
192
@@ -217,9 +211,6 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable {
217
211
218
212
private final Map <String , ScriptField > scriptFields ;
219
213
220
- @ Nullable
221
- private final Time scroll ;
222
-
223
214
private final List <FieldValue > searchAfter ;
224
215
225
216
@ Nullable
@@ -287,7 +278,6 @@ private SubmitRequest(Builder builder) {
287
278
this .ignoreUnavailable = builder .ignoreUnavailable ;
288
279
this .index = ApiTypeHelper .unmodifiable (builder .index );
289
280
this .indicesBoost = ApiTypeHelper .unmodifiable (builder .indicesBoost );
290
- this .keepAlive = builder .keepAlive ;
291
281
this .keepOnCompletion = builder .keepOnCompletion ;
292
282
this .knn = ApiTypeHelper .unmodifiable (builder .knn );
293
283
this .lenient = builder .lenient ;
@@ -296,7 +286,6 @@ private SubmitRequest(Builder builder) {
296
286
this .minScore = builder .minScore ;
297
287
this .pit = builder .pit ;
298
288
this .postFilter = builder .postFilter ;
299
- this .preFilterShardSize = builder .preFilterShardSize ;
300
289
this .preference = builder .preference ;
301
290
this .profile = builder .profile ;
302
291
this .q = builder .q ;
@@ -306,7 +295,6 @@ private SubmitRequest(Builder builder) {
306
295
this .routing = builder .routing ;
307
296
this .runtimeMappings = ApiTypeHelper .unmodifiable (builder .runtimeMappings );
308
297
this .scriptFields = ApiTypeHelper .unmodifiable (builder .scriptFields );
309
- this .scroll = builder .scroll ;
310
298
this .searchAfter = ApiTypeHelper .unmodifiable (builder .searchAfter );
311
299
this .searchType = builder .searchType ;
312
300
this .seqNoPrimaryTerm = builder .seqNoPrimaryTerm ;
@@ -554,17 +542,6 @@ public final List<Map<String, Double>> indicesBoost() {
554
542
return this .indicesBoost ;
555
543
}
556
544
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
-
568
545
/**
569
546
* If <code>true</code>, results are stored for later retrieval when the search
570
547
* completes within the <code>wait_for_completion_timeout</code>.
@@ -646,18 +623,6 @@ public final Query postFilter() {
646
623
return this .postFilter ;
647
624
}
648
625
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
-
661
626
/**
662
627
* Specify the node or shard the operation should be performed on (default:
663
628
* random)
@@ -744,14 +709,6 @@ public final Map<String, ScriptField> scriptFields() {
744
709
return this .scriptFields ;
745
710
}
746
711
747
- /**
748
- * API name: {@code scroll}
749
- */
750
- @ Nullable
751
- public final Time scroll () {
752
- return this .scroll ;
753
- }
754
-
755
712
/**
756
713
* API name: {@code search_after}
757
714
*/
@@ -1239,9 +1196,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
1239
1196
@ Nullable
1240
1197
private List <Map <String , Double >> indicesBoost ;
1241
1198
1242
- @ Nullable
1243
- private Time keepAlive ;
1244
-
1245
1199
@ Nullable
1246
1200
private Boolean keepOnCompletion ;
1247
1201
@@ -1266,9 +1220,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
1266
1220
@ Nullable
1267
1221
private Query postFilter ;
1268
1222
1269
- @ Nullable
1270
- private Long preFilterShardSize ;
1271
-
1272
1223
@ Nullable
1273
1224
private String preference ;
1274
1225
@@ -1296,9 +1247,6 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
1296
1247
@ Nullable
1297
1248
private Map <String , ScriptField > scriptFields ;
1298
1249
1299
- @ Nullable
1300
- private Time scroll ;
1301
-
1302
1250
@ Nullable
1303
1251
private List <FieldValue > searchAfter ;
1304
1252
@@ -1733,27 +1681,6 @@ public final Builder indicesBoost(Map<String, Double> value, Map<String, Double>
1733
1681
return this ;
1734
1682
}
1735
1683
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
-
1757
1684
/**
1758
1685
* If <code>true</code>, results are stored for later retrieval when the search
1759
1686
* completes within the <code>wait_for_completion_timeout</code>.
@@ -1878,18 +1805,6 @@ public final Builder postFilter(Function<Query.Builder, ObjectBuilder<Query>> fn
1878
1805
return this .postFilter (fn .apply (new Query .Builder ()).build ());
1879
1806
}
1880
1807
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
-
1893
1808
/**
1894
1809
* Specify the node or shard the operation should be performed on (default:
1895
1810
* random)
@@ -2062,21 +1977,6 @@ public final Builder scriptFields(String key, Function<ScriptField.Builder, Obje
2062
1977
return scriptFields (key , fn .apply (new ScriptField .Builder ()).build ());
2063
1978
}
2064
1979
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
-
2080
1980
/**
2081
1981
* API name: {@code search_after}
2082
1982
* <p>
@@ -2544,9 +2444,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
2544
2444
if (request .df != null ) {
2545
2445
params .put ("df" , request .df );
2546
2446
}
2547
- if (request .preFilterShardSize != null ) {
2548
- params .put ("pre_filter_shard_size" , String .valueOf (request .preFilterShardSize ));
2549
- }
2550
2447
if (request .minCompatibleShardNode != null ) {
2551
2448
params .put ("min_compatible_shard_node" , request .minCompatibleShardNode );
2552
2449
}
@@ -2587,9 +2484,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
2587
2484
if (request .analyzeWildcard != null ) {
2588
2485
params .put ("analyze_wildcard" , String .valueOf (request .analyzeWildcard ));
2589
2486
}
2590
- if (request .scroll != null ) {
2591
- params .put ("scroll" , request .scroll ._toJsonString ());
2592
- }
2593
2487
if (request .waitForCompletionTimeout != null ) {
2594
2488
params .put ("wait_for_completion_timeout" , request .waitForCompletionTimeout ._toJsonString ());
2595
2489
}
@@ -2605,9 +2499,6 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer<SubmitRe
2605
2499
if (request .defaultOperator != null ) {
2606
2500
params .put ("default_operator" , request .defaultOperator .jsonValue ());
2607
2501
}
2608
- if (request .keepAlive != null ) {
2609
- params .put ("keep_alive" , request .keepAlive ._toJsonString ());
2610
- }
2611
2502
if (request .requestCache != null ) {
2612
2503
params .put ("request_cache" , String .valueOf (request .requestCache ));
2613
2504
}
0 commit comments