Skip to content

Commit a2bdf11

Browse files
committed
[codegen] update to latest spec and generator
1 parent c8908c8 commit a2bdf11

File tree

56 files changed

+865
-2442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+865
-2442
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,7 +3317,7 @@ public CompletableFuture<InfoResponse> info() {
33173317
* </ul>
33183318
*
33193319
* @see <a href=
3320-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3320+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
33213321
* on elastic.co</a>
33223322
*/
33233323

@@ -3366,7 +3366,7 @@ public <TDocument> CompletableFuture<KnnSearchResponse<TDocument>> knnSearch(Knn
33663366
* a function that initializes a builder to create the
33673367
* {@link KnnSearchRequest}
33683368
* @see <a href=
3369-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3369+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
33703370
* on elastic.co</a>
33713371
*/
33723372

@@ -3427,7 +3427,7 @@ public final CompletableFuture<KnnSearchResponse<Void>> knnSearch(
34273427
* </ul>
34283428
*
34293429
* @see <a href=
3430-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3430+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
34313431
* on elastic.co</a>
34323432
*/
34333433

@@ -3476,7 +3476,7 @@ public <TDocument> CompletableFuture<KnnSearchResponse<TDocument>> knnSearch(Knn
34763476
* a function that initializes a builder to create the
34773477
* {@link KnnSearchRequest}
34783478
* @see <a href=
3479-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3479+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
34803480
* on elastic.co</a>
34813481
*/
34823482

@@ -5001,7 +5001,7 @@ public CompletableFuture<RenderSearchTemplateResponse> renderSearchTemplate() {
50015001
* context you're using for that script.
50025002
*
50035003
* @see <a href=
5004-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5004+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
50055005
* on elastic.co</a>
50065006
*/
50075007

@@ -5034,7 +5034,7 @@ public <TResult> CompletableFuture<ScriptsPainlessExecuteResponse<TResult>> scri
50345034
* a function that initializes a builder to create the
50355035
* {@link ScriptsPainlessExecuteRequest}
50365036
* @see <a href=
5037-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5037+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
50385038
* on elastic.co</a>
50395039
*/
50405040

@@ -5082,7 +5082,7 @@ public final CompletableFuture<ScriptsPainlessExecuteResponse<Void>> scriptsPain
50825082
* context you're using for that script.
50835083
*
50845084
* @see <a href=
5085-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5085+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
50865086
* on elastic.co</a>
50875087
*/
50885088

@@ -5115,7 +5115,7 @@ public <TResult> CompletableFuture<ScriptsPainlessExecuteResponse<TResult>> scri
51155115
* a function that initializes a builder to create the
51165116
* {@link ScriptsPainlessExecuteRequest}
51175117
* @see <a href=
5118-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5118+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
51195119
* on elastic.co</a>
51205120
*/
51215121

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ public InfoResponse info() throws IOException, ElasticsearchException {
33373337
* </ul>
33383338
*
33393339
* @see <a href=
3340-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3340+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
33413341
* on elastic.co</a>
33423342
*/
33433343

@@ -3386,7 +3386,7 @@ public <TDocument> KnnSearchResponse<TDocument> knnSearch(KnnSearchRequest reque
33863386
* a function that initializes a builder to create the
33873387
* {@link KnnSearchRequest}
33883388
* @see <a href=
3389-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3389+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
33903390
* on elastic.co</a>
33913391
*/
33923392

@@ -3449,7 +3449,7 @@ public final KnnSearchResponse<Void> knnSearch(
34493449
* </ul>
34503450
*
34513451
* @see <a href=
3452-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3452+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
34533453
* on elastic.co</a>
34543454
*/
34553455

@@ -3498,7 +3498,7 @@ public <TDocument> KnnSearchResponse<TDocument> knnSearch(KnnSearchRequest reque
34983498
* a function that initializes a builder to create the
34993499
* {@link KnnSearchRequest}
35003500
* @see <a href=
3501-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html">Documentation
3501+
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search">Documentation
35023502
* on elastic.co</a>
35033503
*/
35043504

@@ -5037,7 +5037,7 @@ public RenderSearchTemplateResponse renderSearchTemplate() throws IOException, E
50375037
* context you're using for that script.
50385038
*
50395039
* @see <a href=
5040-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5040+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
50415041
* on elastic.co</a>
50425042
*/
50435043

@@ -5071,7 +5071,7 @@ public <TResult> ScriptsPainlessExecuteResponse<TResult> scriptsPainlessExecute(
50715071
* a function that initializes a builder to create the
50725072
* {@link ScriptsPainlessExecuteRequest}
50735073
* @see <a href=
5074-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5074+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
50755075
* on elastic.co</a>
50765076
*/
50775077

@@ -5120,7 +5120,7 @@ public final ScriptsPainlessExecuteResponse<Void> scriptsPainlessExecute(
51205120
* context you're using for that script.
51215121
*
51225122
* @see <a href=
5123-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5123+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
51245124
* on elastic.co</a>
51255125
*/
51265126

@@ -5153,7 +5153,7 @@ public <TResult> ScriptsPainlessExecuteResponse<TResult> scriptsPainlessExecute(
51535153
* a function that initializes a builder to create the
51545154
* {@link ScriptsPainlessExecuteRequest}
51555155
* @see <a href=
5156-
* "https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html">Documentation
5156+
* "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples">Documentation
51575157
* on elastic.co</a>
51585158
*/
51595159

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ public class IndexingStats implements JsonpSerializable {
9797
@Nullable
9898
private final Double writeLoad;
9999

100+
@Nullable
101+
private final Double recentWriteLoad;
102+
103+
@Nullable
104+
private final Double peakWriteLoad;
105+
100106
// ---------------------------------------------------------------------------------------------
101107

102108
private IndexingStats(Builder builder) {
@@ -118,6 +124,8 @@ private IndexingStats(Builder builder) {
118124
this.indexFailed = ApiTypeHelper.requireNonNull(builder.indexFailed, this, "indexFailed", 0);
119125
this.types = ApiTypeHelper.unmodifiable(builder.types);
120126
this.writeLoad = builder.writeLoad;
127+
this.recentWriteLoad = builder.recentWriteLoad;
128+
this.peakWriteLoad = builder.peakWriteLoad;
121129

122130
}
123131

@@ -234,6 +242,22 @@ public final Double writeLoad() {
234242
return this.writeLoad;
235243
}
236244

245+
/**
246+
* API name: {@code recent_write_load}
247+
*/
248+
@Nullable
249+
public final Double recentWriteLoad() {
250+
return this.recentWriteLoad;
251+
}
252+
253+
/**
254+
* API name: {@code peak_write_load}
255+
*/
256+
@Nullable
257+
public final Double peakWriteLoad() {
258+
return this.peakWriteLoad;
259+
}
260+
237261
/**
238262
* Serialize this object to JSON.
239263
*/
@@ -306,6 +330,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
306330
generator.write(this.writeLoad);
307331

308332
}
333+
if (this.recentWriteLoad != null) {
334+
generator.writeKey("recent_write_load");
335+
generator.write(this.recentWriteLoad);
336+
337+
}
338+
if (this.peakWriteLoad != null) {
339+
generator.writeKey("peak_write_load");
340+
generator.write(this.peakWriteLoad);
341+
342+
}
309343

310344
}
311345

@@ -356,6 +390,12 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
356390
@Nullable
357391
private Double writeLoad;
358392

393+
@Nullable
394+
private Double recentWriteLoad;
395+
396+
@Nullable
397+
private Double peakWriteLoad;
398+
359399
/**
360400
* Required - API name: {@code index_current}
361401
*/
@@ -518,6 +558,22 @@ public final Builder writeLoad(@Nullable Double value) {
518558
return this;
519559
}
520560

561+
/**
562+
* API name: {@code recent_write_load}
563+
*/
564+
public final Builder recentWriteLoad(@Nullable Double value) {
565+
this.recentWriteLoad = value;
566+
return this;
567+
}
568+
569+
/**
570+
* API name: {@code peak_write_load}
571+
*/
572+
public final Builder peakWriteLoad(@Nullable Double value) {
573+
this.peakWriteLoad = value;
574+
return this;
575+
}
576+
521577
@Override
522578
protected Builder self() {
523579
return this;
@@ -561,6 +617,8 @@ protected static void setupIndexingStatsDeserializer(ObjectDeserializer<Indexing
561617
op.add(Builder::indexFailed, JsonpDeserializer.longDeserializer(), "index_failed");
562618
op.add(Builder::types, JsonpDeserializer.stringMapDeserializer(IndexingStats._DESERIALIZER), "types");
563619
op.add(Builder::writeLoad, JsonpDeserializer.doubleDeserializer(), "write_load");
620+
op.add(Builder::recentWriteLoad, JsonpDeserializer.doubleDeserializer(), "recent_write_load");
621+
op.add(Builder::peakWriteLoad, JsonpDeserializer.doubleDeserializer(), "peak_write_load");
564622

565623
}
566624

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public final Float similarity() {
180180
}
181181

182182
/**
183-
* Apply oversampling and rescoring to quantized vectors *
183+
* Apply oversampling and rescoring to quantized vectors
184184
* <p>
185185
* API name: {@code rescore_vector}
186186
*/
@@ -421,7 +421,7 @@ public final Builder similarity(@Nullable Float value) {
421421
}
422422

423423
/**
424-
* Apply oversampling and rescoring to quantized vectors *
424+
* Apply oversampling and rescoring to quantized vectors
425425
* <p>
426426
* API name: {@code rescore_vector}
427427
*/
@@ -431,7 +431,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
431431
}
432432

433433
/**
434-
* Apply oversampling and rescoring to quantized vectors *
434+
* Apply oversampling and rescoring to quantized vectors
435435
* <p>
436436
* API name: {@code rescore_vector}
437437
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public final Float similarity() {
162162
}
163163

164164
/**
165-
* Apply oversampling and rescoring to quantized vectors *
165+
* Apply oversampling and rescoring to quantized vectors
166166
* <p>
167167
* API name: {@code rescore_vector}
168168
*/
@@ -335,7 +335,7 @@ public final Builder similarity(@Nullable Float value) {
335335
}
336336

337337
/**
338-
* Apply oversampling and rescoring to quantized vectors *
338+
* Apply oversampling and rescoring to quantized vectors
339339
* <p>
340340
* API name: {@code rescore_vector}
341341
*/
@@ -345,7 +345,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
345345
}
346346

347347
/**
348-
* Apply oversampling and rescoring to quantized vectors *
348+
* Apply oversampling and rescoring to quantized vectors
349349
* <p>
350350
* API name: {@code rescore_vector}
351351
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public final InnerHits innerHits() {
202202
}
203203

204204
/**
205-
* Apply oversampling and rescoring to quantized vectors *
205+
* Apply oversampling and rescoring to quantized vectors
206206
* <p>
207207
* API name: {@code rescore_vector}
208208
*/
@@ -501,7 +501,7 @@ public final Builder innerHits(Function<InnerHits.Builder, ObjectBuilder<InnerHi
501501
}
502502

503503
/**
504-
* Apply oversampling and rescoring to quantized vectors *
504+
* Apply oversampling and rescoring to quantized vectors
505505
* <p>
506506
* API name: {@code rescore_vector}
507507
*/
@@ -511,7 +511,7 @@ public final Builder rescoreVector(@Nullable RescoreVector value) {
511511
}
512512

513513
/**
514-
* Apply oversampling and rescoring to quantized vectors *
514+
* Apply oversampling and rescoring to quantized vectors
515515
* <p>
516516
* API name: {@code rescore_vector}
517517
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
/**
6060
*
6161
* @see <a href=
62-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html">Documentation
62+
* "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results">Documentation
6363
* on elastic.co</a>
6464
* @see <a href="../doc-files/api-spec.html#_types.SortOptions">API
6565
* specification</a>

0 commit comments

Comments
 (0)