Skip to content

Commit 841f350

Browse files
committed
fixes-from-pr-2412
1 parent a0c99e8 commit 841f350

File tree

65 files changed

+1445
-919
lines changed

Some content is hidden

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

65 files changed

+1445
-919
lines changed

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public ElasticsearchXpackAsyncClient xpack() {
351351
* request.
352352
*
353353
* @see <a href=
354-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
354+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
355355
* on elastic.co</a>
356356
*/
357357

@@ -370,7 +370,7 @@ public CompletableFuture<BulkResponse> bulk(BulkRequest request) {
370370
* a function that initializes a builder to create the
371371
* {@link BulkRequest}
372372
* @see <a href=
373-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
373+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
374374
* on elastic.co</a>
375375
*/
376376

@@ -383,7 +383,7 @@ public final CompletableFuture<BulkResponse> bulk(Function<BulkRequest.Builder,
383383
* request.
384384
*
385385
* @see <a href=
386-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
386+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
387387
* on elastic.co</a>
388388
*/
389389

@@ -398,7 +398,7 @@ public CompletableFuture<BulkResponse> bulk() {
398398
* Explicitly clears the search context for a scroll.
399399
*
400400
* @see <a href=
401-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
401+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
402402
* on elastic.co</a>
403403
*/
404404

@@ -416,7 +416,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll(ClearScrollRequest req
416416
* a function that initializes a builder to create the
417417
* {@link ClearScrollRequest}
418418
* @see <a href=
419-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
419+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
420420
* on elastic.co</a>
421421
*/
422422

@@ -429,7 +429,7 @@ public final CompletableFuture<ClearScrollResponse> clearScroll(
429429
* Explicitly clears the search context for a scroll.
430430
*
431431
* @see <a href=
432-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
432+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
433433
* on elastic.co</a>
434434
*/
435435

@@ -444,7 +444,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll() {
444444
* Close a point in time
445445
*
446446
* @see <a href=
447-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
447+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
448448
* on elastic.co</a>
449449
*/
450450

@@ -462,7 +462,7 @@ public CompletableFuture<ClosePointInTimeResponse> closePointInTime(ClosePointIn
462462
* a function that initializes a builder to create the
463463
* {@link ClosePointInTimeRequest}
464464
* @see <a href=
465-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
465+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
466466
* on elastic.co</a>
467467
*/
468468

@@ -1500,7 +1500,7 @@ public CompletableFuture<MtermvectorsResponse> mtermvectors() {
15001500
* Open a point in time that can be used in subsequent searches
15011501
*
15021502
* @see <a href=
1503-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
1503+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
15041504
* on elastic.co</a>
15051505
*/
15061506

@@ -1518,7 +1518,7 @@ public CompletableFuture<OpenPointInTimeResponse> openPointInTime(OpenPointInTim
15181518
* a function that initializes a builder to create the
15191519
* {@link OpenPointInTimeRequest}
15201520
* @see <a href=
1521-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
1521+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
15221522
* on elastic.co</a>
15231523
*/
15241524

@@ -2238,7 +2238,8 @@ public final <TDocument, TPartialDocument> CompletableFuture<UpdateResponse<TDoc
22382238
// ----- Endpoint: update_by_query
22392239

22402240
/**
2241-
* Performs an update on every document in the index without changing the
2241+
* Updates documents that match the specified query. If no query is specified,
2242+
* performs an update on every document in the index without changing the
22422243
* source, for example to pick up a mapping change.
22432244
*
22442245
* @see <a href=
@@ -2254,7 +2255,8 @@ public CompletableFuture<UpdateByQueryResponse> updateByQuery(UpdateByQueryReque
22542255
}
22552256

22562257
/**
2257-
* Performs an update on every document in the index without changing the
2258+
* Updates documents that match the specified query. If no query is specified,
2259+
* performs an update on every document in the index without changing the
22582260
* source, for example to pick up a mapping change.
22592261
*
22602262
* @param fn

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public ElasticsearchXpackClient xpack() {
352352
* request.
353353
*
354354
* @see <a href=
355-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
355+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
356356
* on elastic.co</a>
357357
*/
358358

@@ -371,7 +371,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE
371371
* a function that initializes a builder to create the
372372
* {@link BulkRequest}
373373
* @see <a href=
374-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
374+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
375375
* on elastic.co</a>
376376
*/
377377

@@ -385,7 +385,7 @@ public final BulkResponse bulk(Function<BulkRequest.Builder, ObjectBuilder<BulkR
385385
* request.
386386
*
387387
* @see <a href=
388-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html">Documentation
388+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation
389389
* on elastic.co</a>
390390
*/
391391

@@ -400,7 +400,7 @@ public BulkResponse bulk() throws IOException, ElasticsearchException {
400400
* Explicitly clears the search context for a scroll.
401401
*
402402
* @see <a href=
403-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
403+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
404404
* on elastic.co</a>
405405
*/
406406

@@ -418,7 +418,7 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce
418418
* a function that initializes a builder to create the
419419
* {@link ClearScrollRequest}
420420
* @see <a href=
421-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
421+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
422422
* on elastic.co</a>
423423
*/
424424

@@ -432,7 +432,7 @@ public final ClearScrollResponse clearScroll(
432432
* Explicitly clears the search context for a scroll.
433433
*
434434
* @see <a href=
435-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/clear-scroll-api.html">Documentation
435+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation
436436
* on elastic.co</a>
437437
*/
438438

@@ -447,7 +447,7 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept
447447
* Close a point in time
448448
*
449449
* @see <a href=
450-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
450+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
451451
* on elastic.co</a>
452452
*/
453453

@@ -466,7 +466,7 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request
466466
* a function that initializes a builder to create the
467467
* {@link ClosePointInTimeRequest}
468468
* @see <a href=
469-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
469+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
470470
* on elastic.co</a>
471471
*/
472472

@@ -1526,7 +1526,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce
15261526
* Open a point in time that can be used in subsequent searches
15271527
*
15281528
* @see <a href=
1529-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
1529+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
15301530
* on elastic.co</a>
15311531
*/
15321532

@@ -1545,7 +1545,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request)
15451545
* a function that initializes a builder to create the
15461546
* {@link OpenPointInTimeRequest}
15471547
* @see <a href=
1548-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/point-in-time-api.html">Documentation
1548+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation
15491549
* on elastic.co</a>
15501550
*/
15511551

@@ -2283,7 +2283,8 @@ public final <TDocument, TPartialDocument> UpdateResponse<TDocument> update(
22832283
// ----- Endpoint: update_by_query
22842284

22852285
/**
2286-
* Performs an update on every document in the index without changing the
2286+
* Updates documents that match the specified query. If no query is specified,
2287+
* performs an update on every document in the index without changing the
22872288
* source, for example to pick up a mapping change.
22882289
*
22892290
* @see <a href=
@@ -2300,7 +2301,8 @@ public UpdateByQueryResponse updateByQuery(UpdateByQueryRequest request)
23002301
}
23012302

23022303
/**
2303-
* Performs an update on every document in the index without changing the
2304+
* Updates documents that match the specified query. If no query is specified,
2305+
* performs an update on every document in the index without changing the
23042306
* source, for example to pick up a mapping change.
23052307
*
23062308
* @param fn

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/8.13/sort-search-results.html">Documentation
62+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/sort-search-results.html">Documentation
6363
* on elastic.co</a>
6464
* @see <a href="../doc-files/api-spec.html#_types.SortOptions">API
6565
* specification</a>

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* specification</a>
5656
*/
5757
@JsonpDeserializable
58-
public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant, TokenFilterDefinitionVariant {
58+
public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant {
5959
private final String ruleFiles;
6060

6161
// ---------------------------------------------------------------------------------------------
@@ -79,14 +79,6 @@ public TokenizerDefinition.Kind _tokenizerDefinitionKind() {
7979
return TokenizerDefinition.Kind.IcuTokenizer;
8080
}
8181

82-
/**
83-
* TokenFilterDefinition variant kind.
84-
*/
85-
@Override
86-
public TokenFilterDefinition.Kind _tokenFilterDefinitionKind() {
87-
return TokenFilterDefinition.Kind.IcuTokenizer;
88-
}
89-
9082
/**
9183
* Required - API name: {@code rule_files}
9284
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
/**
5858
*
5959
* @see <a href=
60-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/analysis-normalizers.html">Documentation
60+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/analysis-normalizers.html">Documentation
6161
* on elastic.co</a>
6262
* @see <a href="../../doc-files/api-spec.html#_types.analysis.Normalizer">API
6363
* specification</a>

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ public enum Kind implements JsonEnum {
100100

101101
IcuNormalizer("icu_normalizer"),
102102

103-
IcuTokenizer("icu_tokenizer"),
104-
105103
IcuTransform("icu_transform"),
106104

107105
Kstem("kstem"),
@@ -454,23 +452,6 @@ public IcuNormalizationTokenFilter icuNormalizer() {
454452
return TaggedUnionUtils.get(this, Kind.IcuNormalizer);
455453
}
456454

457-
/**
458-
* Is this variant instance of kind {@code icu_tokenizer}?
459-
*/
460-
public boolean isIcuTokenizer() {
461-
return _kind == Kind.IcuTokenizer;
462-
}
463-
464-
/**
465-
* Get the {@code icu_tokenizer} variant value.
466-
*
467-
* @throws IllegalStateException
468-
* if the current variant is not of the {@code icu_tokenizer} kind.
469-
*/
470-
public IcuTokenizer icuTokenizer() {
471-
return TaggedUnionUtils.get(this, Kind.IcuTokenizer);
472-
}
473-
474455
/**
475456
* Is this variant instance of kind {@code icu_transform}?
476457
*/
@@ -1254,17 +1235,6 @@ public ObjectBuilder<TokenFilterDefinition> icuNormalizer(
12541235
return this.icuNormalizer(fn.apply(new IcuNormalizationTokenFilter.Builder()).build());
12551236
}
12561237

1257-
public ObjectBuilder<TokenFilterDefinition> icuTokenizer(IcuTokenizer v) {
1258-
this._kind = Kind.IcuTokenizer;
1259-
this._value = v;
1260-
return this;
1261-
}
1262-
1263-
public ObjectBuilder<TokenFilterDefinition> icuTokenizer(
1264-
Function<IcuTokenizer.Builder, ObjectBuilder<IcuTokenizer>> fn) {
1265-
return this.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build());
1266-
}
1267-
12681238
public ObjectBuilder<TokenFilterDefinition> icuTransform(IcuTransformTokenFilter v) {
12691239
this._kind = Kind.IcuTransform;
12701240
this._value = v;
@@ -1679,7 +1649,6 @@ protected static void setupTokenFilterDefinitionDeserializer(ObjectDeserializer<
16791649
op.add(Builder::icuCollation, IcuCollationTokenFilter._DESERIALIZER, "icu_collation");
16801650
op.add(Builder::icuFolding, IcuFoldingTokenFilter._DESERIALIZER, "icu_folding");
16811651
op.add(Builder::icuNormalizer, IcuNormalizationTokenFilter._DESERIALIZER, "icu_normalizer");
1682-
op.add(Builder::icuTokenizer, IcuTokenizer._DESERIALIZER, "icu_tokenizer");
16831652
op.add(Builder::icuTransform, IcuTransformTokenFilter._DESERIALIZER, "icu_transform");
16841653
op.add(Builder::kstem, KStemTokenFilter._DESERIALIZER, "kstem");
16851654
op.add(Builder::keepTypes, KeepTypesTokenFilter._DESERIALIZER, "keep_types");

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -293,24 +293,6 @@ public static TokenFilterDefinition icuNormalizer(
293293
return builder.build();
294294
}
295295

296-
/**
297-
* Creates a builder for the {@link IcuTokenizer icu_tokenizer}
298-
* {@code TokenFilterDefinition} variant.
299-
*/
300-
public static IcuTokenizer.Builder icuTokenizer() {
301-
return new IcuTokenizer.Builder();
302-
}
303-
304-
/**
305-
* Creates a TokenFilterDefinition of the {@link IcuTokenizer icu_tokenizer}
306-
* {@code TokenFilterDefinition} variant.
307-
*/
308-
public static TokenFilterDefinition icuTokenizer(Function<IcuTokenizer.Builder, ObjectBuilder<IcuTokenizer>> fn) {
309-
TokenFilterDefinition.Builder builder = new TokenFilterDefinition.Builder();
310-
builder.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build());
311-
return builder.build();
312-
}
313-
314296
/**
315297
* Creates a builder for the {@link IcuTransformTokenFilter icu_transform}
316298
* {@code TokenFilterDefinition} variant.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* searching with arbitrary geo shapes such as rectangles and polygons.
5454
*
5555
* @see <a href=
56-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/geo-shape.html">Documentation
56+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/geo-shape.html">Documentation
5757
* on elastic.co</a>
5858
* @see <a href=
5959
* "../../doc-files/api-spec.html#_types.mapping.GeoShapeProperty">API

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* polygons.
5555
*
5656
* @see <a href=
57-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/shape.html">Documentation
57+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/shape.html">Documentation
5858
* on elastic.co</a>
5959
* @see <a href="../../doc-files/api-spec.html#_types.mapping.ShapeProperty">API
6060
* specification</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
* the text.
6161
*
6262
* @see <a href=
63-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/query-dsl-mlt-query.html#_document_input_parameters">Documentation
63+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl-mlt-query.html#_document_input_parameters">Documentation
6464
* on elastic.co</a>
6565
* @see <a href="../../doc-files/api-spec.html#_types.query_dsl.Like">API
6666
* specification</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
/**
6262
*
6363
* @see <a href=
64-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.13/query-dsl.html">Documentation
64+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl.html">Documentation
6565
* on elastic.co</a>
6666
* @see <a href=
6767
* "../../doc-files/api-spec.html#_types.query_dsl.QueryContainer">API

0 commit comments

Comments
 (0)