From e3c3815c926910896b3c8cc16cd2b29a1461f26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 19 Jul 2023 12:25:25 +0200 Subject: [PATCH 1/6] [DOCS] Restructures repo README. (#635) --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 89900d797..fcde7eb39 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,26 @@ The `docs/design` folder contains records of the major decisions in the design o - Nested objects can be constructed with builder lambdas, allowing for clean and expressive DSL-like code. - Optional values are represented as `null` with `@Nullable` annotations instead of the newer `Optional`, the Java ecosystem being still very null-based. +## Installation + +Refer to the [Installation section](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_installation) +of the getting started documentation. + +## Connecting + +Refer to the [Connecting section](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_connecting) +of the getting started documentation. + +## Usage + +- [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_creating_an_index) +- [Indexing a document](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_indexing_documents) +- [Getting documents](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_getting_documents) +- [Searching documents](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_searching_documents) +- [Updating documents](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_updating_documents) +- [Deleting documents](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_deleting_documents) +- [Deleting an index](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_deleting_an_index) + ## Documentation Please refer to [the full documentation on elastic.co](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/index.html) for comprehensive information. From 157b368ed9c4d80fc517659310f5aec1ade1b4fa Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 10 Aug 2023 19:08:38 +0200 Subject: [PATCH 2/6] Bump version --- .../ElasticsearchAsyncClient.java | 20 +-- .../elasticsearch/ElasticsearchClient.java | 20 +-- .../elasticsearch/_types/SortOptions.java | 2 +- .../_types/analysis/Normalizer.java | 2 +- .../_types/mapping/GeoShapeProperty.java | 2 +- .../_types/mapping/ShapeProperty.java | 2 +- .../elasticsearch/_types/query_dsl/Like.java | 2 +- .../elasticsearch/_types/query_dsl/Query.java | 2 +- .../query_dsl/SimpleQueryStringFlags.java | 2 +- .../ElasticsearchAsyncSearchAsyncClient.java | 24 ++-- .../ElasticsearchAsyncSearchClient.java | 24 ++-- .../ElasticsearchAutoscalingAsyncClient.java | 14 +- .../ElasticsearchAutoscalingClient.java | 14 +- .../cat/ElasticsearchCatAsyncClient.java | 126 +++++++++--------- .../cat/ElasticsearchCatClient.java | 126 +++++++++--------- .../ccr/ElasticsearchCcrAsyncClient.java | 52 ++++---- .../ccr/ElasticsearchCcrClient.java | 52 ++++---- .../ElasticsearchClusterAsyncClient.java | 84 ++++++------ .../cluster/ElasticsearchClusterClient.java | 84 ++++++------ .../reroute/CommandAllocateReplicaAction.java | 2 +- .../core/bulk/BulkOperationBase.java | 14 -- ...ankEvalMetricDiscountedCumulativeGain.java | 2 +- .../RankEvalMetricExpectedReciprocalRank.java | 2 +- .../RankEvalMetricMeanReciprocalRank.java | 2 +- .../rank_eval/RankEvalMetricPrecision.java | 2 +- .../core/rank_eval/RankEvalMetricRecall.java | 2 +- .../elasticsearch/core/search/Context.java | 2 +- .../elasticsearch/indices/IndexSettings.java | 2 +- .../indices/MappingLimitSettings.java | 2 +- .../ml/ElasticsearchMlAsyncClient.java | 28 ++-- .../ml/ElasticsearchMlClient.java | 28 ++-- .../nodes/ElasticsearchNodesAsyncClient.java | 24 ++-- .../nodes/ElasticsearchNodesClient.java | 24 ++-- .../tasks/ElasticsearchTasksAsyncClient.java | 16 +-- .../tasks/ElasticsearchTasksClient.java | 16 +-- 35 files changed, 404 insertions(+), 418 deletions(-) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 8d91957a8..6395f6d86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -315,7 +315,7 @@ public ElasticsearchXpackAsyncClient xpack() { * request. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -334,7 +334,7 @@ public CompletableFuture bulk(BulkRequest request) { * a function that initializes a builder to create the * {@link BulkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -347,7 +347,7 @@ public final CompletableFuture bulk(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -362,7 +362,7 @@ public CompletableFuture bulk() { * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -380,7 +380,7 @@ public CompletableFuture clearScroll(ClearScrollRequest req * a function that initializes a builder to create the * {@link ClearScrollRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -393,7 +393,7 @@ public final CompletableFuture clearScroll( * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -408,7 +408,7 @@ public CompletableFuture clearScroll() { * Close a point in time * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -426,7 +426,7 @@ public CompletableFuture closePointInTime(ClosePointIn * a function that initializes a builder to create the * {@link ClosePointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -1464,7 +1464,7 @@ public CompletableFuture mtermvectors() { * Open a point in time that can be used in subsequent searches * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -1482,7 +1482,7 @@ public CompletableFuture openPointInTime(OpenPointInTim * a function that initializes a builder to create the * {@link OpenPointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index 22d117caf..dff7be55a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -316,7 +316,7 @@ public ElasticsearchXpackClient xpack() { * request. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -335,7 +335,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE * a function that initializes a builder to create the * {@link BulkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -349,7 +349,7 @@ public final BulkResponse bulk(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/docs-bulk.html">Documentation * on elastic.co */ @@ -364,7 +364,7 @@ public BulkResponse bulk() throws IOException, ElasticsearchException { * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -382,7 +382,7 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce * a function that initializes a builder to create the * {@link ClearScrollRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -396,7 +396,7 @@ public final ClearScrollResponse clearScroll( * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/clear-scroll-api.html">Documentation * on elastic.co */ @@ -411,7 +411,7 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept * Close a point in time * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -430,7 +430,7 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request * a function that initializes a builder to create the * {@link ClosePointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -1490,7 +1490,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce * Open a point in time that can be used in subsequent searches * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ @@ -1509,7 +1509,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request) * a function that initializes a builder to create the * {@link OpenPointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/point-in-time-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java index 26b26fae3..8093a4542 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java @@ -48,7 +48,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/sort-search-results.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java index 6ac779b57..8c6a6fdaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java @@ -46,7 +46,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/analysis-normalizers.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java index 0d88d9962..9575b0254 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java @@ -42,7 +42,7 @@ * searching with arbitrary geo shapes such as rectangles and polygons. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/geo-shape.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java index d7838a8f6..86e86629b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java @@ -43,7 +43,7 @@ * polygons. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/shape.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java index 43458c788..6cdadd169 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java @@ -49,7 +49,7 @@ * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/query-dsl-mlt-query.html#_document_input_parameters">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index b475269e2..049c670d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -50,7 +50,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/query-dsl.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java index d711987b2..a43ff2a9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java @@ -49,7 +49,7 @@ * OR|AND|PREFIX * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/query-dsl-simple-query-string-query.html#supported-flags">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java index 09ca1d00f..e8da1700e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java @@ -65,7 +65,7 @@ public ElasticsearchAsyncSearchAsyncClient withTransportOptions(@Nullable Transp * request will be cancelled. Otherwise, the saved search results are deleted. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -84,7 +84,7 @@ public CompletableFuture delete(DeleteAsyncSearchRequ * a function that initializes a builder to create the * {@link DeleteAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -100,7 +100,7 @@ public final CompletableFuture delete( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -122,7 +122,7 @@ public CompletableFuture> get(GetA * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -137,7 +137,7 @@ public final CompletableFuture> ge * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -159,7 +159,7 @@ public CompletableFuture> get(GetA * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public final CompletableFuture> ge * ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -194,7 +194,7 @@ public CompletableFuture status(AsyncSearchStatusRequ * a function that initializes a builder to create the * {@link AsyncSearchStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -209,7 +209,7 @@ public final CompletableFuture status( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -230,7 +230,7 @@ public CompletableFuture> submit(SubmitReq * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -243,7 +243,7 @@ public final CompletableFuture> submit( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -263,7 +263,7 @@ public CompletableFuture> submit(SubmitReq * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java index 4a01dcadc..f302c82ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java @@ -64,7 +64,7 @@ public ElasticsearchAsyncSearchClient withTransportOptions(@Nullable TransportOp * request will be cancelled. Otherwise, the saved search results are deleted. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -84,7 +84,7 @@ public DeleteAsyncSearchResponse delete(DeleteAsyncSearchRequest request) * a function that initializes a builder to create the * {@link DeleteAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -101,7 +101,7 @@ public final DeleteAsyncSearchResponse delete( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -123,7 +123,7 @@ public GetAsyncSearchResponse get(GetAsyncSearchRequest r * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -138,7 +138,7 @@ public final GetAsyncSearchResponse get( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -160,7 +160,7 @@ public GetAsyncSearchResponse get(GetAsyncSearchRequest r * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -177,7 +177,7 @@ public final GetAsyncSearchResponse get( * ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -197,7 +197,7 @@ public AsyncSearchStatusResponse status(AsyncSearchStatusRequest request) * a function that initializes a builder to create the * {@link AsyncSearchStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -213,7 +213,7 @@ public final AsyncSearchStatusResponse status( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -234,7 +234,7 @@ public SubmitResponse submit(SubmitRequest request, Class * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -248,7 +248,7 @@ public final SubmitResponse submit( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ @@ -269,7 +269,7 @@ public SubmitResponse submit(SubmitRequest request, Type * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/async-search.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java index e79862bdc..d6878ef47 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java @@ -63,7 +63,7 @@ public ElasticsearchAutoscalingAsyncClient withTransportOptions(@Nullable Transp * Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -83,7 +83,7 @@ public CompletableFuture deleteAutoscalingPolic * a function that initializes a builder to create the * {@link DeleteAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -100,7 +100,7 @@ public final CompletableFuture deleteAutoscalin * supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ public CompletableFuture getAutoscalingCapacity() { @@ -115,7 +115,7 @@ public CompletableFuture getAutoscalingCapacity( * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -134,7 +134,7 @@ public CompletableFuture getAutoscalingPolicy(GetA * a function that initializes a builder to create the * {@link GetAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -150,7 +150,7 @@ public final CompletableFuture getAutoscalingPolic * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ @@ -169,7 +169,7 @@ public CompletableFuture putAutoscalingPolicy(PutA * a function that initializes a builder to create the * {@link PutAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java index 6a2893b1d..151248e0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java @@ -62,7 +62,7 @@ public ElasticsearchAutoscalingClient withTransportOptions(@Nullable TransportOp * Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -82,7 +82,7 @@ public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscaling * a function that initializes a builder to create the * {@link DeleteAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -100,7 +100,7 @@ public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy( * supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOException, ElasticsearchException { @@ -115,7 +115,7 @@ public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOExceptio * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -135,7 +135,7 @@ public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyReq * a function that initializes a builder to create the * {@link GetAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -152,7 +152,7 @@ public final GetAutoscalingPolicyResponse getAutoscalingPolicy( * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ @@ -172,7 +172,7 @@ public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyReq * a function that initializes a builder to create the * {@link PutAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index 339d14e03..f76bbbb43 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -60,7 +60,7 @@ public ElasticsearchCatAsyncClient withTransportOptions(@Nullable TransportOptio * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -79,7 +79,7 @@ public CompletableFuture aliases(AliasesRequest request) { * a function that initializes a builder to create the * {@link AliasesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -93,7 +93,7 @@ public final CompletableFuture aliases( * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -109,7 +109,7 @@ public CompletableFuture aliases() { * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -128,7 +128,7 @@ public CompletableFuture allocation(AllocationRequest reques * a function that initializes a builder to create the * {@link AllocationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -142,7 +142,7 @@ public final CompletableFuture allocation( * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -204,7 +204,7 @@ public CompletableFuture componentTemplates() { * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -223,7 +223,7 @@ public CompletableFuture count(CountRequest request) { * a function that initializes a builder to create the * {@link CountRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -237,7 +237,7 @@ public final CompletableFuture count( * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -253,7 +253,7 @@ public CompletableFuture count() { * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -272,7 +272,7 @@ public CompletableFuture fielddata(FielddataRequest request) * a function that initializes a builder to create the * {@link FielddataRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -286,7 +286,7 @@ public final CompletableFuture fielddata( * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -301,7 +301,7 @@ public CompletableFuture fielddata() { * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -319,7 +319,7 @@ public CompletableFuture health(HealthRequest request) { * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -332,7 +332,7 @@ public final CompletableFuture health( * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -347,7 +347,7 @@ public CompletableFuture health() { * Returns help for the Cat APIs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat.html">Documentation * on elastic.co */ public CompletableFuture help() { @@ -361,7 +361,7 @@ public CompletableFuture help() { * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -380,7 +380,7 @@ public CompletableFuture indices(IndicesRequest request) { * a function that initializes a builder to create the * {@link IndicesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -394,7 +394,7 @@ public final CompletableFuture indices( * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -409,7 +409,7 @@ public CompletableFuture indices() { * Returns information about the master node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-master.html">Documentation * on elastic.co */ public CompletableFuture master() { @@ -423,7 +423,7 @@ public CompletableFuture master() { * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -441,7 +441,7 @@ public CompletableFuture mlDataFrameAnalytics(MlDa * a function that initializes a builder to create the * {@link MlDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -454,7 +454,7 @@ public final CompletableFuture mlDataFrameAnalytic * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -469,7 +469,7 @@ public CompletableFuture mlDataFrameAnalytics() { * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -487,7 +487,7 @@ public CompletableFuture mlDatafeeds(MlDatafeedsRequest req * a function that initializes a builder to create the * {@link MlDatafeedsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -500,7 +500,7 @@ public final CompletableFuture mlDatafeeds( * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -515,7 +515,7 @@ public CompletableFuture mlDatafeeds() { * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -533,7 +533,7 @@ public CompletableFuture mlJobs(MlJobsRequest request) { * a function that initializes a builder to create the * {@link MlJobsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -546,7 +546,7 @@ public final CompletableFuture mlJobs( * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -561,7 +561,7 @@ public CompletableFuture mlJobs() { * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -579,7 +579,7 @@ public CompletableFuture mlTrainedModels(MlTrainedModel * a function that initializes a builder to create the * {@link MlTrainedModelsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -592,7 +592,7 @@ public final CompletableFuture mlTrainedModels( * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -607,7 +607,7 @@ public CompletableFuture mlTrainedModels() { * Returns information about custom node attributes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodeattrs.html">Documentation * on elastic.co */ public CompletableFuture nodeattrs() { @@ -621,7 +621,7 @@ public CompletableFuture nodeattrs() { * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -639,7 +639,7 @@ public CompletableFuture nodes(NodesRequest request) { * a function that initializes a builder to create the * {@link NodesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -652,7 +652,7 @@ public final CompletableFuture nodes( * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -667,7 +667,7 @@ public CompletableFuture nodes() { * Returns a concise representation of the cluster pending tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-pending-tasks.html">Documentation * on elastic.co */ public CompletableFuture pendingTasks() { @@ -681,7 +681,7 @@ public CompletableFuture pendingTasks() { * Returns information about installed plugins across nodes node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-plugins.html">Documentation * on elastic.co */ public CompletableFuture plugins() { @@ -695,7 +695,7 @@ public CompletableFuture plugins() { * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -713,7 +713,7 @@ public CompletableFuture recovery(RecoveryRequest request) { * a function that initializes a builder to create the * {@link RecoveryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -726,7 +726,7 @@ public final CompletableFuture recovery( * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -741,7 +741,7 @@ public CompletableFuture recovery() { * Returns information about snapshot repositories registered in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-repositories.html">Documentation * on elastic.co */ public CompletableFuture repositories() { @@ -755,7 +755,7 @@ public CompletableFuture repositories() { * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -773,7 +773,7 @@ public CompletableFuture segments(SegmentsRequest request) { * a function that initializes a builder to create the * {@link SegmentsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -786,7 +786,7 @@ public final CompletableFuture segments( * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -801,7 +801,7 @@ public CompletableFuture segments() { * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -819,7 +819,7 @@ public CompletableFuture shards(ShardsRequest request) { * a function that initializes a builder to create the * {@link ShardsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -832,7 +832,7 @@ public final CompletableFuture shards( * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -847,7 +847,7 @@ public CompletableFuture shards() { * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -865,7 +865,7 @@ public CompletableFuture snapshots(SnapshotsRequest request) * a function that initializes a builder to create the * {@link SnapshotsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -878,7 +878,7 @@ public final CompletableFuture snapshots( * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -894,7 +894,7 @@ public CompletableFuture snapshots() { * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -913,7 +913,7 @@ public CompletableFuture tasks(TasksRequest request) { * a function that initializes a builder to create the * {@link TasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -927,7 +927,7 @@ public final CompletableFuture tasks( * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -942,7 +942,7 @@ public CompletableFuture tasks() { * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -960,7 +960,7 @@ public CompletableFuture templates(TemplatesRequest request) * a function that initializes a builder to create the * {@link TemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -973,7 +973,7 @@ public final CompletableFuture templates( * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -989,7 +989,7 @@ public CompletableFuture templates() { * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1008,7 +1008,7 @@ public CompletableFuture threadPool(ThreadPoolRequest reques * a function that initializes a builder to create the * {@link ThreadPoolRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1022,7 +1022,7 @@ public final CompletableFuture threadPool( * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1037,7 +1037,7 @@ public CompletableFuture threadPool() { * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ @@ -1055,7 +1055,7 @@ public CompletableFuture transforms(TransformsRequest reques * a function that initializes a builder to create the * {@link TransformsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ @@ -1068,7 +1068,7 @@ public final CompletableFuture transforms( * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index 166a0296d..fb29d83be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -61,7 +61,7 @@ public ElasticsearchCatClient withTransportOptions(@Nullable TransportOptions tr * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -80,7 +80,7 @@ public AliasesResponse aliases(AliasesRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link AliasesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -94,7 +94,7 @@ public final AliasesResponse aliases(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-alias.html">Documentation * on elastic.co */ @@ -110,7 +110,7 @@ public AliasesResponse aliases() throws IOException, ElasticsearchException { * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -129,7 +129,7 @@ public AllocationResponse allocation(AllocationRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link AllocationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -143,7 +143,7 @@ public final AllocationResponse allocation(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-allocation.html">Documentation * on elastic.co */ @@ -207,7 +207,7 @@ public ComponentTemplatesResponse componentTemplates() throws IOException, Elast * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -226,7 +226,7 @@ public CountResponse count(CountRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link CountRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -240,7 +240,7 @@ public final CountResponse count(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-count.html">Documentation * on elastic.co */ @@ -256,7 +256,7 @@ public CountResponse count() throws IOException, ElasticsearchException { * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -275,7 +275,7 @@ public FielddataResponse fielddata(FielddataRequest request) throws IOException, * a function that initializes a builder to create the * {@link FielddataRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -289,7 +289,7 @@ public final FielddataResponse fielddata(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-fielddata.html">Documentation * on elastic.co */ @@ -304,7 +304,7 @@ public FielddataResponse fielddata() throws IOException, ElasticsearchException * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -322,7 +322,7 @@ public HealthResponse health(HealthRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -335,7 +335,7 @@ public final HealthResponse health(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-health.html">Documentation * on elastic.co */ @@ -350,7 +350,7 @@ public HealthResponse health() throws IOException, ElasticsearchException { * Returns help for the Cat APIs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat.html">Documentation * on elastic.co */ public HelpResponse help() throws IOException, ElasticsearchException { @@ -364,7 +364,7 @@ public HelpResponse help() throws IOException, ElasticsearchException { * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -383,7 +383,7 @@ public IndicesResponse indices(IndicesRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link IndicesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -397,7 +397,7 @@ public final IndicesResponse indices(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-indices.html">Documentation * on elastic.co */ @@ -412,7 +412,7 @@ public IndicesResponse indices() throws IOException, ElasticsearchException { * Returns information about the master node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-master.html">Documentation * on elastic.co */ public MasterResponse master() throws IOException, ElasticsearchException { @@ -425,7 +425,7 @@ public MasterResponse master() throws IOException, ElasticsearchException { * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -444,7 +444,7 @@ public MlDataFrameAnalyticsResponse mlDataFrameAnalytics(MlDataFrameAnalyticsReq * a function that initializes a builder to create the * {@link MlDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -458,7 +458,7 @@ public final MlDataFrameAnalyticsResponse mlDataFrameAnalytics( * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -473,7 +473,7 @@ public MlDataFrameAnalyticsResponse mlDataFrameAnalytics() throws IOException, E * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -491,7 +491,7 @@ public MlDatafeedsResponse mlDatafeeds(MlDatafeedsRequest request) throws IOExce * a function that initializes a builder to create the * {@link MlDatafeedsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -505,7 +505,7 @@ public final MlDatafeedsResponse mlDatafeeds( * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-datafeeds.html">Documentation * on elastic.co */ @@ -520,7 +520,7 @@ public MlDatafeedsResponse mlDatafeeds() throws IOException, ElasticsearchExcept * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -538,7 +538,7 @@ public MlJobsResponse mlJobs(MlJobsRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link MlJobsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -551,7 +551,7 @@ public final MlJobsResponse mlJobs(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -566,7 +566,7 @@ public MlJobsResponse mlJobs() throws IOException, ElasticsearchException { * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -585,7 +585,7 @@ public MlTrainedModelsResponse mlTrainedModels(MlTrainedModelsRequest request) * a function that initializes a builder to create the * {@link MlTrainedModelsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -599,7 +599,7 @@ public final MlTrainedModelsResponse mlTrainedModels( * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-trained-model.html">Documentation * on elastic.co */ @@ -614,7 +614,7 @@ public MlTrainedModelsResponse mlTrainedModels() throws IOException, Elasticsear * Returns information about custom node attributes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodeattrs.html">Documentation * on elastic.co */ public NodeattrsResponse nodeattrs() throws IOException, ElasticsearchException { @@ -628,7 +628,7 @@ public NodeattrsResponse nodeattrs() throws IOException, ElasticsearchException * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -646,7 +646,7 @@ public NodesResponse nodes(NodesRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link NodesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -659,7 +659,7 @@ public final NodesResponse nodes(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-nodes.html">Documentation * on elastic.co */ @@ -674,7 +674,7 @@ public NodesResponse nodes() throws IOException, ElasticsearchException { * Returns a concise representation of the cluster pending tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-pending-tasks.html">Documentation * on elastic.co */ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchException { @@ -688,7 +688,7 @@ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchExce * Returns information about installed plugins across nodes node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-plugins.html">Documentation * on elastic.co */ public PluginsResponse plugins() throws IOException, ElasticsearchException { @@ -701,7 +701,7 @@ public PluginsResponse plugins() throws IOException, ElasticsearchException { * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -719,7 +719,7 @@ public RecoveryResponse recovery(RecoveryRequest request) throws IOException, El * a function that initializes a builder to create the * {@link RecoveryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -732,7 +732,7 @@ public final RecoveryResponse recovery(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-recovery.html">Documentation * on elastic.co */ @@ -747,7 +747,7 @@ public RecoveryResponse recovery() throws IOException, ElasticsearchException { * Returns information about snapshot repositories registered in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-repositories.html">Documentation * on elastic.co */ public RepositoriesResponse repositories() throws IOException, ElasticsearchException { @@ -761,7 +761,7 @@ public RepositoriesResponse repositories() throws IOException, ElasticsearchExce * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -779,7 +779,7 @@ public SegmentsResponse segments(SegmentsRequest request) throws IOException, El * a function that initializes a builder to create the * {@link SegmentsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -792,7 +792,7 @@ public final SegmentsResponse segments(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-segments.html">Documentation * on elastic.co */ @@ -807,7 +807,7 @@ public SegmentsResponse segments() throws IOException, ElasticsearchException { * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -825,7 +825,7 @@ public ShardsResponse shards(ShardsRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link ShardsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -838,7 +838,7 @@ public final ShardsResponse shards(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-shards.html">Documentation * on elastic.co */ @@ -853,7 +853,7 @@ public ShardsResponse shards() throws IOException, ElasticsearchException { * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -871,7 +871,7 @@ public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException, * a function that initializes a builder to create the * {@link SnapshotsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -884,7 +884,7 @@ public final SnapshotsResponse snapshots(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-snapshots.html">Documentation * on elastic.co */ @@ -900,7 +900,7 @@ public SnapshotsResponse snapshots() throws IOException, ElasticsearchException * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -919,7 +919,7 @@ public TasksResponse tasks(TasksRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link TasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -933,7 +933,7 @@ public final TasksResponse tasks(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -948,7 +948,7 @@ public TasksResponse tasks() throws IOException, ElasticsearchException { * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -966,7 +966,7 @@ public TemplatesResponse templates(TemplatesRequest request) throws IOException, * a function that initializes a builder to create the * {@link TemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -979,7 +979,7 @@ public final TemplatesResponse templates(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-templates.html">Documentation * on elastic.co */ @@ -995,7 +995,7 @@ public TemplatesResponse templates() throws IOException, ElasticsearchException * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1014,7 +1014,7 @@ public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link ThreadPoolRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1028,7 +1028,7 @@ public final ThreadPoolResponse threadPool(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1043,7 +1043,7 @@ public ThreadPoolResponse threadPool() throws IOException, ElasticsearchExceptio * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ @@ -1061,7 +1061,7 @@ public TransformsResponse transforms(TransformsRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link TransformsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ @@ -1074,7 +1074,7 @@ public final TransformsResponse transforms(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-transforms.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java index 0fa607b50..b517e36ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java @@ -59,7 +59,7 @@ public ElasticsearchCcrAsyncClient withTransportOptions(@Nullable TransportOptio * Deletes auto-follow patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -78,7 +78,7 @@ public CompletableFuture deleteAutoFollowPatter * a function that initializes a builder to create the * {@link DeleteAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -94,7 +94,7 @@ public final CompletableFuture deleteAutoFollow * index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-follow.html">Documentation * on elastic.co */ @@ -113,7 +113,7 @@ public CompletableFuture follow(FollowRequest request) { * a function that initializes a builder to create the * {@link FollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-follow.html">Documentation * on elastic.co */ @@ -129,7 +129,7 @@ public final CompletableFuture follow( * status for each follower index * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -148,7 +148,7 @@ public CompletableFuture followInfo(FollowInfoRequest reques * a function that initializes a builder to create the * {@link FollowInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -164,7 +164,7 @@ public final CompletableFuture followInfo( * associated with each shard for the specified indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -183,7 +183,7 @@ public CompletableFuture followStats(FollowStatsRequest req * a function that initializes a builder to create the * {@link FollowStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -198,7 +198,7 @@ public final CompletableFuture followStats( * Removes the follower retention leases from the leader. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -216,7 +216,7 @@ public CompletableFuture forgetFollower(ForgetFollowerRe * a function that initializes a builder to create the * {@link ForgetFollowerRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -232,7 +232,7 @@ public final CompletableFuture forgetFollower( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -251,7 +251,7 @@ public CompletableFuture getAutoFollowPattern(GetA * a function that initializes a builder to create the * {@link GetAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -265,7 +265,7 @@ public final CompletableFuture getAutoFollowPatter * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -280,7 +280,7 @@ public CompletableFuture getAutoFollowPattern() { * Pauses an auto-follow pattern * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -299,7 +299,7 @@ public CompletableFuture pauseAutoFollowPattern( * a function that initializes a builder to create the * {@link PauseAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -315,7 +315,7 @@ public final CompletableFuture pauseAutoFollowPa * operations from the leader index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -334,7 +334,7 @@ public CompletableFuture pauseFollow(PauseFollowRequest req * a function that initializes a builder to create the * {@link PauseFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -351,7 +351,7 @@ public final CompletableFuture pauseFollow( * the specified patterns will be automatically configured as follower indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -371,7 +371,7 @@ public CompletableFuture putAutoFollowPattern(PutA * a function that initializes a builder to create the * {@link PutAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -386,7 +386,7 @@ public final CompletableFuture putAutoFollowPatter * Resumes an auto-follow pattern that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -405,7 +405,7 @@ public CompletableFuture resumeAutoFollowPatter * a function that initializes a builder to create the * {@link ResumeAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -420,7 +420,7 @@ public final CompletableFuture resumeAutoFollow * Resumes a follower index that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -438,7 +438,7 @@ public CompletableFuture resumeFollow(ResumeFollowRequest * a function that initializes a builder to create the * {@link ResumeFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -453,7 +453,7 @@ public final CompletableFuture resumeFollow( * Gets all stats related to cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-stats.html">Documentation * on elastic.co */ public CompletableFuture stats() { @@ -468,7 +468,7 @@ public CompletableFuture stats() { * metadata and settings associated with cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-unfollow.html">Documentation * on elastic.co */ @@ -487,7 +487,7 @@ public CompletableFuture unfollow(UnfollowRequest request) { * a function that initializes a builder to create the * {@link UnfollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-unfollow.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java index 291bdff46..98e2a2005 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java @@ -60,7 +60,7 @@ public ElasticsearchCcrClient withTransportOptions(@Nullable TransportOptions tr * Deletes auto-follow patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -79,7 +79,7 @@ public DeleteAutoFollowPatternResponse deleteAutoFollowPattern(DeleteAutoFollowP * a function that initializes a builder to create the * {@link DeleteAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -96,7 +96,7 @@ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( * index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-follow.html">Documentation * on elastic.co */ @@ -115,7 +115,7 @@ public FollowResponse follow(FollowRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link FollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-follow.html">Documentation * on elastic.co */ @@ -131,7 +131,7 @@ public final FollowResponse follow(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -150,7 +150,7 @@ public FollowInfoResponse followInfo(FollowInfoRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link FollowInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -166,7 +166,7 @@ public final FollowInfoResponse followInfo(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -185,7 +185,7 @@ public FollowStatsResponse followStats(FollowStatsRequest request) throws IOExce * a function that initializes a builder to create the * {@link FollowStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -201,7 +201,7 @@ public final FollowStatsResponse followStats( * Removes the follower retention leases from the leader. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -220,7 +220,7 @@ public ForgetFollowerResponse forgetFollower(ForgetFollowerRequest request) * a function that initializes a builder to create the * {@link ForgetFollowerRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -237,7 +237,7 @@ public final ForgetFollowerResponse forgetFollower( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -257,7 +257,7 @@ public GetAutoFollowPatternResponse getAutoFollowPattern(GetAutoFollowPatternReq * a function that initializes a builder to create the * {@link GetAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -272,7 +272,7 @@ public final GetAutoFollowPatternResponse getAutoFollowPattern( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -287,7 +287,7 @@ public GetAutoFollowPatternResponse getAutoFollowPattern() throws IOException, E * Pauses an auto-follow pattern * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -306,7 +306,7 @@ public PauseAutoFollowPatternResponse pauseAutoFollowPattern(PauseAutoFollowPatt * a function that initializes a builder to create the * {@link PauseAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -323,7 +323,7 @@ public final PauseAutoFollowPatternResponse pauseAutoFollowPattern( * operations from the leader index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -342,7 +342,7 @@ public PauseFollowResponse pauseFollow(PauseFollowRequest request) throws IOExce * a function that initializes a builder to create the * {@link PauseFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -360,7 +360,7 @@ public final PauseFollowResponse pauseFollow( * the specified patterns will be automatically configured as follower indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -381,7 +381,7 @@ public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternReq * a function that initializes a builder to create the * {@link PutAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -397,7 +397,7 @@ public final PutAutoFollowPatternResponse putAutoFollowPattern( * Resumes an auto-follow pattern that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -416,7 +416,7 @@ public ResumeAutoFollowPatternResponse resumeAutoFollowPattern(ResumeAutoFollowP * a function that initializes a builder to create the * {@link ResumeAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -432,7 +432,7 @@ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( * Resumes a follower index that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -450,7 +450,7 @@ public ResumeFollowResponse resumeFollow(ResumeFollowRequest request) throws IOE * a function that initializes a builder to create the * {@link ResumeFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -466,7 +466,7 @@ public final ResumeFollowResponse resumeFollow( * Gets all stats related to cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-get-stats.html">Documentation * on elastic.co */ public CcrStatsResponse stats() throws IOException, ElasticsearchException { @@ -481,7 +481,7 @@ public CcrStatsResponse stats() throws IOException, ElasticsearchException { * metadata and settings associated with cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-unfollow.html">Documentation * on elastic.co */ @@ -500,7 +500,7 @@ public UnfollowResponse unfollow(UnfollowRequest request) throws IOException, El * a function that initializes a builder to create the * {@link UnfollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ccr-post-unfollow.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java index 29b04d1c5..34f52e842 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java @@ -63,7 +63,7 @@ public ElasticsearchClusterAsyncClient withTransportOptions(@Nullable TransportO * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -81,7 +81,7 @@ public CompletableFuture allocationExplain(Allocation * a function that initializes a builder to create the * {@link AllocationExplainRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -94,7 +94,7 @@ public final CompletableFuture allocationExplain( * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -109,7 +109,7 @@ public CompletableFuture allocationExplain() { * Deletes a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -128,7 +128,7 @@ public CompletableFuture deleteComponentTemplat * a function that initializes a builder to create the * {@link DeleteComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -143,7 +143,7 @@ public final CompletableFuture deleteComponentT * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -162,7 +162,7 @@ public CompletableFuture deleteVotingConfigExclusions( * a function that initializes a builder to create the * {@link DeleteVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public final CompletableFuture deleteVotingConfigExclusions( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -190,7 +190,7 @@ public CompletableFuture deleteVotingConfigExclusions() { * Returns information about whether a particular component template exist * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -208,7 +208,7 @@ public CompletableFuture existsComponentTemplate(ExistsComponen * a function that initializes a builder to create the * {@link ExistsComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -223,7 +223,7 @@ public final CompletableFuture existsComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -241,7 +241,7 @@ public CompletableFuture getComponentTemplate(GetC * a function that initializes a builder to create the * {@link GetComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -254,7 +254,7 @@ public final CompletableFuture getComponentTemplat * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -269,7 +269,7 @@ public CompletableFuture getComponentTemplate() { * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -287,7 +287,7 @@ public CompletableFuture getSettings(GetClusterSetti * a function that initializes a builder to create the * {@link GetClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -300,7 +300,7 @@ public final CompletableFuture getSettings( * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -315,7 +315,7 @@ public CompletableFuture getSettings() { * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -333,7 +333,7 @@ public CompletableFuture health(HealthRequest request) { * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -346,7 +346,7 @@ public final CompletableFuture health( * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -361,7 +361,7 @@ public CompletableFuture health() { * Returns different information about the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-info.html">Documentation * on elastic.co */ @@ -379,7 +379,7 @@ public CompletableFuture info(ClusterInfoRequest request) { * a function that initializes a builder to create the * {@link ClusterInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-info.html">Documentation * on elastic.co */ @@ -395,7 +395,7 @@ public final CompletableFuture info( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -414,7 +414,7 @@ public CompletableFuture pendingTasks(PendingTasksRequest * a function that initializes a builder to create the * {@link PendingTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -428,7 +428,7 @@ public final CompletableFuture pendingTasks( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -443,7 +443,7 @@ public CompletableFuture pendingTasks() { * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -461,7 +461,7 @@ public CompletableFuture postVotingConfigExclusions(PostVotingC * a function that initializes a builder to create the * {@link PostVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -474,7 +474,7 @@ public final CompletableFuture postVotingConfigExclusions( * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -489,7 +489,7 @@ public CompletableFuture postVotingConfigExclusions() { * Creates or updates a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -507,7 +507,7 @@ public CompletableFuture putComponentTemplate(PutC * a function that initializes a builder to create the * {@link PutComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -522,7 +522,7 @@ public final CompletableFuture putComponentTemplat * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -540,7 +540,7 @@ public CompletableFuture putSettings(PutClusterSetti * a function that initializes a builder to create the * {@link PutClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -553,7 +553,7 @@ public final CompletableFuture putSettings( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -568,7 +568,7 @@ public CompletableFuture putSettings() { * Returns the information about configured remote clusters. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-remote-info.html">Documentation * on elastic.co */ public CompletableFuture remoteInfo() { @@ -582,7 +582,7 @@ public CompletableFuture remoteInfo() { * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -600,7 +600,7 @@ public CompletableFuture reroute(RerouteRequest request) { * a function that initializes a builder to create the * {@link RerouteRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -613,7 +613,7 @@ public final CompletableFuture reroute( * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -628,7 +628,7 @@ public CompletableFuture reroute() { * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -646,7 +646,7 @@ public CompletableFuture state(StateRequest request) { * a function that initializes a builder to create the * {@link StateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -659,7 +659,7 @@ public final CompletableFuture state( * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -674,7 +674,7 @@ public CompletableFuture state() { * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ @@ -692,7 +692,7 @@ public CompletableFuture stats(ClusterStatsRequest request * a function that initializes a builder to create the * {@link ClusterStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ @@ -705,7 +705,7 @@ public final CompletableFuture stats( * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java index 79304b93d..2431e2e06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java @@ -61,7 +61,7 @@ public ElasticsearchClusterClient withTransportOptions(@Nullable TransportOption * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -80,7 +80,7 @@ public AllocationExplainResponse allocationExplain(AllocationExplainRequest requ * a function that initializes a builder to create the * {@link AllocationExplainRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -94,7 +94,7 @@ public final AllocationExplainResponse allocationExplain( * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -109,7 +109,7 @@ public AllocationExplainResponse allocationExplain() throws IOException, Elastic * Deletes a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -128,7 +128,7 @@ public DeleteComponentTemplateResponse deleteComponentTemplate(DeleteComponentTe * a function that initializes a builder to create the * {@link DeleteComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -144,7 +144,7 @@ public final DeleteComponentTemplateResponse deleteComponentTemplate( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -163,7 +163,7 @@ public BooleanResponse deleteVotingConfigExclusions(DeleteVotingConfigExclusions * a function that initializes a builder to create the * {@link DeleteVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -177,7 +177,7 @@ public final BooleanResponse deleteVotingConfigExclusions( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -192,7 +192,7 @@ public BooleanResponse deleteVotingConfigExclusions() throws IOException, Elasti * Returns information about whether a particular component template exist * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -211,7 +211,7 @@ public BooleanResponse existsComponentTemplate(ExistsComponentTemplateRequest re * a function that initializes a builder to create the * {@link ExistsComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -227,7 +227,7 @@ public final BooleanResponse existsComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -246,7 +246,7 @@ public GetComponentTemplateResponse getComponentTemplate(GetComponentTemplateReq * a function that initializes a builder to create the * {@link GetComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -260,7 +260,7 @@ public final GetComponentTemplateResponse getComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -275,7 +275,7 @@ public GetComponentTemplateResponse getComponentTemplate() throws IOException, E * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -294,7 +294,7 @@ public GetClusterSettingsResponse getSettings(GetClusterSettingsRequest request) * a function that initializes a builder to create the * {@link GetClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -308,7 +308,7 @@ public final GetClusterSettingsResponse getSettings( * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-get-settings.html">Documentation * on elastic.co */ @@ -323,7 +323,7 @@ public GetClusterSettingsResponse getSettings() throws IOException, Elasticsearc * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -341,7 +341,7 @@ public HealthResponse health(HealthRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -354,7 +354,7 @@ public final HealthResponse health(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-health.html">Documentation * on elastic.co */ @@ -369,7 +369,7 @@ public HealthResponse health() throws IOException, ElasticsearchException { * Returns different information about the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-info.html">Documentation * on elastic.co */ @@ -387,7 +387,7 @@ public ClusterInfoResponse info(ClusterInfoRequest request) throws IOException, * a function that initializes a builder to create the * {@link ClusterInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-info.html">Documentation * on elastic.co */ @@ -403,7 +403,7 @@ public final ClusterInfoResponse info(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -422,7 +422,7 @@ public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOE * a function that initializes a builder to create the * {@link PendingTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -437,7 +437,7 @@ public final PendingTasksResponse pendingTasks( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-pending.html">Documentation * on elastic.co */ @@ -452,7 +452,7 @@ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchExce * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -471,7 +471,7 @@ public BooleanResponse postVotingConfigExclusions(PostVotingConfigExclusionsRequ * a function that initializes a builder to create the * {@link PostVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -485,7 +485,7 @@ public final BooleanResponse postVotingConfigExclusions( * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -500,7 +500,7 @@ public BooleanResponse postVotingConfigExclusions() throws IOException, Elastics * Creates or updates a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -519,7 +519,7 @@ public PutComponentTemplateResponse putComponentTemplate(PutComponentTemplateReq * a function that initializes a builder to create the * {@link PutComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-component-template.html">Documentation * on elastic.co */ @@ -535,7 +535,7 @@ public final PutComponentTemplateResponse putComponentTemplate( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -554,7 +554,7 @@ public PutClusterSettingsResponse putSettings(PutClusterSettingsRequest request) * a function that initializes a builder to create the * {@link PutClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -568,7 +568,7 @@ public final PutClusterSettingsResponse putSettings( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-update-settings.html">Documentation * on elastic.co */ @@ -583,7 +583,7 @@ public PutClusterSettingsResponse putSettings() throws IOException, Elasticsearc * Returns the information about configured remote clusters. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-remote-info.html">Documentation * on elastic.co */ public RemoteInfoResponse remoteInfo() throws IOException, ElasticsearchException { @@ -597,7 +597,7 @@ public RemoteInfoResponse remoteInfo() throws IOException, ElasticsearchExceptio * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -615,7 +615,7 @@ public RerouteResponse reroute(RerouteRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link RerouteRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -628,7 +628,7 @@ public final RerouteResponse reroute(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-reroute.html">Documentation * on elastic.co */ @@ -643,7 +643,7 @@ public RerouteResponse reroute() throws IOException, ElasticsearchException { * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -661,7 +661,7 @@ public StateResponse state(StateRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link StateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -674,7 +674,7 @@ public final StateResponse state(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-state.html">Documentation * on elastic.co */ @@ -689,7 +689,7 @@ public StateResponse state() throws IOException, ElasticsearchException { * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ @@ -707,7 +707,7 @@ public ClusterStatsResponse stats(ClusterStatsRequest request) throws IOExceptio * a function that initializes a builder to create the * {@link ClusterStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ @@ -721,7 +721,7 @@ public final ClusterStatsResponse stats( * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java index 2d3fa06b9..b936c649e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java @@ -45,7 +45,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/modules-cluster.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java index 3fb805975..e96138923 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java @@ -276,18 +276,4 @@ public final BuilderT versionType(@Nullable VersionType value) { } - // --------------------------------------------------------------------------------------------- - protected static > void setupBulkOperationBaseDeserializer( - ObjectDeserializer op) { - - op.add(AbstractBuilder::id, JsonpDeserializer.stringDeserializer(), "_id"); - op.add(AbstractBuilder::index, JsonpDeserializer.stringDeserializer(), "_index"); - op.add(AbstractBuilder::routing, JsonpDeserializer.stringDeserializer(), "routing"); - op.add(AbstractBuilder::ifPrimaryTerm, JsonpDeserializer.longDeserializer(), "if_primary_term"); - op.add(AbstractBuilder::ifSeqNo, JsonpDeserializer.longDeserializer(), "if_seq_no"); - op.add(AbstractBuilder::version, JsonpDeserializer.longDeserializer(), "version"); - op.add(AbstractBuilder::versionType, VersionType._DESERIALIZER, "version_type"); - - } - } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java index 41a1db461..9dc441793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java @@ -41,7 +41,7 @@ * Discounted cumulative gain (DCG) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-rank-eval.html#_discounted_cumulative_gain_dcg">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java index 6749b33a5..ff1a684d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java @@ -41,7 +41,7 @@ * Expected Reciprocal Rank (ERR) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-rank-eval.html#_expected_reciprocal_rank_err">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java index 7d6dda236..3259fb9ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java @@ -38,7 +38,7 @@ * Mean Reciprocal Rank * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-rank-eval.html#_mean_reciprocal_rank">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java index 361622378..e2cc24d9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java @@ -41,7 +41,7 @@ * Precision at K (P@k) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-rank-eval.html#k-precision">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java index 9d40fc056..856724ede 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java @@ -38,7 +38,7 @@ * Recall at K (R@k) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-rank-eval.html#k-recall">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java index b1d3f1733..5f4b3f49b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java @@ -51,7 +51,7 @@ * document's field for the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/query-dsl-mlt-query.html#_document_input_parameters">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index 7cd072307..7dc6d2a3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -53,7 +53,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/index-modules.html#index-modules-settings">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java index d2c10b0eb..17441be9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java @@ -44,7 +44,7 @@ * Mapping Limit Settings * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/mapping-settings-limit.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java index 669f5df46..22e8e74b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java @@ -97,7 +97,7 @@ public final CompletableFuture clearTr * multiple times throughout its lifecycle. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-close-job.html">Documentation * on elastic.co */ @@ -116,7 +116,7 @@ public CompletableFuture closeJob(CloseJobRequest request) { * a function that initializes a builder to create the * {@link CloseJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-close-job.html">Documentation * on elastic.co */ @@ -131,7 +131,7 @@ public final CompletableFuture closeJob( * Deletes a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -149,7 +149,7 @@ public CompletableFuture deleteCalendar(DeleteCalendarRe * a function that initializes a builder to create the * {@link DeleteCalendarRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -164,7 +164,7 @@ public final CompletableFuture deleteCalendar( * Deletes scheduled events from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -182,7 +182,7 @@ public CompletableFuture deleteCalendarEvent(Delete * a function that initializes a builder to create the * {@link DeleteCalendarEventRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -197,7 +197,7 @@ public final CompletableFuture deleteCalendarEvent( * Deletes anomaly detection jobs from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -215,7 +215,7 @@ public CompletableFuture deleteCalendarJob(DeleteCale * a function that initializes a builder to create the * {@link DeleteCalendarJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -230,7 +230,7 @@ public final CompletableFuture deleteCalendarJob( * Deletes an existing data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -249,7 +249,7 @@ public CompletableFuture deleteDataFrameAnalyt * a function that initializes a builder to create the * {@link DeleteDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -264,7 +264,7 @@ public final CompletableFuture deleteDataFrame * Deletes an existing datafeed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -282,7 +282,7 @@ public CompletableFuture deleteDatafeed(DeleteDatafeedRe * a function that initializes a builder to create the * {@link DeleteDatafeedRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -1846,7 +1846,7 @@ public final CompletableFuture putCalendarJob( * Instantiates a data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-dfanalytics.html">Documentation * on elastic.co */ @@ -1865,7 +1865,7 @@ public CompletableFuture putDataFrameAnalytics( * a function that initializes a builder to create the * {@link PutDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-dfanalytics.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java index 2eacde97d..c85b750a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java @@ -99,7 +99,7 @@ public final ClearTrainedModelDeploymentCacheResponse clearTrainedModelDeploymen * multiple times throughout its lifecycle. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-close-job.html">Documentation * on elastic.co */ @@ -118,7 +118,7 @@ public CloseJobResponse closeJob(CloseJobRequest request) throws IOException, El * a function that initializes a builder to create the * {@link CloseJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-close-job.html">Documentation * on elastic.co */ @@ -133,7 +133,7 @@ public final CloseJobResponse closeJob(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -152,7 +152,7 @@ public DeleteCalendarResponse deleteCalendar(DeleteCalendarRequest request) * a function that initializes a builder to create the * {@link DeleteCalendarRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -168,7 +168,7 @@ public final DeleteCalendarResponse deleteCalendar( * Deletes scheduled events from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -187,7 +187,7 @@ public DeleteCalendarEventResponse deleteCalendarEvent(DeleteCalendarEventReques * a function that initializes a builder to create the * {@link DeleteCalendarEventRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -203,7 +203,7 @@ public final DeleteCalendarEventResponse deleteCalendarEvent( * Deletes anomaly detection jobs from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -222,7 +222,7 @@ public DeleteCalendarJobResponse deleteCalendarJob(DeleteCalendarJobRequest requ * a function that initializes a builder to create the * {@link DeleteCalendarJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -238,7 +238,7 @@ public final DeleteCalendarJobResponse deleteCalendarJob( * Deletes an existing data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -257,7 +257,7 @@ public DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(DeleteDataFrame * a function that initializes a builder to create the * {@link DeleteDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -273,7 +273,7 @@ public final DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics( * Deletes an existing datafeed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -292,7 +292,7 @@ public DeleteDatafeedResponse deleteDatafeed(DeleteDatafeedRequest request) * a function that initializes a builder to create the * {@link DeleteDatafeedRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -1905,7 +1905,7 @@ public final PutCalendarJobResponse putCalendarJob( * Instantiates a data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-dfanalytics.html">Documentation * on elastic.co */ @@ -1924,7 +1924,7 @@ public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalytics * a function that initializes a builder to create the * {@link PutDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-dfanalytics.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java index 0c1775f57..18d60a849 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java @@ -131,7 +131,7 @@ public final CompletableFuture getRepositor * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -149,7 +149,7 @@ public CompletableFuture hotThreads(HotThreadsRequest reques * a function that initializes a builder to create the * {@link HotThreadsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -162,7 +162,7 @@ public final CompletableFuture hotThreads( * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -177,7 +177,7 @@ public CompletableFuture hotThreads() { * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -195,7 +195,7 @@ public CompletableFuture info(NodesInfoRequest request) { * a function that initializes a builder to create the * {@link NodesInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -208,7 +208,7 @@ public final CompletableFuture info( * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -269,7 +269,7 @@ public CompletableFuture reloadSecureSettings() { * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -287,7 +287,7 @@ public CompletableFuture stats(NodesStatsRequest request) { * a function that initializes a builder to create the * {@link NodesStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -300,7 +300,7 @@ public final CompletableFuture stats( * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -315,7 +315,7 @@ public CompletableFuture stats() { * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -333,7 +333,7 @@ public CompletableFuture usage(NodesUsageRequest request) { * a function that initializes a builder to create the * {@link NodesUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -346,7 +346,7 @@ public final CompletableFuture usage( * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java index cdf2d053a..066596d72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java @@ -133,7 +133,7 @@ public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo( * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -151,7 +151,7 @@ public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link HotThreadsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -164,7 +164,7 @@ public final HotThreadsResponse hotThreads(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -179,7 +179,7 @@ public HotThreadsResponse hotThreads() throws IOException, ElasticsearchExceptio * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -197,7 +197,7 @@ public NodesInfoResponse info(NodesInfoRequest request) throws IOException, Elas * a function that initializes a builder to create the * {@link NodesInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -210,7 +210,7 @@ public final NodesInfoResponse info(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -273,7 +273,7 @@ public ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, E * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -291,7 +291,7 @@ public NodesStatsResponse stats(NodesStatsRequest request) throws IOException, E * a function that initializes a builder to create the * {@link NodesStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -304,7 +304,7 @@ public final NodesStatsResponse stats(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -319,7 +319,7 @@ public NodesStatsResponse stats() throws IOException, ElasticsearchException { * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -337,7 +337,7 @@ public NodesUsageResponse usage(NodesUsageRequest request) throws IOException, E * a function that initializes a builder to create the * {@link NodesUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -350,7 +350,7 @@ public final NodesUsageResponse usage(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-nodes-usage.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java index 38fab3a42..f4c953575 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java @@ -60,7 +60,7 @@ public ElasticsearchTasksAsyncClient withTransportOptions(@Nullable TransportOpt * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -78,7 +78,7 @@ public CompletableFuture cancel(CancelRequest request) { * a function that initializes a builder to create the * {@link CancelRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public final CompletableFuture cancel( * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -106,7 +106,7 @@ public CompletableFuture cancel() { * Returns information about a task. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -124,7 +124,7 @@ public CompletableFuture get(GetTasksRequest request) { * a function that initializes a builder to create the * {@link GetTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public final CompletableFuture get( * Returns a list of tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -157,7 +157,7 @@ public CompletableFuture list(ListRequest request) { * a function that initializes a builder to create the * {@link ListRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -169,7 +169,7 @@ public final CompletableFuture list(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java index fc6174f54..849dfc083 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java @@ -60,7 +60,7 @@ public ElasticsearchTasksClient withTransportOptions(@Nullable TransportOptions * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -78,7 +78,7 @@ public CancelResponse cancel(CancelRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link CancelRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public final CancelResponse cancel(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -106,7 +106,7 @@ public CancelResponse cancel() throws IOException, ElasticsearchException { * Returns information about a task. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -124,7 +124,7 @@ public GetTasksResponse get(GetTasksRequest request) throws IOException, Elastic * a function that initializes a builder to create the * {@link GetTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public final GetTasksResponse get(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -157,7 +157,7 @@ public ListResponse list(ListRequest request) throws IOException, ElasticsearchE * a function that initializes a builder to create the * {@link ListRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ @@ -170,7 +170,7 @@ public final ListResponse list(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/tasks.html">Documentation * on elastic.co */ From b2b0e4708df2979d38c58abbb85e98edb2bb6c77 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 11 Aug 2023 19:03:54 +0200 Subject: [PATCH 3/6] [codegen] Update to latest API spec --- .gitignore | 5 + config/checkstyle/checkstyle_suppressions.xml | 4 + .../ElasticsearchAsyncClient.java | 10 + .../elasticsearch/ElasticsearchClient.java | 10 + .../elasticsearch/_types/CompletionStats.java | 16 +- .../elasticsearch/_types/DocStats.java | 22 +- .../_types/GeoShapeRelation.java | 16 + .../elasticsearch/_types/InlineScript.java | 14 +- .../elasticsearch/_types/QueryCacheStats.java | 76 +- .../elasticsearch/_types/ScriptBase.java | 9 + .../elasticsearch/_types/ScriptLanguage.java | 12 + .../elasticsearch/_types/SegmentsStats.java | 196 ++- .../elasticsearch/_types/SortOrder.java | 6 + .../elasticsearch/_types/StoreStats.java | 46 +- .../elasticsearch/_types/StoredScript.java | 20 +- .../elasticsearch/_types/StoredScriptId.java | 8 +- .../AdjacencyMatrixAggregation.java | 8 + .../AutoDateHistogramAggregation.java | 38 + .../aggregations/BoxplotAggregation.java | 8 + .../aggregations/BucketScriptAggregation.java | 6 + .../BucketSelectorAggregation.java | 6 + .../aggregations/BucketSortAggregation.java | 22 + .../aggregations/CardinalityAggregation.java | 10 + .../CardinalityExecutionMode.java | 17 + .../aggregations/ChildrenAggregation.java | 4 + .../aggregations/CompositeAggregation.java | 25 + .../CompositeAggregationBase.java | 282 ++++ .../CompositeAggregationSource.java | 82 +- .../CompositeDateHistogramAggregation.java | 293 ++++ .../CompositeGeoTileGridAggregation.java | 174 +++ .../CompositeHistogramAggregation.java | 130 ++ .../CompositeTermsAggregation.java | 97 ++ .../DateHistogramAggregation.java | 80 ++ .../aggregations/DateRangeAggregation.java | 49 + .../aggregations/DateRangeExpression.java | 16 + .../DiversifiedSamplerAggregation.java | 18 + .../ExtendedStatsAggregation.java | 4 + .../ExtendedStatsBucketAggregation.java | 4 + .../aggregations/FiltersAggregation.java | 22 + .../aggregations/FrequentItemSetsField.java | 18 + .../aggregations/MetricAggregationBase.java | 25 + .../aggregations/PipelineAggregationBase.java | 10 + .../SamplerAggregationExecutionHint.java | 9 + .../_types/mapping/RuntimeField.java | 24 +- .../_types/query_dsl/BoolQuery.java | 50 + .../_types/query_dsl/BoostingQuery.java | 34 +- .../_types/query_dsl/CombinedFieldsQuery.java | 50 +- .../query_dsl/CombinedFieldsZeroTerms.java | 6 + .../_types/query_dsl/ConstantScoreQuery.java | 21 +- .../_types/query_dsl/DecayFunctionBase.java | 6 + .../_types/query_dsl/DecayPlacement.java | 22 + .../_types/query_dsl/DisMaxQuery.java | 30 +- .../query_dsl/DistanceFeatureQuery.java | 56 +- .../_types/query_dsl/ExistsQuery.java | 8 +- .../_types/query_dsl/FieldLookup.java | 20 +- .../query_dsl/FieldValueFactorModifier.java | 35 + .../FieldValueFactorScoreFunction.java | 22 +- .../_types/query_dsl/FunctionBoostMode.java | 18 + .../_types/query_dsl/FunctionScoreMode.java | 18 + .../_types/query_dsl/FunctionScoreQuery.java | 34 + .../_types/query_dsl/FuzzyQuery.java | 50 +- .../_types/query_dsl/GeoBoundingBoxQuery.java | 16 + .../_types/query_dsl/GeoDistanceQuery.java | 33 +- .../_types/query_dsl/GeoShapeFieldQuery.java | 13 + .../_types/query_dsl/GeoShapeQuery.java | 8 + .../_types/query_dsl/GeoValidationMethod.java | 7 + .../_types/query_dsl/HasChildQuery.java | 62 +- .../_types/query_dsl/HasParentQuery.java | 48 +- .../_types/query_dsl/IdsQuery.java | 6 + .../_types/query_dsl/IntervalsAllOf.java | 38 +- .../_types/query_dsl/IntervalsAnyOf.java | 22 +- .../_types/query_dsl/IntervalsFuzzy.java | 34 +- .../_types/query_dsl/IntervalsMatch.java | 36 +- .../_types/query_dsl/IntervalsPrefix.java | 22 +- .../_types/query_dsl/IntervalsWildcard.java | 22 +- .../_types/query_dsl/LikeDocument.java | 12 + .../query_dsl/MatchBoolPrefixQuery.java | 58 +- .../query_dsl/MatchPhrasePrefixQuery.java | 28 +- .../_types/query_dsl/MatchPhraseQuery.java | 22 +- .../_types/query_dsl/MatchQuery.java | 87 +- .../_types/query_dsl/MoreLikeThisQuery.java | 122 +- .../_types/query_dsl/MultiMatchQuery.java | 90 +- .../_types/query_dsl/MultiValueMode.java | 12 + .../_types/query_dsl/NestedQuery.java | 38 +- .../_types/query_dsl/ParentIdQuery.java | 14 + .../_types/query_dsl/PercolateQuery.java | 46 +- .../_types/query_dsl/PinnedDoc.java | 16 +- .../_types/query_dsl/PinnedQuery.java | 25 +- .../_types/query_dsl/PrefixQuery.java | 24 +- .../elasticsearch/_types/query_dsl/Query.java | 30 + .../_types/query_dsl/QueryBase.java | 10 + .../_types/query_dsl/QueryBuilders.java | 16 + .../_types/query_dsl/QueryStringQuery.java | 132 +- .../_types/query_dsl/RangeQuery.java | 26 + .../_types/query_dsl/RangeQueryBase.java | 4 + .../_types/query_dsl/RangeRelation.java | 10 + .../RankFeatureFunctionLogarithm.java | 8 +- .../RankFeatureFunctionSaturation.java | 4 + .../query_dsl/RankFeatureFunctionSigmoid.java | 16 +- .../_types/query_dsl/RankFeatureQuery.java | 46 +- .../_types/query_dsl/RegexpQuery.java | 30 +- .../_types/query_dsl/RuleQuery.java | 191 +++ .../_types/query_dsl/ScriptQuery.java | 15 +- .../_types/query_dsl/ScriptScoreFunction.java | 12 +- .../_types/query_dsl/ScriptScoreQuery.java | 36 +- .../_types/query_dsl/ShapeFieldQuery.java | 16 + .../_types/query_dsl/ShapeQuery.java | 6 + .../query_dsl/SimpleQueryStringFlag.java | 45 + .../query_dsl/SimpleQueryStringQuery.java | 84 +- .../_types/query_dsl/SpanContainingQuery.java | 30 +- .../_types/query_dsl/SpanFirstQuery.java | 20 +- .../_types/query_dsl/SpanMultiTermQuery.java | 15 +- .../_types/query_dsl/SpanNearQuery.java | 24 +- .../_types/query_dsl/SpanNotQuery.java | 44 +- .../_types/query_dsl/SpanOrQuery.java | 16 +- .../_types/query_dsl/SpanWithinQuery.java | 30 +- .../_types/query_dsl/TermQuery.java | 36 +- .../_types/query_dsl/TermsSetQuery.java | 27 +- .../_types/query_dsl/TextExpansionQuery.java | 40 +- .../_types/query_dsl/TextQueryType.java | 24 + .../_types/query_dsl/WildcardQuery.java | 4 +- .../_types/query_dsl/ZeroTermsQuery.java | 6 + .../cat/MlTrainedModelsRequest.java | 48 +- .../elasticsearch/cat/SegmentsRequest.java | 22 +- .../elasticsearch/cat/ShardsRequest.java | 21 +- .../elasticsearch/cat/SnapshotsRequest.java | 24 +- .../elasticsearch/cat/TasksRequest.java | 56 +- .../elasticsearch/cat/TemplatesRequest.java | 12 +- .../elasticsearch/cat/ThreadPoolRequest.java | 23 +- .../elasticsearch/cat/TransformsRequest.java | 38 +- .../DataFrameAnalyticsRecord.java | 66 +- .../cat/ml_datafeeds/DatafeedsRecord.java | 58 +- .../elasticsearch/cat/ml_jobs/JobsRecord.java | 354 +++-- .../TrainedModelsRecord.java | 74 +- .../cat/segments/SegmentsRecord.java | 96 +- .../cat/shards/ShardsRecord.java | 374 ++--- .../cat/snapshots/SnapshotsRecord.java | 70 +- .../elasticsearch/cat/tasks/TasksRecord.java | 64 +- .../cat/templates/TemplatesRecord.java | 20 +- .../cat/thread_pool/ThreadPoolRecord.java | 84 +- .../cat/transforms/TransformsRecord.java | 168 ++- .../cluster/ClusterStatsRequest.java | 21 +- .../DeleteComponentTemplateRequest.java | 22 +- .../cluster/GetClusterSettingsRequest.java | 29 +- .../cluster/GetComponentTemplateRequest.java | 29 +- .../cluster/PendingTasksRequest.java | 27 +- .../cluster/PutComponentTemplateRequest.java | 67 +- .../cluster/pending_tasks/PendingTask.java | 60 +- .../cluster/stats/CharFilterTypes.java | 436 +++--- .../cluster/stats/ClusterFileSystem.java | 34 +- .../cluster/stats/ClusterIndices.java | 88 +- .../cluster/stats/ClusterJvm.java | 44 +- .../cluster/stats/ClusterJvmMemory.java | 20 +- .../cluster/stats/ClusterJvmVersion.java | 60 +- .../cluster/stats/ClusterNetworkTypes.java | 30 +- .../cluster/stats/ClusterNodeCount.java | 234 ++-- .../cluster/stats/ClusterNodes.java | 69 +- .../cluster/stats/ClusterOperatingSystem.java | 198 ++- .../ClusterOperatingSystemArchitecture.java | 50 +- .../stats/ClusterOperatingSystemName.java | 16 +- .../ClusterOperatingSystemPrettyName.java | 18 +- .../cluster/stats/ClusterProcess.java | 24 +- .../cluster/stats/ClusterProcessCpu.java | 10 +- .../ClusterProcessOpenFileDescriptors.java | 30 +- .../cluster/stats/ClusterShardMetrics.java | 30 +- .../cluster/stats/FieldTypes.java | 46 +- .../cluster/stats/FieldTypesMappings.java | 42 +- .../cluster/stats/IndexingPressureMemory.java | 46 +- .../cluster/stats/NodePackagingType.java | 30 +- .../stats/OperatingSystemMemoryInfo.java | 113 +- .../cluster/stats/RuntimeFieldTypes.java | 332 +++-- .../cluster/stats/StatsResponseBase.java | 8 +- .../elasticsearch/core/SearchRequest.java | 493 ++++--- .../core/bulk/BulkOperationBase.java | 14 + .../core/health_report/Indicators.java | 37 + .../ShardsCapacityIndicator.java | 144 ++ .../ShardsCapacityIndicatorDetails.java | 186 +++ .../ShardsCapacityIndicatorTierDetail.java | 177 +++ .../core/search/BoundaryScanner.java | 20 + .../core/search/FieldCollapse.java | 22 +- .../core/search/HighlightBase.java | 150 +++ .../core/search/HighlighterType.java | 9 + .../elasticsearch/core/search/InnerHits.java | 26 + .../core/search/RescoreQuery.java | 30 +- .../elasticsearch/core/search/ScoreMode.java | 16 + .../elasticsearch/doc-files/api-spec.html | 1197 +++++++++-------- .../enrich/DeletePolicyRequest.java | 4 +- .../ElasticsearchEnrichAsyncClient.java | 8 +- .../enrich/ElasticsearchEnrichClient.java | 8 +- .../enrich/EnrichStatsRequest.java | 4 +- .../enrich/EnrichStatsResponse.java | 52 +- .../enrich/ExecutePolicyRequest.java | 10 +- .../enrich/GetPolicyRequest.java | 11 +- .../enrich/PutPolicyRequest.java | 30 +- .../eql/ElasticsearchEqlAsyncClient.java | 42 +- .../eql/ElasticsearchEqlClient.java | 42 +- .../elasticsearch/eql/EqlDeleteRequest.java | 14 +- .../elasticsearch/eql/EqlGetRequest.java | 4 +- .../eql/GetEqlStatusRequest.java | 4 +- .../graph/ElasticsearchGraphAsyncClient.java | 4 +- .../graph/ElasticsearchGraphClient.java | 4 +- .../elasticsearch/graph/ExploreControls.java | 54 +- .../elasticsearch/graph/ExploreRequest.java | 65 +- .../clients/elasticsearch/graph/Hop.java | 40 +- .../elasticsearch/graph/VertexDefinition.java | 44 +- .../clients/elasticsearch/indices/Alias.java | 32 + .../indices/AliasDefinition.java | 32 + .../elasticsearch/indices/AnalyzeRequest.java | 81 +- .../indices/ClearCacheRequest.java | 87 +- .../indices/CloneIndexRequest.java | 57 +- .../indices/CloseIndexRequest.java | 85 +- .../indices/CreateDataStreamRequest.java | 21 +- .../indices/CreateIndexRequest.java | 50 +- .../indices/DataLifecycleWithRollover.java | 36 + .../elasticsearch/indices/DataStream.java | 487 ++++--- .../indices/DataStreamIndex.java | 16 +- .../indices/DataStreamTimestampField.java | 12 +- .../indices/DataStreamsStatsRequest.java | 21 +- .../indices/DataStreamsStatsResponse.java | 132 +- .../indices/DeleteAliasRequest.java | 47 +- .../indices/DeleteDataStreamRequest.java | 26 +- .../indices/DeleteIndexRequest.java | 83 +- .../indices/DeleteTemplateRequest.java | 26 +- .../indices/DiskUsageRequest.java | 45 +- .../indices/DownsampleConfig.java | 12 +- .../indices/DownsampleRequest.java | 13 +- .../ElasticsearchIndicesAsyncClient.java | 40 +- .../indices/ElasticsearchIndicesClient.java | 40 +- .../indices/ExistsAliasRequest.java | 77 +- .../elasticsearch/indices/ExistsRequest.java | 69 +- .../indices/FieldUsageStatsRequest.java | 30 +- .../elasticsearch/indices/FlushRequest.java | 89 +- .../indices/GetAliasRequest.java | 80 +- .../indices/GetDataLifecycleRequest.java | 39 +- .../indices/GetDataStreamRequest.java | 29 +- .../indices/GetFieldMappingRequest.java | 82 +- .../indices/GetIndicesSettingsRequest.java | 91 +- .../indices/GetMappingRequest.java | 78 +- .../indices/GetTemplateRequest.java | 38 +- .../elasticsearch/indices/IndexSettings.java | 15 +- .../elasticsearch/indices/IndexState.java | 6 +- .../elasticsearch/indices/IndexTemplate.java | 78 +- .../indices/IndexTemplateSummary.java | 35 + .../indices/IndexingSlowlogSettings.java | 248 ++++ .../indices/IndexingSlowlogTresholds.java | 169 +++ .../indices/IndicesStatsRequest.java | 3 +- .../indices/MigrateToDataStreamRequest.java | 14 +- .../indices/ModifyDataStreamRequest.java | 3 +- .../elasticsearch/indices/OpenRequest.java | 103 +- .../indices/PutAliasRequest.java | 88 +- .../indices/PutDataLifecycleRequest.java | 66 +- .../indices/PutIndexTemplateRequest.java | 77 +- .../indices/PutIndicesSettingsRequest.java | 88 +- .../indices/PutMappingRequest.java | 76 +- .../indices/PutTemplateRequest.java | 16 +- .../indices/RecoveryRequest.java | 29 +- .../elasticsearch/indices/RefreshRequest.java | 65 +- .../ReloadSearchAnalyzersResponse.java | 120 +- .../indices/ResolveIndexRequest.java | 42 +- .../indices/RolloverRequest.java | 101 +- .../indices/SegmentsRequest.java | 68 +- .../indices/ShardStoresRequest.java | 4 +- .../elasticsearch/indices/ShrinkRequest.java | 57 +- .../indices/SimulateIndexTemplateRequest.java | 87 +- .../indices/SlowlogTresholds.java | 48 - .../elasticsearch/indices/SplitRequest.java | 58 +- .../indices/UnfreezeRequest.java | 79 +- .../indices/UpdateAliasesRequest.java | 28 +- .../indices/ValidateQueryRequest.java | 129 +- .../DataStreamsStatsItem.java | 96 +- .../IndexAndDataStreamAction.java | 50 +- .../IndexTemplateMapping.java | 35 + .../reload_search_analyzers/ReloadResult.java | 212 +++ .../indices/update_aliases/AddAction.java | 60 + .../indices/update_aliases/RemoveAction.java | 24 + .../update_aliases/RemoveIndexAction.java | 14 + .../ml/FillMaskInferenceOptions.java | 45 + .../clients/elasticsearch/ml/JobState.java | 22 + .../elasticsearch/ml/OpenJobResponse.java | 12 +- .../ml/PutTrainedModelRequest.java | 34 +- .../ml/StartDataFrameAnalyticsResponse.java | 8 +- .../ml/StartDatafeedResponse.java | 18 +- .../ml/TrainedModelDeploymentStats.java | 15 +- .../ml/UpgradeJobSnapshotResponse.java | 8 +- .../DeleteQueryRulesetRequest.java | 153 +++ .../DeleteQueryRulesetResponse.java | 97 ++ .../ElasticsearchQueryRulesetAsyncClient.java | 202 +++ .../ElasticsearchQueryRulesetClient.java | 208 +++ .../query_ruleset/GetQueryRulesetRequest.java | 153 +++ .../GetQueryRulesetResponse.java | 96 ++ .../query_ruleset/ListRequest.java | 175 +++ .../query_ruleset/ListResponse.java | 197 +++ .../query_ruleset/PutRequest.java | 208 +++ .../query_ruleset/PutResponse.java | 142 ++ .../query_ruleset/QueryRule.java | 249 ++++ .../query_ruleset/QueryRuleActions.java | 219 +++ .../query_ruleset/QueryRuleCriteria.java | 213 +++ .../query_ruleset/QueryRuleCriteriaType.java | 72 + .../query_ruleset/QueryRuleType.java | 54 + .../query_ruleset/QueryRuleset.java | 217 +++ .../list/QueryRulesetListItem.java | 178 +++ .../elasticsearch/security/ApiKey.java | 75 +- .../security/AuthenticateRequest.java | 6 +- .../security/ClearApiKeyCacheRequest.java | 15 +- .../security/CreateApiKeyRequest.java | 18 +- .../security/GetApiKeyRequest.java | 47 +- .../security/GrantApiKeyRequest.java | 67 +- .../elasticsearch/security/GrantType.java | 8 + .../security/InvalidateApiKeyRequest.java | 56 +- .../security/QueryApiKeysRequest.java | 57 +- .../security/QueryApiKeysResponse.java | 32 +- .../security/RoleDescriptor.java | 56 + .../security/RoleDescriptorRead.java | 70 +- .../security/UpdateApiKeyRequest.java | 19 +- .../security/UpdateApiKeyResponse.java | 10 +- .../security/grant_api_key/GrantApiKey.java | 36 + .../has_privileges/IndexPrivilegesCheck.java | 1 + .../PrivilegesCheck.java | 1 + .../synonyms/DeleteSynonymRequest.java | 153 +++ .../synonyms/DeleteSynonymResponse.java | 97 ++ .../synonyms/DeleteSynonymRuleRequest.java | 182 +++ .../synonyms/DeleteSynonymRuleResponse.java | 97 ++ .../ElasticsearchSynonymsAsyncClient.java | 303 +++++ .../synonyms/ElasticsearchSynonymsClient.java | 311 +++++ .../synonyms/GetSynonymRequest.java | 216 +++ .../synonyms/GetSynonymResponse.java | 199 +++ .../synonyms/GetSynonymRuleRequest.java | 182 +++ .../synonyms/GetSynonymRuleResponse.java | 97 ++ .../synonyms/GetSynonymsSetsRequest.java | 178 +++ .../synonyms/GetSynonymsSetsResponse.java | 201 +++ .../synonyms/PutSynonymRequest.java | 243 ++++ .../synonyms/PutSynonymResponse.java | 176 +++ .../synonyms/PutSynonymRuleRequest.java | 256 ++++ .../synonyms/PutSynonymRuleResponse.java | 97 ++ .../elasticsearch/synonyms/SynonymRule.java | 183 +++ .../synonyms/SynonymRuleRead.java | 188 +++ .../synonyms/SynonymsUpdateResult.java | 160 +++ .../get_synonyms_sets/SynonymsSetItem.java | 176 +++ 338 files changed, 19255 insertions(+), 4028 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicator.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java diff --git a/.gitignore b/.gitignore index 357194249..7b31c88c7 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,8 @@ html_docs # Local Makefile Makefile + +# Temp files and directories +temp/ +*Temp.java +*TempTest.java diff --git a/config/checkstyle/checkstyle_suppressions.xml b/config/checkstyle/checkstyle_suppressions.xml index cdb132652..772eb8cb5 100644 --- a/config/checkstyle/checkstyle_suppressions.xml +++ b/config/checkstyle/checkstyle_suppressions.xml @@ -28,4 +28,8 @@ + + + + diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 6395f6d86..c6ab54d82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -129,6 +129,7 @@ import co.elastic.clients.elasticsearch.ml.ElasticsearchMlAsyncClient; import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringAsyncClient; import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient; +import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient; import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient; import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient; import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient; @@ -138,6 +139,7 @@ import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotAsyncClient; import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient; import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslAsyncClient; +import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsAsyncClient; import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformAsyncClient; import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherAsyncClient; @@ -256,6 +258,10 @@ public ElasticsearchNodesAsyncClient nodes() { return new ElasticsearchNodesAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchQueryRulesetAsyncClient queryRuleset() { + return new ElasticsearchQueryRulesetAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchRollupAsyncClient rollup() { return new ElasticsearchRollupAsyncClient(this.transport, this.transportOptions); } @@ -292,6 +298,10 @@ public ElasticsearchSslAsyncClient ssl() { return new ElasticsearchSslAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchSynonymsAsyncClient synonyms() { + return new ElasticsearchSynonymsAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchTasksAsyncClient tasks() { return new ElasticsearchTasksAsyncClient(this.transport, this.transportOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index dff7be55a..3c43201b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -130,6 +130,7 @@ import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient; import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringClient; import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesClient; +import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient; import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupClient; import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient; import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient; @@ -139,6 +140,7 @@ import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotClient; import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient; import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslClient; +import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsClient; import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformClient; import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherClient; @@ -257,6 +259,10 @@ public ElasticsearchNodesClient nodes() { return new ElasticsearchNodesClient(this.transport, this.transportOptions); } + public ElasticsearchQueryRulesetClient queryRuleset() { + return new ElasticsearchQueryRulesetClient(this.transport, this.transportOptions); + } + public ElasticsearchRollupClient rollup() { return new ElasticsearchRollupClient(this.transport, this.transportOptions); } @@ -293,6 +299,10 @@ public ElasticsearchSslClient ssl() { return new ElasticsearchSslClient(this.transport, this.transportOptions); } + public ElasticsearchSynonymsClient synonyms() { + return new ElasticsearchSynonymsClient(this.transport, this.transportOptions); + } + public ElasticsearchTasksClient tasks() { return new ElasticsearchTasksClient(this.transport, this.transportOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java index c601ee277..ea29c548c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java @@ -72,13 +72,19 @@ public static CompletionStats of(Function + * API name: {@code size_in_bytes} */ public final long sizeInBytes() { return this.sizeInBytes; } /** + * Total amount of memory used for completion across all shards assigned to + * selected nodes. + *

* API name: {@code size} */ @Nullable @@ -147,7 +153,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map fields; /** - * Required - API name: {@code size_in_bytes} + * Required - Total amount, in bytes, of memory used for completion across all + * shards assigned to selected nodes. + *

+ * API name: {@code size_in_bytes} */ public final Builder sizeInBytes(long value) { this.sizeInBytes = value; @@ -155,6 +164,9 @@ public final Builder sizeInBytes(long value) { } /** + * Total amount of memory used for completion across all shards assigned to + * selected nodes. + *

* API name: {@code size} */ public final Builder size(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java index a9c8f49fe..c043db567 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java @@ -67,13 +67,22 @@ public static DocStats of(Function> fn) { } /** - * Required - API name: {@code count} + * Required - Total number of non-deleted documents across all primary shards + * assigned to selected nodes. This number is based on documents in Lucene + * segments and may include documents from nested fields. + *

+ * API name: {@code count} */ public final long count() { return this.count; } /** + * Total number of deleted documents across all primary shards assigned to + * selected nodes. This number is based on documents in Lucene segments. + * Elasticsearch reclaims the disk space of deleted Lucene documents when a + * segment is merged. + *

* API name: {@code deleted} */ @Nullable @@ -121,7 +130,11 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long deleted; /** - * Required - API name: {@code count} + * Required - Total number of non-deleted documents across all primary shards + * assigned to selected nodes. This number is based on documents in Lucene + * segments and may include documents from nested fields. + *

+ * API name: {@code count} */ public final Builder count(long value) { this.count = value; @@ -129,6 +142,11 @@ public final Builder count(long value) { } /** + * Total number of deleted documents across all primary shards assigned to + * selected nodes. This number is based on documents in Lucene segments. + * Elasticsearch reclaims the disk space of deleted Lucene documents when a + * segment is merged. + *

* API name: {@code deleted} */ public final Builder deleted(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java index cd628ef4f..c779ac81b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java @@ -34,12 +34,28 @@ */ @JsonpDeserializable public enum GeoShapeRelation implements JsonEnum { + /** + * Return all documents whose geo_shape or geo_point + * field intersects the query geometry. + */ Intersects("intersects"), + /** + * Return all documents whose geo_shape or geo_point + * field has nothing in common with the query geometry. + */ Disjoint("disjoint"), + /** + * Return all documents whose geo_shape or geo_point + * field is within the query geometry. Line geometries are not supported. + */ Within("within"), + /** + * Return all documents whose geo_shape or geo_point + * field contains the query geometry. + */ Contains("contains"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java index 3f323e200..a468589e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java @@ -69,6 +69,8 @@ public static InlineScript of(Function> fn) } /** + * Specifies the language the script is written in. + *

* API name: {@code lang} */ @Nullable @@ -84,7 +86,9 @@ public final Map options() { } /** - * Required - API name: {@code source} + * Required - The script source. + *

+ * API name: {@code source} */ public final String source() { return this.source; @@ -130,6 +134,8 @@ public static class Builder extends ScriptBase.AbstractBuilder implemen private String source; /** + * Specifies the language the script is written in. + *

* API name: {@code lang} */ public final Builder lang(@Nullable String value) { @@ -138,6 +144,8 @@ public final Builder lang(@Nullable String value) { } /** + * Specifies the language the script is written in. + *

* API name: {@code lang} */ public final Builder lang(@Nullable ScriptLanguage value) { @@ -166,7 +174,9 @@ public final Builder options(String key, String value) { } /** - * Required - API name: {@code source} + * Required - The script source. + *

+ * API name: {@code source} */ public final Builder source(String value) { this.source = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java index 756988116..d7bcb2357 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java @@ -87,34 +87,49 @@ public static QueryCacheStats of(Function + * API name: {@code cache_count} */ public final int cacheCount() { return this.cacheCount; } /** - * Required - API name: {@code cache_size} + * Required - Total number of entries currently in the query cache across all + * shards assigned to selected nodes. + *

+ * API name: {@code cache_size} */ public final int cacheSize() { return this.cacheSize; } /** - * Required - API name: {@code evictions} + * Required - Total number of query cache evictions across all shards assigned + * to selected nodes. + *

+ * API name: {@code evictions} */ public final int evictions() { return this.evictions; } /** - * Required - API name: {@code hit_count} + * Required - Total count of query cache hits across all shards assigned to + * selected nodes. + *

+ * API name: {@code hit_count} */ public final int hitCount() { return this.hitCount; } /** + * Total amount of memory used for the query cache across all shards assigned to + * selected nodes. + *

* API name: {@code memory_size} */ @Nullable @@ -123,21 +138,30 @@ public final String memorySize() { } /** - * Required - API name: {@code memory_size_in_bytes} + * Required - Total amount, in bytes, of memory used for the query cache across + * all shards assigned to selected nodes. + *

+ * API name: {@code memory_size_in_bytes} */ public final long memorySizeInBytes() { return this.memorySizeInBytes; } /** - * Required - API name: {@code miss_count} + * Required - Total count of query cache misses across all shards assigned to + * selected nodes. + *

+ * API name: {@code miss_count} */ public final int missCount() { return this.missCount; } /** - * Required - API name: {@code total_count} + * Required - Total count of hits and misses in the query cache across all + * shards assigned to selected nodes. + *

+ * API name: {@code total_count} */ public final int totalCount() { return this.totalCount; @@ -212,7 +236,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer totalCount; /** - * Required - API name: {@code cache_count} + * Required - Total number of entries added to the query cache across all shards + * assigned to selected nodes. This number includes current and evicted entries. + *

+ * API name: {@code cache_count} */ public final Builder cacheCount(int value) { this.cacheCount = value; @@ -220,7 +247,10 @@ public final Builder cacheCount(int value) { } /** - * Required - API name: {@code cache_size} + * Required - Total number of entries currently in the query cache across all + * shards assigned to selected nodes. + *

+ * API name: {@code cache_size} */ public final Builder cacheSize(int value) { this.cacheSize = value; @@ -228,7 +258,10 @@ public final Builder cacheSize(int value) { } /** - * Required - API name: {@code evictions} + * Required - Total number of query cache evictions across all shards assigned + * to selected nodes. + *

+ * API name: {@code evictions} */ public final Builder evictions(int value) { this.evictions = value; @@ -236,7 +269,10 @@ public final Builder evictions(int value) { } /** - * Required - API name: {@code hit_count} + * Required - Total count of query cache hits across all shards assigned to + * selected nodes. + *

+ * API name: {@code hit_count} */ public final Builder hitCount(int value) { this.hitCount = value; @@ -244,6 +280,9 @@ public final Builder hitCount(int value) { } /** + * Total amount of memory used for the query cache across all shards assigned to + * selected nodes. + *

* API name: {@code memory_size} */ public final Builder memorySize(@Nullable String value) { @@ -252,7 +291,10 @@ public final Builder memorySize(@Nullable String value) { } /** - * Required - API name: {@code memory_size_in_bytes} + * Required - Total amount, in bytes, of memory used for the query cache across + * all shards assigned to selected nodes. + *

+ * API name: {@code memory_size_in_bytes} */ public final Builder memorySizeInBytes(long value) { this.memorySizeInBytes = value; @@ -260,7 +302,10 @@ public final Builder memorySizeInBytes(long value) { } /** - * Required - API name: {@code miss_count} + * Required - Total count of query cache misses across all shards assigned to + * selected nodes. + *

+ * API name: {@code miss_count} */ public final Builder missCount(int value) { this.missCount = value; @@ -268,7 +313,10 @@ public final Builder missCount(int value) { } /** - * Required - API name: {@code total_count} + * Required - Total count of hits and misses in the query cache across all + * shards assigned to selected nodes. + *

+ * API name: {@code total_count} */ public final Builder totalCount(int value) { this.totalCount = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java index fbdba7c21..ec217ce6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java @@ -60,6 +60,9 @@ protected ScriptBase(AbstractBuilder builder) { } /** + * Specifies any named parameters that are passed into the script as variables. + * Use parameters instead of hard-coded values to decrease compile time. + *

* API name: {@code params} */ public final Map params() { @@ -103,6 +106,9 @@ public abstract static class AbstractBuilder params; /** + * Specifies any named parameters that are passed into the script as variables. + * Use parameters instead of hard-coded values to decrease compile time. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -113,6 +119,9 @@ public final BuilderT params(Map map) { } /** + * Specifies any named parameters that are passed into the script as variables. + * Use parameters instead of hard-coded values to decrease compile time. + *

* API name: {@code params} *

* Adds an entry to params. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java index 530ff5197..a8252dafa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java @@ -34,12 +34,24 @@ */ @JsonpDeserializable public enum ScriptLanguage implements JsonEnum { + /** + * Painless scripting language, purpose-built for Elasticsearch. + */ Painless("painless"), + /** + * Lucene’s expressions language, compiles a JavaScript expression to bytecode. + */ Expression("expression"), + /** + * Mustache templated, used for templates. + */ Mustache("mustache"), + /** + * Expert Java API + */ Java("java"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java index 996f562ae..20be23811 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java @@ -155,13 +155,19 @@ public static SegmentsStats of(Function> f } /** - * Required - API name: {@code count} + * Required - Total number of segments across all shards assigned to selected + * nodes. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** + * Total amount of memory used for doc values across all shards assigned to + * selected nodes. + *

* API name: {@code doc_values_memory} */ @Nullable @@ -170,20 +176,30 @@ public final String docValuesMemory() { } /** - * Required - API name: {@code doc_values_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for doc values across all + * shards assigned to selected nodes. + *

+ * API name: {@code doc_values_memory_in_bytes} */ public final long docValuesMemoryInBytes() { return this.docValuesMemoryInBytes; } /** - * Required - API name: {@code file_sizes} + * Required - This object is not populated by the cluster stats API. To get + * information on segment files, use the node stats API. + *

+ * API name: {@code file_sizes} */ public final Map fileSizes() { return this.fileSizes; } /** + * Total amount of memory used by fixed bit sets across all shards assigned to + * selected nodes. Fixed bit sets are used for nested object field types and + * type filters for join fields. + *

* API name: {@code fixed_bit_set} */ @Nullable @@ -192,13 +208,19 @@ public final String fixedBitSet() { } /** - * Required - API name: {@code fixed_bit_set_memory_in_bytes} + * Required - Total amount of memory, in bytes, used by fixed bit sets across + * all shards assigned to selected nodes. + *

+ * API name: {@code fixed_bit_set_memory_in_bytes} */ public final long fixedBitSetMemoryInBytes() { return this.fixedBitSetMemoryInBytes; } /** + * Total amount of memory used by all index writers across all shards assigned + * to selected nodes. + *

* API name: {@code index_writer_memory} */ @Nullable @@ -215,20 +237,29 @@ public final Long indexWriterMaxMemoryInBytes() { } /** - * Required - API name: {@code index_writer_memory_in_bytes} + * Required - Total amount, in bytes, of memory used by all index writers across + * all shards assigned to selected nodes. + *

+ * API name: {@code index_writer_memory_in_bytes} */ public final long indexWriterMemoryInBytes() { return this.indexWriterMemoryInBytes; } /** - * Required - API name: {@code max_unsafe_auto_id_timestamp} + * Required - Unix timestamp, in milliseconds, of the most recently retried + * indexing request. + *

+ * API name: {@code max_unsafe_auto_id_timestamp} */ public final long maxUnsafeAutoIdTimestamp() { return this.maxUnsafeAutoIdTimestamp; } /** + * Total amount of memory used for segments across all shards assigned to + * selected nodes. + *

* API name: {@code memory} */ @Nullable @@ -237,13 +268,19 @@ public final String memory() { } /** - * Required - API name: {@code memory_in_bytes} + * Required - Total amount, in bytes, of memory used for segments across all + * shards assigned to selected nodes. + *

+ * API name: {@code memory_in_bytes} */ public final long memoryInBytes() { return this.memoryInBytes; } /** + * Total amount of memory used for normalization factors across all shards + * assigned to selected nodes. + *

* API name: {@code norms_memory} */ @Nullable @@ -252,13 +289,19 @@ public final String normsMemory() { } /** - * Required - API name: {@code norms_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for normalization factors + * across all shards assigned to selected nodes. + *

+ * API name: {@code norms_memory_in_bytes} */ public final long normsMemoryInBytes() { return this.normsMemoryInBytes; } /** + * Total amount of memory used for points across all shards assigned to selected + * nodes. + *

* API name: {@code points_memory} */ @Nullable @@ -267,7 +310,10 @@ public final String pointsMemory() { } /** - * Required - API name: {@code points_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for points across all + * shards assigned to selected nodes. + *

+ * API name: {@code points_memory_in_bytes} */ public final long pointsMemoryInBytes() { return this.pointsMemoryInBytes; @@ -282,20 +328,29 @@ public final String storedMemory() { } /** - * Required - API name: {@code stored_fields_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for stored fields across + * all shards assigned to selected nodes. + *

+ * API name: {@code stored_fields_memory_in_bytes} */ public final long storedFieldsMemoryInBytes() { return this.storedFieldsMemoryInBytes; } /** - * Required - API name: {@code terms_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for terms across all shards + * assigned to selected nodes. + *

+ * API name: {@code terms_memory_in_bytes} */ public final long termsMemoryInBytes() { return this.termsMemoryInBytes; } /** + * Total amount of memory used for terms across all shards assigned to selected + * nodes. + *

* API name: {@code terms_memory} */ @Nullable @@ -304,6 +359,9 @@ public final String termsMemory() { } /** + * Total amount of memory used for term vectors across all shards assigned to + * selected nodes. + *

* API name: {@code term_vectory_memory} */ @Nullable @@ -312,13 +370,19 @@ public final String termVectoryMemory() { } /** - * Required - API name: {@code term_vectors_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for term vectors across all + * shards assigned to selected nodes. + *

+ * API name: {@code term_vectors_memory_in_bytes} */ public final long termVectorsMemoryInBytes() { return this.termVectorsMemoryInBytes; } /** + * Total amount of memory used by all version maps across all shards assigned to + * selected nodes. + *

* API name: {@code version_map_memory} */ @Nullable @@ -327,7 +391,10 @@ public final String versionMapMemory() { } /** - * Required - API name: {@code version_map_memory_in_bytes} + * Required - Total amount, in bytes, of memory used by all version maps across + * all shards assigned to selected nodes. + *

+ * API name: {@code version_map_memory_in_bytes} */ public final long versionMapMemoryInBytes() { return this.versionMapMemoryInBytes; @@ -520,7 +587,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long versionMapMemoryInBytes; /** - * Required - API name: {@code count} + * Required - Total number of segments across all shards assigned to selected + * nodes. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -528,6 +598,9 @@ public final Builder count(int value) { } /** + * Total amount of memory used for doc values across all shards assigned to + * selected nodes. + *

* API name: {@code doc_values_memory} */ public final Builder docValuesMemory(@Nullable String value) { @@ -536,7 +609,10 @@ public final Builder docValuesMemory(@Nullable String value) { } /** - * Required - API name: {@code doc_values_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for doc values across all + * shards assigned to selected nodes. + *

+ * API name: {@code doc_values_memory_in_bytes} */ public final Builder docValuesMemoryInBytes(long value) { this.docValuesMemoryInBytes = value; @@ -544,7 +620,10 @@ public final Builder docValuesMemoryInBytes(long value) { } /** - * Required - API name: {@code file_sizes} + * Required - This object is not populated by the cluster stats API. To get + * information on segment files, use the node stats API. + *

+ * API name: {@code file_sizes} *

* Adds all entries of map to fileSizes. */ @@ -554,7 +633,10 @@ public final Builder fileSizes(Map map) { } /** - * Required - API name: {@code file_sizes} + * Required - This object is not populated by the cluster stats API. To get + * information on segment files, use the node stats API. + *

+ * API name: {@code file_sizes} *

* Adds an entry to fileSizes. */ @@ -564,7 +646,10 @@ public final Builder fileSizes(String key, ShardFileSizeInfo value) { } /** - * Required - API name: {@code file_sizes} + * Required - This object is not populated by the cluster stats API. To get + * information on segment files, use the node stats API. + *

+ * API name: {@code file_sizes} *

* Adds an entry to fileSizes using a builder lambda. */ @@ -574,6 +659,10 @@ public final Builder fileSizes(String key, } /** + * Total amount of memory used by fixed bit sets across all shards assigned to + * selected nodes. Fixed bit sets are used for nested object field types and + * type filters for join fields. + *

* API name: {@code fixed_bit_set} */ public final Builder fixedBitSet(@Nullable String value) { @@ -582,7 +671,10 @@ public final Builder fixedBitSet(@Nullable String value) { } /** - * Required - API name: {@code fixed_bit_set_memory_in_bytes} + * Required - Total amount of memory, in bytes, used by fixed bit sets across + * all shards assigned to selected nodes. + *

+ * API name: {@code fixed_bit_set_memory_in_bytes} */ public final Builder fixedBitSetMemoryInBytes(long value) { this.fixedBitSetMemoryInBytes = value; @@ -590,6 +682,9 @@ public final Builder fixedBitSetMemoryInBytes(long value) { } /** + * Total amount of memory used by all index writers across all shards assigned + * to selected nodes. + *

* API name: {@code index_writer_memory} */ public final Builder indexWriterMemory(@Nullable String value) { @@ -606,7 +701,10 @@ public final Builder indexWriterMaxMemoryInBytes(@Nullable Long value) { } /** - * Required - API name: {@code index_writer_memory_in_bytes} + * Required - Total amount, in bytes, of memory used by all index writers across + * all shards assigned to selected nodes. + *

+ * API name: {@code index_writer_memory_in_bytes} */ public final Builder indexWriterMemoryInBytes(long value) { this.indexWriterMemoryInBytes = value; @@ -614,7 +712,10 @@ public final Builder indexWriterMemoryInBytes(long value) { } /** - * Required - API name: {@code max_unsafe_auto_id_timestamp} + * Required - Unix timestamp, in milliseconds, of the most recently retried + * indexing request. + *

+ * API name: {@code max_unsafe_auto_id_timestamp} */ public final Builder maxUnsafeAutoIdTimestamp(long value) { this.maxUnsafeAutoIdTimestamp = value; @@ -622,6 +723,9 @@ public final Builder maxUnsafeAutoIdTimestamp(long value) { } /** + * Total amount of memory used for segments across all shards assigned to + * selected nodes. + *

* API name: {@code memory} */ public final Builder memory(@Nullable String value) { @@ -630,7 +734,10 @@ public final Builder memory(@Nullable String value) { } /** - * Required - API name: {@code memory_in_bytes} + * Required - Total amount, in bytes, of memory used for segments across all + * shards assigned to selected nodes. + *

+ * API name: {@code memory_in_bytes} */ public final Builder memoryInBytes(long value) { this.memoryInBytes = value; @@ -638,6 +745,9 @@ public final Builder memoryInBytes(long value) { } /** + * Total amount of memory used for normalization factors across all shards + * assigned to selected nodes. + *

* API name: {@code norms_memory} */ public final Builder normsMemory(@Nullable String value) { @@ -646,7 +756,10 @@ public final Builder normsMemory(@Nullable String value) { } /** - * Required - API name: {@code norms_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for normalization factors + * across all shards assigned to selected nodes. + *

+ * API name: {@code norms_memory_in_bytes} */ public final Builder normsMemoryInBytes(long value) { this.normsMemoryInBytes = value; @@ -654,6 +767,9 @@ public final Builder normsMemoryInBytes(long value) { } /** + * Total amount of memory used for points across all shards assigned to selected + * nodes. + *

* API name: {@code points_memory} */ public final Builder pointsMemory(@Nullable String value) { @@ -662,7 +778,10 @@ public final Builder pointsMemory(@Nullable String value) { } /** - * Required - API name: {@code points_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for points across all + * shards assigned to selected nodes. + *

+ * API name: {@code points_memory_in_bytes} */ public final Builder pointsMemoryInBytes(long value) { this.pointsMemoryInBytes = value; @@ -678,7 +797,10 @@ public final Builder storedMemory(@Nullable String value) { } /** - * Required - API name: {@code stored_fields_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for stored fields across + * all shards assigned to selected nodes. + *

+ * API name: {@code stored_fields_memory_in_bytes} */ public final Builder storedFieldsMemoryInBytes(long value) { this.storedFieldsMemoryInBytes = value; @@ -686,7 +808,10 @@ public final Builder storedFieldsMemoryInBytes(long value) { } /** - * Required - API name: {@code terms_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for terms across all shards + * assigned to selected nodes. + *

+ * API name: {@code terms_memory_in_bytes} */ public final Builder termsMemoryInBytes(long value) { this.termsMemoryInBytes = value; @@ -694,6 +819,9 @@ public final Builder termsMemoryInBytes(long value) { } /** + * Total amount of memory used for terms across all shards assigned to selected + * nodes. + *

* API name: {@code terms_memory} */ public final Builder termsMemory(@Nullable String value) { @@ -702,6 +830,9 @@ public final Builder termsMemory(@Nullable String value) { } /** + * Total amount of memory used for term vectors across all shards assigned to + * selected nodes. + *

* API name: {@code term_vectory_memory} */ public final Builder termVectoryMemory(@Nullable String value) { @@ -710,7 +841,10 @@ public final Builder termVectoryMemory(@Nullable String value) { } /** - * Required - API name: {@code term_vectors_memory_in_bytes} + * Required - Total amount, in bytes, of memory used for term vectors across all + * shards assigned to selected nodes. + *

+ * API name: {@code term_vectors_memory_in_bytes} */ public final Builder termVectorsMemoryInBytes(long value) { this.termVectorsMemoryInBytes = value; @@ -718,6 +852,9 @@ public final Builder termVectorsMemoryInBytes(long value) { } /** + * Total amount of memory used by all version maps across all shards assigned to + * selected nodes. + *

* API name: {@code version_map_memory} */ public final Builder versionMapMemory(@Nullable String value) { @@ -726,7 +863,10 @@ public final Builder versionMapMemory(@Nullable String value) { } /** - * Required - API name: {@code version_map_memory_in_bytes} + * Required - Total amount, in bytes, of memory used by all version maps across + * all shards assigned to selected nodes. + *

+ * API name: {@code version_map_memory_in_bytes} */ public final Builder versionMapMemoryInBytes(long value) { this.versionMapMemoryInBytes = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java index 98c11496f..b88600b35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java @@ -34,8 +34,14 @@ */ @JsonpDeserializable public enum SortOrder implements JsonEnum { + /** + * Ascending (smallest to largest) + */ Asc("asc"), + /** + * Descending (largest to smallest) + */ Desc("desc"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java index d0d6765c9..305b4323e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java @@ -83,6 +83,8 @@ public static StoreStats of(Function> fn) { } /** + * Total size of all shards assigned to selected nodes. + *

* API name: {@code size} */ @Nullable @@ -91,13 +93,18 @@ public final String size() { } /** - * Required - API name: {@code size_in_bytes} + * Required - Total size, in bytes, of all shards assigned to selected nodes. + *

+ * API name: {@code size_in_bytes} */ public final long sizeInBytes() { return this.sizeInBytes; } /** + * A prediction of how much larger the shard stores will eventually grow due to + * ongoing peer recoveries, restoring snapshots, and similar activities. + *

* API name: {@code reserved} */ @Nullable @@ -106,13 +113,21 @@ public final String reserved() { } /** - * Required - API name: {@code reserved_in_bytes} + * Required - A prediction, in bytes, of how much larger the shard stores will + * eventually grow due to ongoing peer recoveries, restoring snapshots, and + * similar activities. + *

+ * API name: {@code reserved_in_bytes} */ public final long reservedInBytes() { return this.reservedInBytes; } /** + * Total data set size of all shards assigned to selected nodes. This includes + * the size of shards not stored fully on the nodes, such as the cache for + * partially mounted indices. + *

* API name: {@code total_data_set_size} */ @Nullable @@ -121,6 +136,10 @@ public final String totalDataSetSize() { } /** + * Total data set size, in bytes, of all shards assigned to selected nodes. This + * includes the size of shards not stored fully on the nodes, such as the cache + * for partially mounted indices. + *

* API name: {@code total_data_set_size_in_bytes} */ @Nullable @@ -197,6 +216,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalDataSetSizeInBytes; /** + * Total size of all shards assigned to selected nodes. + *

* API name: {@code size} */ public final Builder size(@Nullable String value) { @@ -205,7 +226,9 @@ public final Builder size(@Nullable String value) { } /** - * Required - API name: {@code size_in_bytes} + * Required - Total size, in bytes, of all shards assigned to selected nodes. + *

+ * API name: {@code size_in_bytes} */ public final Builder sizeInBytes(long value) { this.sizeInBytes = value; @@ -213,6 +236,9 @@ public final Builder sizeInBytes(long value) { } /** + * A prediction of how much larger the shard stores will eventually grow due to + * ongoing peer recoveries, restoring snapshots, and similar activities. + *

* API name: {@code reserved} */ public final Builder reserved(@Nullable String value) { @@ -221,7 +247,11 @@ public final Builder reserved(@Nullable String value) { } /** - * Required - API name: {@code reserved_in_bytes} + * Required - A prediction, in bytes, of how much larger the shard stores will + * eventually grow due to ongoing peer recoveries, restoring snapshots, and + * similar activities. + *

+ * API name: {@code reserved_in_bytes} */ public final Builder reservedInBytes(long value) { this.reservedInBytes = value; @@ -229,6 +259,10 @@ public final Builder reservedInBytes(long value) { } /** + * Total data set size of all shards assigned to selected nodes. This includes + * the size of shards not stored fully on the nodes, such as the cache for + * partially mounted indices. + *

* API name: {@code total_data_set_size} */ public final Builder totalDataSetSize(@Nullable String value) { @@ -237,6 +271,10 @@ public final Builder totalDataSetSize(@Nullable String value) { } /** + * Total data set size, in bytes, of all shards assigned to selected nodes. This + * includes the size of shards not stored fully on the nodes, such as the cache + * for partially mounted indices. + *

* API name: {@code total_data_set_size_in_bytes} */ public final Builder totalDataSetSizeInBytes(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java index a0410bd95..2d6c3d88b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java @@ -70,7 +70,9 @@ public static StoredScript of(Function> fn) } /** - * Required - API name: {@code lang} + * Required - Specifies the language the script is written in. + *

+ * API name: {@code lang} */ public final String lang() { return this.lang; @@ -84,7 +86,9 @@ public final Map options() { } /** - * Required - API name: {@code source} + * Required - The script source. + *

+ * API name: {@code source} */ public final String source() { return this.source; @@ -140,7 +144,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String source; /** - * Required - API name: {@code lang} + * Required - Specifies the language the script is written in. + *

+ * API name: {@code lang} */ public final Builder lang(String value) { this.lang = value; @@ -148,7 +154,9 @@ public final Builder lang(String value) { } /** - * Required - API name: {@code lang} + * Required - Specifies the language the script is written in. + *

+ * API name: {@code lang} */ public final Builder lang(ScriptLanguage value) { this.lang = value == null ? null : value.jsonValue(); @@ -176,7 +184,9 @@ public final Builder options(String key, String value) { } /** - * Required - API name: {@code source} + * Required - The script source. + *

+ * API name: {@code source} */ public final Builder source(String value) { this.source = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java index bbf03ceb7..7332d826e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java @@ -61,7 +61,9 @@ public static StoredScriptId of(Function> } /** - * Required - API name: {@code id} + * Required - The id for a stored script. + *

+ * API name: {@code id} */ public final String id() { return this.id; @@ -85,7 +87,9 @@ public static class Builder extends ScriptBase.AbstractBuilder implemen private String id; /** - * Required - API name: {@code id} + * Required - The id for a stored script. + *

+ * API name: {@code id} */ public final Builder id(String value) { this.id = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java index ddfae3695..3eaa567a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java @@ -72,6 +72,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * Filters used to create buckets. At least one filter is required. + *

* API name: {@code filters} */ public final Map filters() { @@ -108,6 +110,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder filters; /** + * Filters used to create buckets. At least one filter is required. + *

* API name: {@code filters} *

* Adds all entries of map to filters. @@ -118,6 +122,8 @@ public final Builder filters(Map map) { } /** + * Filters used to create buckets. At least one filter is required. + *

* API name: {@code filters} *

* Adds an entry to filters. @@ -128,6 +134,8 @@ public final Builder filters(String key, Query value) { } /** + * Filters used to create buckets. At least one filter is required. + *

* API name: {@code filters} *

* Adds an entry to filters using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java index b28c23b93..a7acfd64f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java @@ -107,6 +107,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The target number of buckets. + *

* API name: {@code buckets} */ @Nullable @@ -115,6 +117,8 @@ public final Integer buckets() { } /** + * The field on which to run the aggregation. + *

* API name: {@code field} */ @Nullable @@ -123,6 +127,10 @@ public final String field() { } /** + * The date format used to format key_as_string in the response. If + * no format is specified, the first date format specified in the + * field mapping is used. + *

* API name: {@code format} */ @Nullable @@ -131,6 +139,10 @@ public final String format() { } /** + * The minimum rounding interval. This can make the collection process more + * efficient, as the aggregation will not attempt to round at any interval lower + * than minimum_interval. + *

* API name: {@code minimum_interval} */ @Nullable @@ -139,6 +151,9 @@ public final MinimumInterval minimumInterval() { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ @Nullable @@ -147,6 +162,8 @@ public final DateTime missing() { } /** + * Time zone specified as a ISO 8601 UTC offset. + *

* API name: {@code offset} */ @Nullable @@ -170,6 +187,8 @@ public final Script script() { } /** + * Time zone ID. + *

* API name: {@code time_zone} */ @Nullable @@ -269,6 +288,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code buckets} */ public final Builder buckets(@Nullable Integer value) { @@ -277,6 +298,8 @@ public final Builder buckets(@Nullable Integer value) { } /** + * The field on which to run the aggregation. + *

* API name: {@code field} */ public final Builder field(@Nullable String value) { @@ -285,6 +308,10 @@ public final Builder field(@Nullable String value) { } /** + * The date format used to format key_as_string in the response. If + * no format is specified, the first date format specified in the + * field mapping is used. + *

* API name: {@code format} */ public final Builder format(@Nullable String value) { @@ -293,6 +320,10 @@ public final Builder format(@Nullable String value) { } /** + * The minimum rounding interval. This can make the collection process more + * efficient, as the aggregation will not attempt to round at any interval lower + * than minimum_interval. + *

* API name: {@code minimum_interval} */ public final Builder minimumInterval(@Nullable MinimumInterval value) { @@ -301,6 +332,9 @@ public final Builder minimumInterval(@Nullable MinimumInterval value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(@Nullable DateTime value) { @@ -309,6 +343,8 @@ public final Builder missing(@Nullable DateTime value) { } /** + * Time zone specified as a ISO 8601 UTC offset. + *

* API name: {@code offset} */ public final Builder offset(@Nullable String value) { @@ -352,6 +388,8 @@ public final Builder script(Function> fn) } /** + * Time zone ID. + *

* API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java index 929a910e9..ce9cd542f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java @@ -70,6 +70,10 @@ public Aggregation.Kind _aggregationKind() { } /** + * Controls memory usage and approximation error by limiting the maximum number + * of nodes used by the underlying TDigest algorithm to + * 20 * compression. + *

* API name: {@code compression} */ @Nullable @@ -101,6 +105,10 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder20 * compression. + *

* API name: {@code compression} */ public final Builder compression(@Nullable Double value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java index 9e8b1ba84..1781f11a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java @@ -70,6 +70,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The script to run for this aggregation. + *

* API name: {@code script} */ @Nullable @@ -101,6 +103,8 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder * API name: {@code script} */ public final Builder script(@Nullable Script value) { @@ -109,6 +113,8 @@ public final Builder script(@Nullable Script value) { } /** + * The script to run for this aggregation. + *

* API name: {@code script} */ public final Builder script(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java index 411acb2ab..642f07424 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java @@ -70,6 +70,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The script to run for this aggregation. + *

* API name: {@code script} */ @Nullable @@ -101,6 +103,8 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder * API name: {@code script} */ public final Builder script(@Nullable Script value) { @@ -109,6 +113,8 @@ public final Builder script(@Nullable Script value) { } /** + * The script to run for this aggregation. + *

* API name: {@code script} */ public final Builder script(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java index 81b0ca503..b24043943 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java @@ -84,6 +84,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * Buckets in positions prior to from will be truncated. + *

* API name: {@code from} */ @Nullable @@ -92,6 +94,8 @@ public final Integer from() { } /** + * The policy to apply when gaps are found in the data. + *

* API name: {@code gap_policy} */ @Nullable @@ -100,6 +104,9 @@ public final GapPolicy gapPolicy() { } /** + * The number of buckets to return. Defaults to all buckets of the parent + * aggregation. + *

* API name: {@code size} */ @Nullable @@ -108,6 +115,8 @@ public final Integer size() { } /** + * The list of fields to sort on. + *

* API name: {@code sort} */ public final List sort() { @@ -166,6 +175,8 @@ public static class Builder extends AggregationBase.AbstractBuilder private List sort; /** + * Buckets in positions prior to from will be truncated. + *

* API name: {@code from} */ public final Builder from(@Nullable Integer value) { @@ -174,6 +185,8 @@ public final Builder from(@Nullable Integer value) { } /** + * The policy to apply when gaps are found in the data. + *

* API name: {@code gap_policy} */ public final Builder gapPolicy(@Nullable GapPolicy value) { @@ -182,6 +195,9 @@ public final Builder gapPolicy(@Nullable GapPolicy value) { } /** + * The number of buckets to return. Defaults to all buckets of the parent + * aggregation. + *

* API name: {@code size} */ public final Builder size(@Nullable Integer value) { @@ -190,6 +206,8 @@ public final Builder size(@Nullable Integer value) { } /** + * The list of fields to sort on. + *

* API name: {@code sort} *

* Adds all elements of list to sort. @@ -200,6 +218,8 @@ public final Builder sort(List list) { } /** + * The list of fields to sort on. + *

* API name: {@code sort} *

* Adds one or more values to sort. @@ -210,6 +230,8 @@ public final Builder sort(SortOptions value, SortOptions... values) { } /** + * The list of fields to sort on. + *

* API name: {@code sort} *

* Adds a value to sort using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java index 9b357045a..f99619781 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java @@ -79,6 +79,9 @@ public Aggregation.Kind _aggregationKind() { } /** + * A unique count below which counts are expected to be close to accurate. This + * allows to trade memory for accuracy. + *

* API name: {@code precision_threshold} */ @Nullable @@ -95,6 +98,8 @@ public final Boolean rehash() { } /** + * Mechanism by which cardinality aggregations is run. + *

* API name: {@code execution_hint} */ @Nullable @@ -141,6 +146,9 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder * API name: {@code precision_threshold} */ public final Builder precisionThreshold(@Nullable Integer value) { @@ -157,6 +165,8 @@ public final Builder rehash(@Nullable Boolean value) { } /** + * Mechanism by which cardinality aggregations is run. + *

* API name: {@code execution_hint} */ public final Builder executionHint(@Nullable CardinalityExecutionMode value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java index a718fbac4..ecbbd8d52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java @@ -35,14 +35,31 @@ */ @JsonpDeserializable public enum CardinalityExecutionMode implements JsonEnum { + /** + * Run aggregation by using global ordinals of the field and resolving those + * values after finishing a shard. + */ GlobalOrdinals("global_ordinals"), + /** + * Run aggregation by using segment ordinal values and resolving those values + * after each segment. + */ SegmentOrdinals("segment_ordinals"), + /** + * Run aggregation by using field values directly. + */ Direct("direct"), + /** + * Heuristic-based mode, default in Elasticsearch 8.3 and earlier. + */ SaveMemoryHeuristic("save_memory_heuristic"), + /** + * Heuristic-based mode, default in Elasticsearch 8.4 and later. + */ SaveTimeHeuristic("save_time_heuristic"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java index a8540246f..bdbeb3b20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java @@ -70,6 +70,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The child type that should be selected. + *

* API name: {@code type} */ @Nullable @@ -101,6 +103,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code type} */ public final Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index 3f1841703..7643281a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -81,6 +81,9 @@ public Aggregation.Kind _aggregationKind() { } /** + * When paginating, use the after_key value returned in the + * previous response to retrieve the next page. + *

* API name: {@code after} */ public final Map after() { @@ -88,6 +91,8 @@ public final Map after() { } /** + * The number of composite buckets that should be returned. + *

* API name: {@code size} */ @Nullable @@ -96,6 +101,9 @@ public final Integer size() { } /** + * The value sources used to build composite buckets. Keys are returned in the + * order of the sources definition. + *

* API name: {@code sources} */ public final List> sources() { @@ -161,6 +169,9 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder> sources; /** + * When paginating, use the after_key value returned in the + * previous response to retrieve the next page. + *

* API name: {@code after} *

* Adds all entries of map to after. @@ -171,6 +182,9 @@ public final Builder after(Map map) { } /** + * When paginating, use the after_key value returned in the + * previous response to retrieve the next page. + *

* API name: {@code after} *

* Adds an entry to after. @@ -181,6 +195,9 @@ public final Builder after(String key, FieldValue value) { } /** + * When paginating, use the after_key value returned in the + * previous response to retrieve the next page. + *

* API name: {@code after} *

* Adds an entry to after using a builder lambda. @@ -190,6 +207,8 @@ public final Builder after(String key, Function * API name: {@code size} */ public final Builder size(@Nullable Integer value) { @@ -198,6 +217,9 @@ public final Builder size(@Nullable Integer value) { } /** + * The value sources used to build composite buckets. Keys are returned in the + * order of the sources definition. + *

* API name: {@code sources} *

* Adds all elements of list to sources. @@ -208,6 +230,9 @@ public final Builder sources(List> list) } /** + * The value sources used to build composite buckets. Keys are returned in the + * order of the sources definition. + *

* API name: {@code sources} *

* Adds one or more values to sources. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java new file mode 100644 index 000000000..f18ac814d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java @@ -0,0 +1,282 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.elasticsearch._types.Script; +import co.elastic.clients.elasticsearch._types.SortOrder; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.CompositeAggregationBase + +/** + * + * @see API + * specification + */ + +public abstract class CompositeAggregationBase implements JsonpSerializable { + @Nullable + private final String field; + + @Nullable + private final Boolean missingBucket; + + @Nullable + private final MissingOrder missingOrder; + + @Nullable + private final Script script; + + @Nullable + private final ValueType valueType; + + @Nullable + private final SortOrder order; + + // --------------------------------------------------------------------------------------------- + + protected CompositeAggregationBase(AbstractBuilder builder) { + + this.field = builder.field; + this.missingBucket = builder.missingBucket; + this.missingOrder = builder.missingOrder; + this.script = builder.script; + this.valueType = builder.valueType; + this.order = builder.order; + + } + + /** + * Either field or script must be present + *

+ * API name: {@code field} + */ + @Nullable + public final String field() { + return this.field; + } + + /** + * API name: {@code missing_bucket} + */ + @Nullable + public final Boolean missingBucket() { + return this.missingBucket; + } + + /** + * API name: {@code missing_order} + */ + @Nullable + public final MissingOrder missingOrder() { + return this.missingOrder; + } + + /** + * Either field or script must be present + *

+ * API name: {@code script} + */ + @Nullable + public final Script script() { + return this.script; + } + + /** + * API name: {@code value_type} + */ + @Nullable + public final ValueType valueType() { + return this.valueType; + } + + /** + * API name: {@code order} + */ + @Nullable + public final SortOrder order() { + return this.order; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.field != null) { + generator.writeKey("field"); + generator.write(this.field); + + } + if (this.missingBucket != null) { + generator.writeKey("missing_bucket"); + generator.write(this.missingBucket); + + } + if (this.missingOrder != null) { + generator.writeKey("missing_order"); + this.missingOrder.serialize(generator, mapper); + } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } + if (this.valueType != null) { + generator.writeKey("value_type"); + this.valueType.serialize(generator, mapper); + } + if (this.order != null) { + generator.writeKey("order"); + this.order.serialize(generator, mapper); + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + @Nullable + private String field; + + @Nullable + private Boolean missingBucket; + + @Nullable + private MissingOrder missingOrder; + + @Nullable + private Script script; + + @Nullable + private ValueType valueType; + + @Nullable + private SortOrder order; + + /** + * Either field or script must be present + *

+ * API name: {@code field} + */ + public final BuilderT field(@Nullable String value) { + this.field = value; + return self(); + } + + /** + * API name: {@code missing_bucket} + */ + public final BuilderT missingBucket(@Nullable Boolean value) { + this.missingBucket = value; + return self(); + } + + /** + * API name: {@code missing_order} + */ + public final BuilderT missingOrder(@Nullable MissingOrder value) { + this.missingOrder = value; + return self(); + } + + /** + * Either field or script must be present + *

+ * API name: {@code script} + */ + public final BuilderT script(@Nullable Script value) { + this.script = value; + return self(); + } + + /** + * Either field or script must be present + *

+ * API name: {@code script} + */ + public final BuilderT script(Function> fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + + /** + * API name: {@code value_type} + */ + public final BuilderT valueType(@Nullable ValueType value) { + this.valueType = value; + return self(); + } + + /** + * API name: {@code order} + */ + public final BuilderT order(@Nullable SortOrder value) { + this.order = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupCompositeAggregationBaseDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(AbstractBuilder::missingBucket, JsonpDeserializer.booleanDeserializer(), "missing_bucket"); + op.add(AbstractBuilder::missingOrder, MissingOrder._DESERIALIZER, "missing_order"); + op.add(AbstractBuilder::script, Script._DESERIALIZER, "script"); + op.add(AbstractBuilder::valueType, ValueType._DESERIALIZER, "value_type"); + op.add(AbstractBuilder::order, SortOrder._DESERIALIZER, "order"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java index 3c01b9fe4..6916d1718 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java @@ -48,16 +48,16 @@ @JsonpDeserializable public class CompositeAggregationSource implements JsonpSerializable { @Nullable - private final TermsAggregation terms; + private final CompositeTermsAggregation terms; @Nullable - private final HistogramAggregation histogram; + private final CompositeHistogramAggregation histogram; @Nullable - private final DateHistogramAggregation dateHistogram; + private final CompositeDateHistogramAggregation dateHistogram; @Nullable - private final GeoTileGridAggregation geotileGrid; + private final CompositeGeoTileGridAggregation geotileGrid; // --------------------------------------------------------------------------------------------- @@ -75,34 +75,42 @@ public static CompositeAggregationSource of(Function * API name: {@code terms} */ @Nullable - public final TermsAggregation terms() { + public final CompositeTermsAggregation terms() { return this.terms; } /** + * A histogram aggregation. + *

* API name: {@code histogram} */ @Nullable - public final HistogramAggregation histogram() { + public final CompositeHistogramAggregation histogram() { return this.histogram; } /** + * A date histogram aggregation. + *

* API name: {@code date_histogram} */ @Nullable - public final DateHistogramAggregation dateHistogram() { + public final CompositeDateHistogramAggregation dateHistogram() { return this.dateHistogram; } /** + * A geotile grid aggregation. + *

* API name: {@code geotile_grid} */ @Nullable - public final GeoTileGridAggregation geotileGrid() { + public final CompositeGeoTileGridAggregation geotileGrid() { return this.geotileGrid; } @@ -155,77 +163,95 @@ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { @Nullable - private TermsAggregation terms; + private CompositeTermsAggregation terms; @Nullable - private HistogramAggregation histogram; + private CompositeHistogramAggregation histogram; @Nullable - private DateHistogramAggregation dateHistogram; + private CompositeDateHistogramAggregation dateHistogram; @Nullable - private GeoTileGridAggregation geotileGrid; + private CompositeGeoTileGridAggregation geotileGrid; /** + * A terms aggregation. + *

* API name: {@code terms} */ - public final Builder terms(@Nullable TermsAggregation value) { + public final Builder terms(@Nullable CompositeTermsAggregation value) { this.terms = value; return this; } /** + * A terms aggregation. + *

* API name: {@code terms} */ - public final Builder terms(Function> fn) { - return this.terms(fn.apply(new TermsAggregation.Builder()).build()); + public final Builder terms( + Function> fn) { + return this.terms(fn.apply(new CompositeTermsAggregation.Builder()).build()); } /** + * A histogram aggregation. + *

* API name: {@code histogram} */ - public final Builder histogram(@Nullable HistogramAggregation value) { + public final Builder histogram(@Nullable CompositeHistogramAggregation value) { this.histogram = value; return this; } /** + * A histogram aggregation. + *

* API name: {@code histogram} */ - public final Builder histogram(Function> fn) { - return this.histogram(fn.apply(new HistogramAggregation.Builder()).build()); + public final Builder histogram( + Function> fn) { + return this.histogram(fn.apply(new CompositeHistogramAggregation.Builder()).build()); } /** + * A date histogram aggregation. + *

* API name: {@code date_histogram} */ - public final Builder dateHistogram(@Nullable DateHistogramAggregation value) { + public final Builder dateHistogram(@Nullable CompositeDateHistogramAggregation value) { this.dateHistogram = value; return this; } /** + * A date histogram aggregation. + *

* API name: {@code date_histogram} */ public final Builder dateHistogram( - Function> fn) { - return this.dateHistogram(fn.apply(new DateHistogramAggregation.Builder()).build()); + Function> fn) { + return this.dateHistogram(fn.apply(new CompositeDateHistogramAggregation.Builder()).build()); } /** + * A geotile grid aggregation. + *

* API name: {@code geotile_grid} */ - public final Builder geotileGrid(@Nullable GeoTileGridAggregation value) { + public final Builder geotileGrid(@Nullable CompositeGeoTileGridAggregation value) { this.geotileGrid = value; return this; } /** + * A geotile grid aggregation. + *

* API name: {@code geotile_grid} */ public final Builder geotileGrid( - Function> fn) { - return this.geotileGrid(fn.apply(new GeoTileGridAggregation.Builder()).build()); + Function> fn) { + return this.geotileGrid(fn.apply(new CompositeGeoTileGridAggregation.Builder()).build()); } @Override @@ -257,10 +283,10 @@ public CompositeAggregationSource build() { protected static void setupCompositeAggregationSourceDeserializer( ObjectDeserializer op) { - op.add(Builder::terms, TermsAggregation._DESERIALIZER, "terms"); - op.add(Builder::histogram, HistogramAggregation._DESERIALIZER, "histogram"); - op.add(Builder::dateHistogram, DateHistogramAggregation._DESERIALIZER, "date_histogram"); - op.add(Builder::geotileGrid, GeoTileGridAggregation._DESERIALIZER, "geotile_grid"); + op.add(Builder::terms, CompositeTermsAggregation._DESERIALIZER, "terms"); + op.add(Builder::histogram, CompositeHistogramAggregation._DESERIALIZER, "histogram"); + op.add(Builder::dateHistogram, CompositeDateHistogramAggregation._DESERIALIZER, "date_histogram"); + op.add(Builder::geotileGrid, CompositeGeoTileGridAggregation._DESERIALIZER, "geotile_grid"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java new file mode 100644 index 000000000..9baf2bb00 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java @@ -0,0 +1,293 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.CompositeDateHistogramAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class CompositeDateHistogramAggregation extends CompositeAggregationBase { + @Nullable + private final String format; + + @Nullable + private final Time calendarInterval; + + @Nullable + private final Time fixedInterval; + + @Nullable + private final Time offset; + + @Nullable + private final String timeZone; + + // --------------------------------------------------------------------------------------------- + + private CompositeDateHistogramAggregation(Builder builder) { + super(builder); + + this.format = builder.format; + this.calendarInterval = builder.calendarInterval; + this.fixedInterval = builder.fixedInterval; + this.offset = builder.offset; + this.timeZone = builder.timeZone; + + } + + public static CompositeDateHistogramAggregation of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code format} + */ + @Nullable + public final String format() { + return this.format; + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code calendar_interval} + */ + @Nullable + public final Time calendarInterval() { + return this.calendarInterval; + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code fixed_interval} + */ + @Nullable + public final Time fixedInterval() { + return this.fixedInterval; + } + + /** + * API name: {@code offset} + */ + @Nullable + public final Time offset() { + return this.offset; + } + + /** + * API name: {@code time_zone} + */ + @Nullable + public final String timeZone() { + return this.timeZone; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.format != null) { + generator.writeKey("format"); + generator.write(this.format); + + } + if (this.calendarInterval != null) { + generator.writeKey("calendar_interval"); + this.calendarInterval.serialize(generator, mapper); + + } + if (this.fixedInterval != null) { + generator.writeKey("fixed_interval"); + this.fixedInterval.serialize(generator, mapper); + + } + if (this.offset != null) { + generator.writeKey("offset"); + this.offset.serialize(generator, mapper); + + } + if (this.timeZone != null) { + generator.writeKey("time_zone"); + generator.write(this.timeZone); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CompositeDateHistogramAggregation}. + */ + + public static class Builder extends CompositeAggregationBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String format; + + @Nullable + private Time calendarInterval; + + @Nullable + private Time fixedInterval; + + @Nullable + private Time offset; + + @Nullable + private String timeZone; + + /** + * API name: {@code format} + */ + public final Builder format(@Nullable String value) { + this.format = value; + return this; + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code calendar_interval} + */ + public final Builder calendarInterval(@Nullable Time value) { + this.calendarInterval = value; + return this; + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code calendar_interval} + */ + public final Builder calendarInterval(Function> fn) { + return this.calendarInterval(fn.apply(new Time.Builder()).build()); + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code fixed_interval} + */ + public final Builder fixedInterval(@Nullable Time value) { + this.fixedInterval = value; + return this; + } + + /** + * Either calendar_interval or fixed_interval must be + * present + *

+ * API name: {@code fixed_interval} + */ + public final Builder fixedInterval(Function> fn) { + return this.fixedInterval(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code offset} + */ + public final Builder offset(@Nullable Time value) { + this.offset = value; + return this; + } + + /** + * API name: {@code offset} + */ + public final Builder offset(Function> fn) { + return this.offset(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code time_zone} + */ + public final Builder timeZone(@Nullable String value) { + this.timeZone = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CompositeDateHistogramAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CompositeDateHistogramAggregation build() { + _checkSingleUse(); + + return new CompositeDateHistogramAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CompositeDateHistogramAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, CompositeDateHistogramAggregation::setupCompositeDateHistogramAggregationDeserializer); + + protected static void setupCompositeDateHistogramAggregationDeserializer( + ObjectDeserializer op) { + CompositeAggregationBase.setupCompositeAggregationBaseDeserializer(op); + op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format"); + op.add(Builder::calendarInterval, Time._DESERIALIZER, "calendar_interval"); + op.add(Builder::fixedInterval, Time._DESERIALIZER, "fixed_interval"); + op.add(Builder::offset, Time._DESERIALIZER, "offset"); + op.add(Builder::timeZone, JsonpDeserializer.stringDeserializer(), "time_zone"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java new file mode 100644 index 000000000..53ded69f6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java @@ -0,0 +1,174 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.elasticsearch._types.GeoBounds; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.CompositeGeoTileGridAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class CompositeGeoTileGridAggregation extends CompositeAggregationBase { + @Nullable + private final Integer precision; + + @Nullable + private final GeoBounds bounds; + + // --------------------------------------------------------------------------------------------- + + private CompositeGeoTileGridAggregation(Builder builder) { + super(builder); + + this.precision = builder.precision; + this.bounds = builder.bounds; + + } + + public static CompositeGeoTileGridAggregation of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code precision} + */ + @Nullable + public final Integer precision() { + return this.precision; + } + + /** + * API name: {@code bounds} + */ + @Nullable + public final GeoBounds bounds() { + return this.bounds; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.precision != null) { + generator.writeKey("precision"); + generator.write(this.precision); + + } + if (this.bounds != null) { + generator.writeKey("bounds"); + this.bounds.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CompositeGeoTileGridAggregation}. + */ + + public static class Builder extends CompositeAggregationBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Integer precision; + + @Nullable + private GeoBounds bounds; + + /** + * API name: {@code precision} + */ + public final Builder precision(@Nullable Integer value) { + this.precision = value; + return this; + } + + /** + * API name: {@code bounds} + */ + public final Builder bounds(@Nullable GeoBounds value) { + this.bounds = value; + return this; + } + + /** + * API name: {@code bounds} + */ + public final Builder bounds(Function> fn) { + return this.bounds(fn.apply(new GeoBounds.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CompositeGeoTileGridAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CompositeGeoTileGridAggregation build() { + _checkSingleUse(); + + return new CompositeGeoTileGridAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CompositeGeoTileGridAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, CompositeGeoTileGridAggregation::setupCompositeGeoTileGridAggregationDeserializer); + + protected static void setupCompositeGeoTileGridAggregationDeserializer( + ObjectDeserializer op) { + CompositeAggregationBase.setupCompositeAggregationBaseDeserializer(op); + op.add(Builder::precision, JsonpDeserializer.integerDeserializer(), "precision"); + op.add(Builder::bounds, GeoBounds._DESERIALIZER, "bounds"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java new file mode 100644 index 000000000..8fb5ca271 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java @@ -0,0 +1,130 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Double; +import java.util.Objects; +import java.util.function.Function; + +// typedef: _types.aggregations.CompositeHistogramAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class CompositeHistogramAggregation extends CompositeAggregationBase { + private final double interval; + + // --------------------------------------------------------------------------------------------- + + private CompositeHistogramAggregation(Builder builder) { + super(builder); + + this.interval = ApiTypeHelper.requireNonNull(builder.interval, this, "interval"); + + } + + public static CompositeHistogramAggregation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code interval} + */ + public final double interval() { + return this.interval; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("interval"); + generator.write(this.interval); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CompositeHistogramAggregation}. + */ + + public static class Builder extends CompositeAggregationBase.AbstractBuilder + implements + ObjectBuilder { + private Double interval; + + /** + * Required - API name: {@code interval} + */ + public final Builder interval(double value) { + this.interval = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CompositeHistogramAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CompositeHistogramAggregation build() { + _checkSingleUse(); + + return new CompositeHistogramAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CompositeHistogramAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, CompositeHistogramAggregation::setupCompositeHistogramAggregationDeserializer); + + protected static void setupCompositeHistogramAggregationDeserializer( + ObjectDeserializer op) { + CompositeAggregationBase.setupCompositeAggregationBaseDeserializer(op); + op.add(Builder::interval, JsonpDeserializer.doubleDeserializer(), "interval"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java new file mode 100644 index 000000000..af5130627 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: _types.aggregations.CompositeTermsAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class CompositeTermsAggregation extends CompositeAggregationBase { + // --------------------------------------------------------------------------------------------- + + private CompositeTermsAggregation(Builder builder) { + super(builder); + + } + + public static CompositeTermsAggregation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CompositeTermsAggregation}. + */ + + public static class Builder extends CompositeAggregationBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CompositeTermsAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CompositeTermsAggregation build() { + _checkSingleUse(); + + return new CompositeTermsAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CompositeTermsAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, CompositeTermsAggregation::setupCompositeTermsAggregationDeserializer); + + protected static void setupCompositeTermsAggregationDeserializer( + ObjectDeserializer op) { + CompositeAggregationBase.setupCompositeAggregationBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java index 59363030c..010ace33e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java @@ -145,6 +145,9 @@ public PivotGroupBy.Kind _pivotGroupByKind() { } /** + * Calendar-aware interval. Can be specified using the unit name, such as + * month, or as a single unit quantity, such as 1M. + *

* API name: {@code calendar_interval} */ @Nullable @@ -153,6 +156,8 @@ public final CalendarInterval calendarInterval() { } /** + * Enables extending the bounds of the histogram beyond the data itself. + *

* API name: {@code extended_bounds} */ @Nullable @@ -161,6 +166,8 @@ public final ExtendedBounds extendedBounds() { } /** + * Limits the histogram to specified bounds. + *

* API name: {@code hard_bounds} */ @Nullable @@ -169,6 +176,8 @@ public final ExtendedBounds hardBounds() { } /** + * The date field whose values are use to build a histogram. + *

* API name: {@code field} */ @Nullable @@ -177,6 +186,9 @@ public final String field() { } /** + * Fixed intervals: a fixed number of SI units and never deviate, regardless of + * where they fall on the calendar. + *

* API name: {@code fixed_interval} */ @Nullable @@ -185,6 +197,10 @@ public final Time fixedInterval() { } /** + * The date format used to format key_as_string in the response. If + * no format is specified, the first date format specified in the + * field mapping is used. + *

* API name: {@code format} */ @Nullable @@ -205,6 +221,10 @@ public final Time interval() { } /** + * Only returns buckets that have min_doc_count number of + * documents. By default, all buckets between the first bucket that matches + * documents and the last one are returned. + *

* API name: {@code min_doc_count} */ @Nullable @@ -213,6 +233,9 @@ public final Integer minDocCount() { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ @Nullable @@ -221,6 +244,9 @@ public final DateTime missing() { } /** + * Changes the start value of each bucket by the specified positive + * (+) or negative offset (-) duration. + *

* API name: {@code offset} */ @Nullable @@ -229,6 +255,8 @@ public final Time offset() { } /** + * The order of the returned buckets. + *

* API name: {@code order} */ public final List> order() { @@ -251,6 +279,9 @@ public final Script script() { } /** + * Time zone used for bucketing and rounding. Defaults to Coordinated Universal + * Time (UTC). + *

* API name: {@code time_zone} */ @Nullable @@ -259,6 +290,9 @@ public final String timeZone() { } /** + * Set to true to associate a unique string key with each bucket + * and returns the ranges as a hash rather than an array. + *

* API name: {@code keyed} */ @Nullable @@ -414,6 +448,9 @@ public static class Builder extends BucketAggregationBase.AbstractBuildermonth, or as a single unit quantity, such as 1M. + *

* API name: {@code calendar_interval} */ public final Builder calendarInterval(@Nullable CalendarInterval value) { @@ -422,6 +459,8 @@ public final Builder calendarInterval(@Nullable CalendarInterval value) { } /** + * Enables extending the bounds of the histogram beyond the data itself. + *

* API name: {@code extended_bounds} */ public final Builder extendedBounds(@Nullable ExtendedBounds value) { @@ -430,6 +469,8 @@ public final Builder extendedBounds(@Nullable ExtendedBounds valu } /** + * Enables extending the bounds of the histogram beyond the data itself. + *

* API name: {@code extended_bounds} */ public final Builder extendedBounds( @@ -438,6 +479,8 @@ public final Builder extendedBounds( } /** + * Limits the histogram to specified bounds. + *

* API name: {@code hard_bounds} */ public final Builder hardBounds(@Nullable ExtendedBounds value) { @@ -446,6 +489,8 @@ public final Builder hardBounds(@Nullable ExtendedBounds value) { } /** + * Limits the histogram to specified bounds. + *

* API name: {@code hard_bounds} */ public final Builder hardBounds( @@ -454,6 +499,8 @@ public final Builder hardBounds( } /** + * The date field whose values are use to build a histogram. + *

* API name: {@code field} */ public final Builder field(@Nullable String value) { @@ -462,6 +509,9 @@ public final Builder field(@Nullable String value) { } /** + * Fixed intervals: a fixed number of SI units and never deviate, regardless of + * where they fall on the calendar. + *

* API name: {@code fixed_interval} */ public final Builder fixedInterval(@Nullable Time value) { @@ -470,6 +520,9 @@ public final Builder fixedInterval(@Nullable Time value) { } /** + * Fixed intervals: a fixed number of SI units and never deviate, regardless of + * where they fall on the calendar. + *

* API name: {@code fixed_interval} */ public final Builder fixedInterval(Function> fn) { @@ -477,6 +530,10 @@ public final Builder fixedInterval(Function> f } /** + * The date format used to format key_as_string in the response. If + * no format is specified, the first date format specified in the + * field mapping is used. + *

* API name: {@code format} */ public final Builder format(@Nullable String value) { @@ -508,6 +565,10 @@ public final Builder interval(Function> fn) { } /** + * Only returns buckets that have min_doc_count number of + * documents. By default, all buckets between the first bucket that matches + * documents and the last one are returned. + *

* API name: {@code min_doc_count} */ public final Builder minDocCount(@Nullable Integer value) { @@ -516,6 +577,9 @@ public final Builder minDocCount(@Nullable Integer value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(@Nullable DateTime value) { @@ -524,6 +588,9 @@ public final Builder missing(@Nullable DateTime value) { } /** + * Changes the start value of each bucket by the specified positive + * (+) or negative offset (-) duration. + *

* API name: {@code offset} */ public final Builder offset(@Nullable Time value) { @@ -532,6 +599,9 @@ public final Builder offset(@Nullable Time value) { } /** + * Changes the start value of each bucket by the specified positive + * (+) or negative offset (-) duration. + *

* API name: {@code offset} */ public final Builder offset(Function> fn) { @@ -539,6 +609,8 @@ public final Builder offset(Function> fn) { } /** + * The order of the returned buckets. + *

* API name: {@code order} *

* Adds all elements of list to order. @@ -549,6 +621,8 @@ public final Builder order(List> list) { } /** + * The order of the returned buckets. + *

* API name: {@code order} *

* Adds one or more values to order. @@ -594,6 +668,9 @@ public final Builder script(Function> fn) } /** + * Time zone used for bucketing and rounding. Defaults to Coordinated Universal + * Time (UTC). + *

* API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { @@ -602,6 +679,9 @@ public final Builder timeZone(@Nullable String value) { } /** + * Set to true to associate a unique string key with each bucket + * and returns the ranges as a hash rather than an array. + *

* API name: {@code keyed} */ public final Builder keyed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index ff70e9fcb..e0a47460a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -93,6 +93,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The date field whose values are use to build ranges. + *

* API name: {@code field} */ @Nullable @@ -101,6 +103,9 @@ public final String field() { } /** + * The date format used to format from and to in the + * response. + *

* API name: {@code format} */ @Nullable @@ -109,6 +114,9 @@ public final String format() { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ @Nullable @@ -117,6 +125,8 @@ public final FieldValue missing() { } /** + * Array of date ranges. + *

* API name: {@code ranges} */ public final List ranges() { @@ -124,6 +134,8 @@ public final List ranges() { } /** + * Time zone used to convert dates from another time zone to UTC. + *

* API name: {@code time_zone} */ @Nullable @@ -132,6 +144,9 @@ public final String timeZone() { } /** + * Set to true to associate a unique string key with each bucket + * and returns the ranges as a hash rather than an array. + *

* API name: {@code keyed} */ @Nullable @@ -208,6 +223,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code field} */ public final Builder field(@Nullable String value) { @@ -216,6 +233,9 @@ public final Builder field(@Nullable String value) { } /** + * The date format used to format from and to in the + * response. + *

* API name: {@code format} */ public final Builder format(@Nullable String value) { @@ -224,6 +244,9 @@ public final Builder format(@Nullable String value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(@Nullable FieldValue value) { @@ -232,6 +255,9 @@ public final Builder missing(@Nullable FieldValue value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(Function> fn) { @@ -239,6 +265,9 @@ public final Builder missing(Function * API name: {@code missing} */ public final Builder missing(String value) { @@ -247,6 +276,9 @@ public final Builder missing(String value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(long value) { @@ -255,6 +287,9 @@ public final Builder missing(long value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(double value) { @@ -263,6 +298,9 @@ public final Builder missing(double value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final Builder missing(boolean value) { @@ -271,6 +309,8 @@ public final Builder missing(boolean value) { } /** + * Array of date ranges. + *

* API name: {@code ranges} *

* Adds all elements of list to ranges. @@ -281,6 +321,8 @@ public final Builder ranges(List list) { } /** + * Array of date ranges. + *

* API name: {@code ranges} *

* Adds one or more values to ranges. @@ -291,6 +333,8 @@ public final Builder ranges(DateRangeExpression value, DateRangeExpression... va } /** + * Array of date ranges. + *

* API name: {@code ranges} *

* Adds a value to ranges using a builder lambda. @@ -300,6 +344,8 @@ public final Builder ranges(Function * API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { @@ -308,6 +354,9 @@ public final Builder timeZone(@Nullable String value) { } /** + * Set to true to associate a unique string key with each bucket + * and returns the ranges as a hash rather than an array. + *

* API name: {@code keyed} */ public final Builder keyed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java index f23927667..d962e5534 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java @@ -72,6 +72,8 @@ public static DateRangeExpression of(Function * API name: {@code from} */ @Nullable @@ -80,6 +82,8 @@ public final FieldDateMath from() { } /** + * Custom key to return the range with. + *

* API name: {@code key} */ @Nullable @@ -88,6 +92,8 @@ public final String key() { } /** + * End of the range. + *

* API name: {@code to} */ @Nullable @@ -148,6 +154,8 @@ public static class Builder extends WithJsonObjectBuilderBase private FieldDateMath to; /** + * Start of the range. + *

* API name: {@code from} */ public final Builder from(@Nullable FieldDateMath value) { @@ -156,6 +164,8 @@ public final Builder from(@Nullable FieldDateMath value) { } /** + * Start of the range. + *

* API name: {@code from} */ public final Builder from(Function> fn) { @@ -163,6 +173,8 @@ public final Builder from(Function * API name: {@code key} */ public final Builder key(@Nullable String value) { @@ -171,6 +183,8 @@ public final Builder key(@Nullable String value) { } /** + * End of the range. + *

* API name: {@code to} */ public final Builder to(@Nullable FieldDateMath value) { @@ -179,6 +193,8 @@ public final Builder to(@Nullable FieldDateMath value) { } /** + * End of the range. + *

* API name: {@code to} */ public final Builder to(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java index 1fbab64db..4ac3262dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java @@ -88,6 +88,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The type of value used for de-duplication. + *

* API name: {@code execution_hint} */ @Nullable @@ -96,6 +98,8 @@ public final SamplerAggregationExecutionHint executionHint() { } /** + * Limits how many documents are permitted per choice of de-duplicating value. + *

* API name: {@code max_docs_per_value} */ @Nullable @@ -112,6 +116,9 @@ public final Script script() { } /** + * Limits how many top-scoring documents are collected in the sample processed + * on each shard. + *

* API name: {@code shard_size} */ @Nullable @@ -120,6 +127,8 @@ public final Integer shardSize() { } /** + * The field used to provide values used for de-duplication. + *

* API name: {@code field} */ @Nullable @@ -182,6 +191,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code execution_hint} */ public final Builder executionHint(@Nullable SamplerAggregationExecutionHint value) { @@ -190,6 +201,8 @@ public final Builder executionHint(@Nullable SamplerAggregationExecutionHint val } /** + * Limits how many documents are permitted per choice of de-duplicating value. + *

* API name: {@code max_docs_per_value} */ public final Builder maxDocsPerValue(@Nullable Integer value) { @@ -213,6 +226,9 @@ public final Builder script(Function> fn) } /** + * Limits how many top-scoring documents are collected in the sample processed + * on each shard. + *

* API name: {@code shard_size} */ public final Builder shardSize(@Nullable Integer value) { @@ -221,6 +237,8 @@ public final Builder shardSize(@Nullable Integer value) { } /** + * The field used to provide values used for de-duplication. + *

* API name: {@code field} */ public final Builder field(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java index fa0195ea9..4bcdd0bea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java @@ -70,6 +70,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The number of standard deviations above/below the mean to display. + *

* API name: {@code sigma} */ @Nullable @@ -101,6 +103,8 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< private Double sigma; /** + * The number of standard deviations above/below the mean to display. + *

* API name: {@code sigma} */ public final Builder sigma(@Nullable Double value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java index 73d40ee73..3a6a15ec4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java @@ -71,6 +71,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * The number of standard deviations above/below the mean to display. + *

* API name: {@code sigma} */ @Nullable @@ -102,6 +104,8 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder * API name: {@code sigma} */ public final Builder sigma(@Nullable Double value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index c089788a1..cc55fda88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java @@ -84,6 +84,8 @@ public Aggregation.Kind _aggregationKind() { } /** + * Collection of queries from which to build buckets. + *

* API name: {@code filters} */ @Nullable @@ -92,6 +94,9 @@ public final Buckets filters() { } /** + * Set to true to add a bucket to the response which will contain + * all documents that do not match any of the given filters. + *

* API name: {@code other_bucket} */ @Nullable @@ -100,6 +105,8 @@ public final Boolean otherBucket() { } /** + * The key with which the other bucket is returned. + *

* API name: {@code other_bucket_key} */ @Nullable @@ -108,6 +115,9 @@ public final String otherBucketKey() { } /** + * By default, the named filters aggregation returns the buckets as an object. + * Set to false to return the buckets as an array of objects. + *

* API name: {@code keyed} */ @Nullable @@ -163,6 +173,8 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code filters} */ public final Builder filters(@Nullable Buckets value) { @@ -171,6 +183,8 @@ public final Builder filters(@Nullable Buckets value) { } /** + * Collection of queries from which to build buckets. + *

* API name: {@code filters} */ public final Builder filters(Function, ObjectBuilder>> fn) { @@ -178,6 +192,9 @@ public final Builder filters(Function, ObjectBuildertrue to add a bucket to the response which will contain + * all documents that do not match any of the given filters. + *

* API name: {@code other_bucket} */ public final Builder otherBucket(@Nullable Boolean value) { @@ -186,6 +203,8 @@ public final Builder otherBucket(@Nullable Boolean value) { } /** + * The key with which the other bucket is returned. + *

* API name: {@code other_bucket_key} */ public final Builder otherBucketKey(@Nullable String value) { @@ -194,6 +213,9 @@ public final Builder otherBucketKey(@Nullable String value) { } /** + * By default, the named filters aggregation returns the buckets as an object. + * Set to false to return the buckets as an array of objects. + *

* API name: {@code keyed} */ public final Builder keyed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java index b86bf89b9..3439f164f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java @@ -78,6 +78,9 @@ public final String field() { } /** + * Values to exclude. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code exclude} */ public final List exclude() { @@ -85,6 +88,9 @@ public final List exclude() { } /** + * Values to include. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code include} */ public final List include() { @@ -159,6 +165,9 @@ public final Builder field(String value) { } /** + * Values to exclude. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code exclude} *

* Adds all elements of list to exclude. @@ -169,6 +178,9 @@ public final Builder exclude(List list) { } /** + * Values to exclude. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code exclude} *

* Adds one or more values to exclude. @@ -179,6 +191,9 @@ public final Builder exclude(String value, String... values) { } /** + * Values to include. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code include} *

* Adds all elements of list to include. @@ -189,6 +204,9 @@ public final Builder include(List list) { } /** + * Values to include. Can be regular expression strings or arrays of strings of + * exact terms. + *

* API name: {@code include} *

* Adds one or more values to include. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java index c065a54b6..b6b31d78a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java @@ -70,6 +70,8 @@ protected MetricAggregationBase(AbstractBuilder builder) { } /** + * The field on which to run the aggregation. + *

* API name: {@code field} */ @Nullable @@ -78,6 +80,9 @@ public final String field() { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ @Nullable @@ -140,6 +145,8 @@ public abstract static class AbstractBuilder * API name: {@code field} */ public final BuilderT field(@Nullable String value) { @@ -148,6 +155,9 @@ public final BuilderT field(@Nullable String value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final BuilderT missing(@Nullable FieldValue value) { @@ -156,6 +166,9 @@ public final BuilderT missing(@Nullable FieldValue value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final BuilderT missing(Function> fn) { @@ -163,6 +176,9 @@ public final BuilderT missing(Function * API name: {@code missing} */ public final BuilderT missing(String value) { @@ -171,6 +187,9 @@ public final BuilderT missing(String value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final BuilderT missing(long value) { @@ -179,6 +198,9 @@ public final BuilderT missing(long value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final BuilderT missing(double value) { @@ -187,6 +209,9 @@ public final BuilderT missing(double value) { } /** + * The value to apply to documents that do not have a value. By default, + * documents without a value are ignored. + *

* API name: {@code missing} */ public final BuilderT missing(boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java index 176d2640a..263fbf84d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java @@ -62,6 +62,9 @@ protected PipelineAggregationBase(AbstractBuilder builder) { } /** + * DecimalFormat pattern for the output value. If specified, the formatted value + * is returned in the aggregation’s value_as_string property. + *

* API name: {@code format} */ @Nullable @@ -70,6 +73,8 @@ public final String format() { } /** + * Policy to apply when gaps are found in the data. + *

* API name: {@code gap_policy} */ @Nullable @@ -102,6 +107,9 @@ public abstract static class AbstractBuildervalue_as_string property. + *

* API name: {@code format} */ public final BuilderT format(@Nullable String value) { @@ -110,6 +118,8 @@ public final BuilderT format(@Nullable String value) { } /** + * Policy to apply when gaps are found in the data. + *

* API name: {@code gap_policy} */ public final BuilderT gapPolicy(@Nullable GapPolicy value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java index bfa1683c9..86937b045 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java @@ -35,10 +35,19 @@ */ @JsonpDeserializable public enum SamplerAggregationExecutionHint implements JsonEnum { + /** + * Hold field values directly. + */ Map("map"), + /** + * Hold ordinals of the field as determined by the Lucene index. + */ GlobalOrdinals("global_ordinals"), + /** + * Hold hashes of the field values - with potential for hash collisions. + */ BytesHash("bytes_hash"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java index ee8dfd5d3..fb2a8a1b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java @@ -97,6 +97,8 @@ public final List fetchFields() { } /** + * A custom format for date type runtime fields. + *

* API name: {@code format} */ @Nullable @@ -135,6 +137,8 @@ public final String targetIndex() { } /** + * Painless script executed at query time. + *

* API name: {@code script} */ @Nullable @@ -143,7 +147,12 @@ public final Script script() { } /** - * Required - API name: {@code type} + * Required - Field type, which can be: boolean, + * composite, date, double, + * geo_point, ip,keyword, + * long, or lookup. + *

+ * API name: {@code type} */ public final RuntimeFieldType type() { return this.type; @@ -269,6 +278,8 @@ public final Builder fetchFields( } /** + * A custom format for date type runtime fields. + *

* API name: {@code format} */ public final Builder format(@Nullable String value) { @@ -307,6 +318,8 @@ public final Builder targetIndex(@Nullable String value) { } /** + * Painless script executed at query time. + *

* API name: {@code script} */ public final Builder script(@Nullable Script value) { @@ -315,6 +328,8 @@ public final Builder script(@Nullable Script value) { } /** + * Painless script executed at query time. + *

* API name: {@code script} */ public final Builder script(Function> fn) { @@ -322,7 +337,12 @@ public final Builder script(Function> fn) } /** - * Required - API name: {@code type} + * Required - Field type, which can be: boolean, + * composite, date, double, + * geo_point, ip,keyword, + * long, or lookup. + *

+ * API name: {@code type} */ public final Builder type(RuntimeFieldType value) { this.type = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java index d14992e5c..c77240e99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java @@ -83,6 +83,9 @@ public Query.Kind _queryKind() { } /** + * The clause (query) must appear in matching documents. However, unlike + * must, the score of the query will be ignored. + *

* API name: {@code filter} */ public final List filter() { @@ -90,6 +93,9 @@ public final List filter() { } /** + * Specifies the number or percentage of should clauses returned + * documents must match. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -98,6 +104,9 @@ public final String minimumShouldMatch() { } /** + * The clause (query) must appear in matching documents and will contribute to + * the score. + *

* API name: {@code must} */ public final List must() { @@ -105,6 +114,9 @@ public final List must() { } /** + * The clause (query) must not appear in the matching documents. Because scoring + * is ignored, a score of 0 is returned for all documents. + *

* API name: {@code must_not} */ public final List mustNot() { @@ -112,6 +124,8 @@ public final List mustNot() { } /** + * The clause (query) should appear in the matching document. + *

* API name: {@code should} */ public final List should() { @@ -192,6 +206,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private List should; /** + * The clause (query) must appear in matching documents. However, unlike + * must, the score of the query will be ignored. + *

* API name: {@code filter} *

* Adds all elements of list to filter. @@ -202,6 +219,9 @@ public final Builder filter(List list) { } /** + * The clause (query) must appear in matching documents. However, unlike + * must, the score of the query will be ignored. + *

* API name: {@code filter} *

* Adds one or more values to filter. @@ -212,6 +232,9 @@ public final Builder filter(Query value, Query... values) { } /** + * The clause (query) must appear in matching documents. However, unlike + * must, the score of the query will be ignored. + *

* API name: {@code filter} *

* Adds a value to filter using a builder lambda. @@ -221,6 +244,9 @@ public final Builder filter(Function> fn) { } /** + * Specifies the number or percentage of should clauses returned + * documents must match. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -229,6 +255,9 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * The clause (query) must appear in matching documents and will contribute to + * the score. + *

* API name: {@code must} *

* Adds all elements of list to must. @@ -239,6 +268,9 @@ public final Builder must(List list) { } /** + * The clause (query) must appear in matching documents and will contribute to + * the score. + *

* API name: {@code must} *

* Adds one or more values to must. @@ -249,6 +281,9 @@ public final Builder must(Query value, Query... values) { } /** + * The clause (query) must appear in matching documents and will contribute to + * the score. + *

* API name: {@code must} *

* Adds a value to must using a builder lambda. @@ -258,6 +293,9 @@ public final Builder must(Function> fn) { } /** + * The clause (query) must not appear in the matching documents. Because scoring + * is ignored, a score of 0 is returned for all documents. + *

* API name: {@code must_not} *

* Adds all elements of list to mustNot. @@ -268,6 +306,9 @@ public final Builder mustNot(List list) { } /** + * The clause (query) must not appear in the matching documents. Because scoring + * is ignored, a score of 0 is returned for all documents. + *

* API name: {@code must_not} *

* Adds one or more values to mustNot. @@ -278,6 +319,9 @@ public final Builder mustNot(Query value, Query... values) { } /** + * The clause (query) must not appear in the matching documents. Because scoring + * is ignored, a score of 0 is returned for all documents. + *

* API name: {@code must_not} *

* Adds a value to mustNot using a builder lambda. @@ -287,6 +331,8 @@ public final Builder mustNot(Function> fn) { } /** + * The clause (query) should appear in the matching document. + *

* API name: {@code should} *

* Adds all elements of list to should. @@ -297,6 +343,8 @@ public final Builder should(List list) { } /** + * The clause (query) should appear in the matching document. + *

* API name: {@code should} *

* Adds one or more values to should. @@ -307,6 +355,8 @@ public final Builder should(Query value, Query... values) { } /** + * The clause (query) should appear in the matching document. + *

* API name: {@code should} *

* Adds a value to should using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java index 7c7c85c34..c7016c197 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java @@ -76,21 +76,28 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code negative_boost} + * Required - Floating point number between 0 and 1.0 used to decrease the + * relevance scores of documents matching the negative query. + *

+ * API name: {@code negative_boost} */ public final double negativeBoost() { return this.negativeBoost; } /** - * Required - API name: {@code negative} + * Required - Query used to decrease the relevance score of matching documents. + *

+ * API name: {@code negative} */ public final Query negative() { return this.negative; } /** - * Required - API name: {@code positive} + * Required - Any returned documents must match this query. + *

+ * API name: {@code positive} */ public final Query positive() { return this.positive; @@ -124,7 +131,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Query positive; /** - * Required - API name: {@code negative_boost} + * Required - Floating point number between 0 and 1.0 used to decrease the + * relevance scores of documents matching the negative query. + *

+ * API name: {@code negative_boost} */ public final Builder negativeBoost(double value) { this.negativeBoost = value; @@ -132,7 +142,9 @@ public final Builder negativeBoost(double value) { } /** - * Required - API name: {@code negative} + * Required - Query used to decrease the relevance score of matching documents. + *

+ * API name: {@code negative} */ public final Builder negative(Query value) { this.negative = value; @@ -140,14 +152,18 @@ public final Builder negative(Query value) { } /** - * Required - API name: {@code negative} + * Required - Query used to decrease the relevance score of matching documents. + *

+ * API name: {@code negative} */ public final Builder negative(Function> fn) { return this.negative(fn.apply(new Query.Builder()).build()); } /** - * Required - API name: {@code positive} + * Required - Any returned documents must match this query. + *

+ * API name: {@code positive} */ public final Builder positive(Query value) { this.positive = value; @@ -155,7 +171,9 @@ public final Builder positive(Query value) { } /** - * Required - API name: {@code positive} + * Required - Any returned documents must match this query. + *

+ * API name: {@code positive} */ public final Builder positive(Function> fn) { return this.positive(fn.apply(new Query.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java index 336c09857..6fe545632 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java @@ -91,20 +91,31 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code fields} + * Required - List of fields to search. Field wildcard patterns are allowed. + * Only text fields are supported, and they must all have the same + * search analyzer. + *

+ * API name: {@code fields} */ public final List fields() { return this.fields; } /** - * Required - API name: {@code query} + * Required - Text to search for in the provided fields. The + * combined_fields query analyzes the provided text before + * performing a search. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * If true, match phrase queries are automatically created for multi-term + * synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ @Nullable @@ -113,6 +124,8 @@ public final Boolean autoGenerateSynonymsPhraseQuery() { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ @Nullable @@ -121,6 +134,8 @@ public final CombinedFieldsOperator operator() { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -129,6 +144,9 @@ public final String minimumShouldMatch() { } /** + * Indicates whether no documents are returned if the analyzer removes all + * tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ @Nullable @@ -199,7 +217,11 @@ public static class Builder extends QueryBase.AbstractBuilder private CombinedFieldsZeroTerms zeroTermsQuery; /** - * Required - API name: {@code fields} + * Required - List of fields to search. Field wildcard patterns are allowed. + * Only text fields are supported, and they must all have the same + * search analyzer. + *

+ * API name: {@code fields} *

* Adds all elements of list to fields. */ @@ -209,7 +231,11 @@ public final Builder fields(List list) { } /** - * Required - API name: {@code fields} + * Required - List of fields to search. Field wildcard patterns are allowed. + * Only text fields are supported, and they must all have the same + * search analyzer. + *

+ * API name: {@code fields} *

* Adds one or more values to fields. */ @@ -219,7 +245,11 @@ public final Builder fields(String value, String... values) { } /** - * Required - API name: {@code query} + * Required - Text to search for in the provided fields. The + * combined_fields query analyzes the provided text before + * performing a search. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -227,6 +257,9 @@ public final Builder query(String value) { } /** + * If true, match phrase queries are automatically created for multi-term + * synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { @@ -235,6 +268,8 @@ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ public final Builder operator(@Nullable CombinedFieldsOperator value) { @@ -243,6 +278,8 @@ public final Builder operator(@Nullable CombinedFieldsOperator value) { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -251,6 +288,9 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * Indicates whether no documents are returned if the analyzer removes all + * tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ public final Builder zeroTermsQuery(@Nullable CombinedFieldsZeroTerms value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsZeroTerms.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsZeroTerms.java index 284a495e3..bd1ac6755 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsZeroTerms.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsZeroTerms.java @@ -35,8 +35,14 @@ */ @JsonpDeserializable public enum CombinedFieldsZeroTerms implements JsonEnum { + /** + * No documents are returned if the analyzer removes all tokens. + */ None("none"), + /** + * Returns all documents, similar to a match_all query. + */ All("all"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java index 02ec8a15d..e8840716c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java @@ -69,7 +69,12 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code filter} + * Required - Filter query you wish to run. Any returned documents must match + * this query. Filter queries do not calculate relevance scores. To speed up + * performance, Elasticsearch automatically caches frequently used filter + * queries. + *

+ * API name: {@code filter} */ public final Query filter() { return this.filter; @@ -95,7 +100,12 @@ public static class Builder extends QueryBase.AbstractBuilder private Query filter; /** - * Required - API name: {@code filter} + * Required - Filter query you wish to run. Any returned documents must match + * this query. Filter queries do not calculate relevance scores. To speed up + * performance, Elasticsearch automatically caches frequently used filter + * queries. + *

+ * API name: {@code filter} */ public final Builder filter(Query value) { this.filter = value; @@ -103,7 +113,12 @@ public final Builder filter(Query value) { } /** - * Required - API name: {@code filter} + * Required - Filter query you wish to run. Any returned documents must match + * this query. Filter queries do not calculate relevance scores. To speed up + * performance, Elasticsearch automatically caches frequently used filter + * queries. + *

+ * API name: {@code filter} */ public final Builder filter(Function> fn) { return this.filter(fn.apply(new Query.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayFunctionBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayFunctionBase.java index f742124b0..1964f8b39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayFunctionBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayFunctionBase.java @@ -58,6 +58,9 @@ protected DecayFunctionBase(AbstractBuilder builder) { } /** + * Determines how the distance is calculated when a field used for computing the + * decay contains multiple values. + *

* API name: {@code multi_value_mode} */ @Nullable @@ -95,6 +98,9 @@ public abstract static class AbstractBuilder * API name: {@code multi_value_mode} */ public final BuilderT multiValueMode(@Nullable MultiValueMode value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java index aa51af9de..8382138c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java @@ -77,6 +77,8 @@ public static DecayPlacement of(Function> } /** + * Defines how documents are scored at the distance given at scale. + *

* API name: {@code decay} */ @Nullable @@ -85,6 +87,9 @@ public final Double decay() { } /** + * If defined, the decay function will only compute the decay function for + * documents with a distance greater than the defined offset. + *

* API name: {@code offset} */ @Nullable @@ -93,6 +98,9 @@ public final JsonData offset() { } /** + * Defines the distance from origin + offset at which the computed score will + * equal decay parameter. + *

* API name: {@code scale} */ @Nullable @@ -101,6 +109,9 @@ public final JsonData scale() { } /** + * The point of origin used for calculating distance. Must be given as a number + * for numeric field, date for date fields and geo point for geo fields. + *

* API name: {@code origin} */ @Nullable @@ -167,6 +178,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private JsonData origin; /** + * Defines how documents are scored at the distance given at scale. + *

* API name: {@code decay} */ public final Builder decay(@Nullable Double value) { @@ -175,6 +188,9 @@ public final Builder decay(@Nullable Double value) { } /** + * If defined, the decay function will only compute the decay function for + * documents with a distance greater than the defined offset. + *

* API name: {@code offset} */ public final Builder offset(@Nullable JsonData value) { @@ -183,6 +199,9 @@ public final Builder offset(@Nullable JsonData value) { } /** + * Defines the distance from origin + offset at which the computed score will + * equal decay parameter. + *

* API name: {@code scale} */ public final Builder scale(@Nullable JsonData value) { @@ -191,6 +210,9 @@ public final Builder scale(@Nullable JsonData value) { } /** + * The point of origin used for calculating distance. Must be given as a number + * for numeric field, date for date fields and geo point for geo fields. + *

* API name: {@code origin} */ public final Builder origin(@Nullable JsonData value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java index 3cced7fc1..d597ce8c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java @@ -74,13 +74,20 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code queries} + * Required - One or more query clauses. Returned documents must match one or + * more of these queries. If a document matches multiple queries, Elasticsearch + * uses the highest relevance score. + *

+ * API name: {@code queries} */ public final List queries() { return this.queries; } /** + * Floating point number between 0 and 1.0 used to increase the relevance scores + * of documents matching multiple query clauses. + *

* API name: {@code tie_breaker} */ @Nullable @@ -122,7 +129,11 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Double tieBreaker; /** - * Required - API name: {@code queries} + * Required - One or more query clauses. Returned documents must match one or + * more of these queries. If a document matches multiple queries, Elasticsearch + * uses the highest relevance score. + *

+ * API name: {@code queries} *

* Adds all elements of list to queries. */ @@ -132,7 +143,11 @@ public final Builder queries(List list) { } /** - * Required - API name: {@code queries} + * Required - One or more query clauses. Returned documents must match one or + * more of these queries. If a document matches multiple queries, Elasticsearch + * uses the highest relevance score. + *

+ * API name: {@code queries} *

* Adds one or more values to queries. */ @@ -142,7 +157,11 @@ public final Builder queries(Query value, Query... values) { } /** - * Required - API name: {@code queries} + * Required - One or more query clauses. Returned documents must match one or + * more of these queries. If a document matches multiple queries, Elasticsearch + * uses the highest relevance score. + *

+ * API name: {@code queries} *

* Adds a value to queries using a builder lambda. */ @@ -151,6 +170,9 @@ public final Builder queries(Function> fn) { } /** + * Floating point number between 0 and 1.0 used to increase the relevance scores + * of documents matching multiple query clauses. + *

* API name: {@code tie_breaker} */ public final Builder tieBreaker(@Nullable Double value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DistanceFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DistanceFeatureQuery.java index 24f5e689c..efac0681e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DistanceFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DistanceFeatureQuery.java @@ -77,21 +77,43 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code origin} + * Required - Date or point of origin used to calculate distances. If the + * field value is a date or date_nanos + * field, the origin value must be a date. Date Math, such as + * now-1h, is supported. If the field value is a + * geo_point field, the origin value must be a + * geopoint. + *

+ * API name: {@code origin} */ public final JsonData origin() { return this.origin; } /** - * Required - API name: {@code pivot} + * Required - Distance from the origin at which relevance scores + * receive half of the boost value. If the field value + * is a date or date_nanos field, the + * pivot value must be a time unit, such as 1h or + * 10d. If the field value is a geo_point + * field, the pivot value must be a distance unit, such as + * 1km or 12m. + *

+ * API name: {@code pivot} */ public final JsonData pivot() { return this.pivot; } /** - * Required - API name: {@code field} + * Required - Name of the field used to calculate distances. This field must + * meet the following criteria: be a date, date_nanos + * or geo_point field; have an index mapping parameter + * value of true, which is the default; have an + * doc_values mapping parameter value of true, which + * is the default. + *

+ * API name: {@code field} */ public final String field() { return this.field; @@ -127,7 +149,14 @@ public static class Builder extends QueryBase.AbstractBuilder private String field; /** - * Required - API name: {@code origin} + * Required - Date or point of origin used to calculate distances. If the + * field value is a date or date_nanos + * field, the origin value must be a date. Date Math, such as + * now-1h, is supported. If the field value is a + * geo_point field, the origin value must be a + * geopoint. + *

+ * API name: {@code origin} */ public final Builder origin(JsonData value) { this.origin = value; @@ -135,7 +164,15 @@ public final Builder origin(JsonData value) { } /** - * Required - API name: {@code pivot} + * Required - Distance from the origin at which relevance scores + * receive half of the boost value. If the field value + * is a date or date_nanos field, the + * pivot value must be a time unit, such as 1h or + * 10d. If the field value is a geo_point + * field, the pivot value must be a distance unit, such as + * 1km or 12m. + *

+ * API name: {@code pivot} */ public final Builder pivot(JsonData value) { this.pivot = value; @@ -143,7 +180,14 @@ public final Builder pivot(JsonData value) { } /** - * Required - API name: {@code field} + * Required - Name of the field used to calculate distances. This field must + * meet the following criteria: be a date, date_nanos + * or geo_point field; have an index mapping parameter + * value of true, which is the default; have an + * doc_values mapping parameter value of true, which + * is the default. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java index 684b2af0d..f91746c89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java @@ -69,7 +69,9 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code field} + * Required - Name of the field you wish to search. + *

+ * API name: {@code field} */ public final String field() { return this.field; @@ -93,7 +95,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String field; /** - * Required - API name: {@code field} + * Required - Name of the field you wish to search. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java index b72713879..b1fb458ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java @@ -75,13 +75,17 @@ public static FieldLookup of(Function> fn) { } /** - * Required - API name: {@code id} + * Required - id of the document. + *

+ * API name: {@code id} */ public final String id() { return this.id; } /** + * Index from which to retrieve the document. + *

* API name: {@code index} */ @Nullable @@ -90,6 +94,8 @@ public final String index() { } /** + * Name of the field. + *

* API name: {@code path} */ @Nullable @@ -98,6 +104,8 @@ public final String path() { } /** + * Custom routing value. + *

* API name: {@code routing} */ @Nullable @@ -161,7 +169,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String routing; /** - * Required - API name: {@code id} + * Required - id of the document. + *

+ * API name: {@code id} */ public final Builder id(String value) { this.id = value; @@ -169,6 +179,8 @@ public final Builder id(String value) { } /** + * Index from which to retrieve the document. + *

* API name: {@code index} */ public final Builder index(@Nullable String value) { @@ -177,6 +189,8 @@ public final Builder index(@Nullable String value) { } /** + * Name of the field. + *

* API name: {@code path} */ public final Builder path(@Nullable String value) { @@ -185,6 +199,8 @@ public final Builder path(@Nullable String value) { } /** + * Custom routing value. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java index a1210f66d..2591c7975 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java @@ -35,24 +35,59 @@ */ @JsonpDeserializable public enum FieldValueFactorModifier implements JsonEnum { + /** + * Do not apply any multiplier to the field value. + */ None("none"), + /** + * Take the common logarithm of the field value. Because this function will + * return a negative value and cause an error if used on values between 0 and 1, + * it is recommended to use log1p instead. + */ Log("log"), + /** + * Add 1 to the field value and take the common logarithm. + */ Log1p("log1p"), + /** + * Add 2 to the field value and take the common logarithm. + */ Log2p("log2p"), + /** + * Take the natural logarithm of the field value. Because this function will + * return a negative value and cause an error if used on values between 0 and 1, + * it is recommended to use ln1p instead. + */ Ln("ln"), + /** + * Add 1 to the field value and take the natural logarithm. + */ Ln1p("ln1p"), + /** + * Add 2 to the field value and take the natural logarithm. + */ Ln2p("ln2p"), + /** + * Square the field value (multiply it by itself). + */ Square("square"), + /** + * Take the square root of the field value. + */ Sqrt("sqrt"), + /** + * Reciprocate the field value, same as 1/x where x is + * the field’s value. + */ Reciprocal("reciprocal"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java index 10ec43437..172704e09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java @@ -85,13 +85,17 @@ public FunctionScore.Kind _functionScoreKind() { } /** - * Required - API name: {@code field} + * Required - Field to be extracted from the document. + *

+ * API name: {@code field} */ public final String field() { return this.field; } /** + * Optional factor to multiply the field value with. + *

* API name: {@code factor} */ @Nullable @@ -100,6 +104,9 @@ public final Double factor() { } /** + * Value used if the document doesn’t have that field. The modifier and factor + * are still applied to it as though it were read from the document. + *

* API name: {@code missing} */ @Nullable @@ -108,6 +115,8 @@ public final Double missing() { } /** + * Modifier to apply to the field value. + *

* API name: {@code modifier} */ @Nullable @@ -172,7 +181,9 @@ public static class Builder extends WithJsonObjectBuilderBase private FieldValueFactorModifier modifier; /** - * Required - API name: {@code field} + * Required - Field to be extracted from the document. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; @@ -180,6 +191,8 @@ public final Builder field(String value) { } /** + * Optional factor to multiply the field value with. + *

* API name: {@code factor} */ public final Builder factor(@Nullable Double value) { @@ -188,6 +201,9 @@ public final Builder factor(@Nullable Double value) { } /** + * Value used if the document doesn’t have that field. The modifier and factor + * are still applied to it as though it were read from the document. + *

* API name: {@code missing} */ public final Builder missing(@Nullable Double value) { @@ -196,6 +212,8 @@ public final Builder missing(@Nullable Double value) { } /** + * Modifier to apply to the field value. + *

* API name: {@code modifier} */ public final Builder modifier(@Nullable FieldValueFactorModifier value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionBoostMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionBoostMode.java index 46a01ef85..ddf579b5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionBoostMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionBoostMode.java @@ -35,16 +35,34 @@ */ @JsonpDeserializable public enum FunctionBoostMode implements JsonEnum { + /** + * Query score and function score are multiplied + */ Multiply("multiply"), + /** + * Only the function score is used. The query score is ignored. + */ Replace("replace"), + /** + * Query score and function score are added + */ Sum("sum"), + /** + * Query score and function score are averaged + */ Avg("avg"), + /** + * Max of query score and function score + */ Max("max"), + /** + * Min of query score and function score + */ Min("min"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreMode.java index 6883cb09d..d871a1f61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreMode.java @@ -35,16 +35,34 @@ */ @JsonpDeserializable public enum FunctionScoreMode implements JsonEnum { + /** + * Scores are multiplied. + */ Multiply("multiply"), + /** + * Scores are summed. + */ Sum("sum"), + /** + * Scores are averaged. + */ Avg("avg"), + /** + * The first function that has a matching filter is applied. + */ First("first"), + /** + * Maximum score is used. + */ Max("max"), + /** + * Minimum score is used. + */ Min("min"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java index f043144f0..98d1a6892 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java @@ -91,6 +91,8 @@ public Query.Kind _queryKind() { } /** + * Defines how he newly computed score is combined with the score of the query + *

* API name: {@code boost_mode} */ @Nullable @@ -99,6 +101,9 @@ public final FunctionBoostMode boostMode() { } /** + * One or more functions that compute a new score for each document returned by + * the query. + *

* API name: {@code functions} */ public final List functions() { @@ -106,6 +111,8 @@ public final List functions() { } /** + * Restricts the new score to not exceed the provided limit. + *

* API name: {@code max_boost} */ @Nullable @@ -114,6 +121,8 @@ public final Double maxBoost() { } /** + * Excludes documents that do not meet the provided score threshold. + *

* API name: {@code min_score} */ @Nullable @@ -122,6 +131,8 @@ public final Double minScore() { } /** + * A query that determines the documents for which a new score is computed. + *

* API name: {@code query} */ @Nullable @@ -130,6 +141,8 @@ public final Query query() { } /** + * Specifies how the computed scores are combined + *

* API name: {@code score_mode} */ @Nullable @@ -204,6 +217,8 @@ public static class Builder extends QueryBase.AbstractBuilder private FunctionScoreMode scoreMode; /** + * Defines how he newly computed score is combined with the score of the query + *

* API name: {@code boost_mode} */ public final Builder boostMode(@Nullable FunctionBoostMode value) { @@ -212,6 +227,9 @@ public final Builder boostMode(@Nullable FunctionBoostMode value) { } /** + * One or more functions that compute a new score for each document returned by + * the query. + *

* API name: {@code functions} *

* Adds all elements of list to functions. @@ -222,6 +240,9 @@ public final Builder functions(List list) { } /** + * One or more functions that compute a new score for each document returned by + * the query. + *

* API name: {@code functions} *

* Adds one or more values to functions. @@ -232,6 +253,9 @@ public final Builder functions(FunctionScore value, FunctionScore... values) { } /** + * One or more functions that compute a new score for each document returned by + * the query. + *

* API name: {@code functions} *

* Adds a value to functions using a builder lambda. @@ -241,6 +265,8 @@ public final Builder functions(Function * API name: {@code max_boost} */ public final Builder maxBoost(@Nullable Double value) { @@ -249,6 +275,8 @@ public final Builder maxBoost(@Nullable Double value) { } /** + * Excludes documents that do not meet the provided score threshold. + *

* API name: {@code min_score} */ public final Builder minScore(@Nullable Double value) { @@ -257,6 +285,8 @@ public final Builder minScore(@Nullable Double value) { } /** + * A query that determines the documents for which a new score is computed. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -265,6 +295,8 @@ public final Builder query(@Nullable Query value) { } /** + * A query that determines the documents for which a new score is computed. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -272,6 +304,8 @@ public final Builder query(Function> fn) { } /** + * Specifies how the computed scores are combined + *

* API name: {@code score_mode} */ public final Builder scoreMode(@Nullable FunctionScoreMode value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java index dc3acd472..2c5d5fd98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java @@ -103,6 +103,8 @@ public final String field() { } /** + * Maximum number of variations created. + *

* API name: {@code max_expansions} */ @Nullable @@ -111,6 +113,8 @@ public final Integer maxExpansions() { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code prefix_length} */ @Nullable @@ -119,6 +123,8 @@ public final Integer prefixLength() { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code rewrite} */ @Nullable @@ -127,6 +133,9 @@ public final String rewrite() { } /** + * Indicates whether edits include transpositions of two adjacent characters + * (for example ab to ba). + *

* API name: {@code transpositions} */ @Nullable @@ -135,6 +144,8 @@ public final Boolean transpositions() { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ @Nullable @@ -143,7 +154,9 @@ public final String fuzziness() { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final FieldValue value() { return this.value; @@ -220,6 +233,8 @@ public final Builder field(String value) { private FieldValue value; /** + * Maximum number of variations created. + *

* API name: {@code max_expansions} */ public final Builder maxExpansions(@Nullable Integer value) { @@ -228,6 +243,8 @@ public final Builder maxExpansions(@Nullable Integer value) { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code prefix_length} */ public final Builder prefixLength(@Nullable Integer value) { @@ -236,6 +253,8 @@ public final Builder prefixLength(@Nullable Integer value) { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code rewrite} */ public final Builder rewrite(@Nullable String value) { @@ -244,6 +263,9 @@ public final Builder rewrite(@Nullable String value) { } /** + * Indicates whether edits include transpositions of two adjacent characters + * (for example ab to ba). + *

* API name: {@code transpositions} */ public final Builder transpositions(@Nullable Boolean value) { @@ -252,6 +274,8 @@ public final Builder transpositions(@Nullable Boolean value) { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -260,7 +284,9 @@ public final Builder fuzziness(@Nullable String value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(FieldValue value) { this.value = value; @@ -268,14 +294,18 @@ public final Builder value(FieldValue value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(Function> fn) { return this.value(fn.apply(new FieldValue.Builder()).build()); } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(String value) { this.value = FieldValue.of(value); @@ -283,7 +313,9 @@ public final Builder value(String value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(long value) { this.value = FieldValue.of(value); @@ -291,7 +323,9 @@ public final Builder value(long value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(double value) { this.value = FieldValue.of(value); @@ -299,7 +333,9 @@ public final Builder value(double value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(boolean value) { this.value = FieldValue.of(value); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java index 9f272f05a..57bfd0831 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java @@ -112,6 +112,10 @@ public final GeoExecution type() { } /** + * Set to IGNORE_MALFORMED to accept geo points with invalid + * latitude or longitude. Set to COERCE to also try to infer + * correct latitude or longitude. + *

* API name: {@code validation_method} */ @Nullable @@ -120,6 +124,10 @@ public final GeoValidationMethod validationMethod() { } /** + * Set to true to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -205,6 +213,10 @@ public final Builder type(@Nullable GeoExecution value) { } /** + * Set to IGNORE_MALFORMED to accept geo points with invalid + * latitude or longitude. Set to COERCE to also try to infer + * correct latitude or longitude. + *

* API name: {@code validation_method} */ public final Builder validationMethod(@Nullable GeoValidationMethod value) { @@ -213,6 +225,10 @@ public final Builder validationMethod(@Nullable GeoValidationMethod value) { } /** + * Set to true to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java index 86da44275..c7e0d3e33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java @@ -52,7 +52,6 @@ public class GeoDistanceQuery extends QueryBase implements QueryVariant { private final GeoLocation location; - @Nullable private final String distance; @Nullable @@ -68,7 +67,7 @@ private GeoDistanceQuery(Builder builder) { this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); this.location = ApiTypeHelper.requireNonNull(builder.location, this, "location"); - this.distance = builder.distance; + this.distance = ApiTypeHelper.requireNonNull(builder.distance, this, "distance"); this.distanceType = builder.distanceType; this.validationMethod = builder.validationMethod; @@ -101,14 +100,19 @@ public final GeoLocation location() { } /** + * Required - The radius of the circle centred on the specified location. Points + * which fall into this circle are considered to be matches. + *

* API name: {@code distance} */ - @Nullable public final String distance() { return this.distance; } /** + * How to compute the distance. Set to plane for a faster + * calculation that's inaccurate on long distances and close to the poles. + *

* API name: {@code distance_type} */ @Nullable @@ -117,6 +121,10 @@ public final GeoDistanceType distanceType() { } /** + * Set to IGNORE_MALFORMED to accept geo points with invalid + * latitude or longitude. Set to COERCE to also try to infer + * correct latitude or longitude. + *

* API name: {@code validation_method} */ @Nullable @@ -129,11 +137,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.location.serialize(generator, mapper); super.serializeInternal(generator, mapper); - if (this.distance != null) { - generator.writeKey("distance"); - generator.write(this.distance); + generator.writeKey("distance"); + generator.write(this.distance); - } if (this.distanceType != null) { generator.writeKey("distance_type"); this.distanceType.serialize(generator, mapper); @@ -179,7 +185,6 @@ public final Builder location(Function * API name: {@code distance} */ - public final Builder distance(@Nullable String value) { + public final Builder distance(String value) { this.distance = value; return this; } /** + * How to compute the distance. Set to plane for a faster + * calculation that's inaccurate on long distances and close to the poles. + *

* API name: {@code distance_type} */ public final Builder distanceType(@Nullable GeoDistanceType value) { @@ -205,6 +216,10 @@ public final Builder distanceType(@Nullable GeoDistanceType value) { } /** + * Set to IGNORE_MALFORMED to accept geo points with invalid + * latitude or longitude. Set to COERCE to also try to infer + * correct latitude or longitude. + *

* API name: {@code validation_method} */ public final Builder validationMethod(@Nullable GeoValidationMethod value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeFieldQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeFieldQuery.java index c03a119c4..811d79219 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeFieldQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeFieldQuery.java @@ -81,6 +81,9 @@ public final JsonData shape() { } /** + * Query using an indexed shape retrieved from the the specified document and + * path. + *

* API name: {@code indexed_shape} */ @Nullable @@ -89,6 +92,8 @@ public final FieldLookup indexedShape() { } /** + * Spatial relation operator used to search a geo field. + *

* API name: {@code relation} */ @Nullable @@ -156,6 +161,9 @@ public final Builder shape(@Nullable JsonData value) { } /** + * Query using an indexed shape retrieved from the the specified document and + * path. + *

* API name: {@code indexed_shape} */ public final Builder indexedShape(@Nullable FieldLookup value) { @@ -164,6 +172,9 @@ public final Builder indexedShape(@Nullable FieldLookup value) { } /** + * Query using an indexed shape retrieved from the the specified document and + * path. + *

* API name: {@code indexed_shape} */ public final Builder indexedShape(Function> fn) { @@ -171,6 +182,8 @@ public final Builder indexedShape(Function * API name: {@code relation} */ public final Builder relation(@Nullable GeoShapeRelation value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java index 7b3effea5..327c0c337 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java @@ -92,6 +92,10 @@ public final GeoShapeFieldQuery shape() { } /** + * Set to true to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -150,6 +154,10 @@ public final Builder shape(Functiontrue to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoValidationMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoValidationMethod.java index 84479f588..dd456d575 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoValidationMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoValidationMethod.java @@ -35,8 +35,15 @@ */ @JsonpDeserializable public enum GeoValidationMethod implements JsonEnum { + /** + * Accept geo points with invalid latitude or longitude and additionally try and + * infer correct coordinates. + */ Coerce("coerce"), + /** + * Accept geo points with invalid latitude or longitude. + */ IgnoreMalformed("ignore_malformed"), Strict("strict"), diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java index ed14c5a2f..a89d1b109 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java @@ -96,6 +96,9 @@ public Query.Kind _queryKind() { } /** + * Indicates whether to ignore an unmapped type and not return any + * documents instead of an error. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -104,6 +107,8 @@ public final Boolean ignoreUnmapped() { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ @Nullable @@ -112,6 +117,10 @@ public final InnerHits innerHits() { } /** + * Maximum number of child documents that match the query allowed for a returned + * parent document. If the parent document exceeds this limit, it is excluded + * from the search results. + *

* API name: {@code max_children} */ @Nullable @@ -120,6 +129,10 @@ public final Integer maxChildren() { } /** + * Minimum number of child documents that match the query required to match the + * query for a returned parent document. If the parent document does not meet + * this limit, it is excluded from the search results. + *

* API name: {@code min_children} */ @Nullable @@ -128,13 +141,20 @@ public final Integer minChildren() { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on child documents of the type + * field. If a child document matches the search, the query returns the parent + * document. + *

+ * API name: {@code query} */ public final Query query() { return this.query; } /** + * Indicates how scores for matching child documents affect the root parent + * document’s relevance score. + *

* API name: {@code score_mode} */ @Nullable @@ -143,7 +163,10 @@ public final ChildScoreMode scoreMode() { } /** - * Required - API name: {@code type} + * Required - Name of the child relationship mapped for the join + * field. + *

+ * API name: {@code type} */ public final String type() { return this.type; @@ -211,6 +234,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String type; /** + * Indicates whether to ignore an unmapped type and not return any + * documents instead of an error. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { @@ -219,6 +245,8 @@ public final Builder ignoreUnmapped(@Nullable Boolean value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(@Nullable InnerHits value) { @@ -227,6 +255,8 @@ public final Builder innerHits(@Nullable InnerHits value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(Function> fn) { @@ -234,6 +264,10 @@ public final Builder innerHits(Function * API name: {@code max_children} */ public final Builder maxChildren(@Nullable Integer value) { @@ -242,6 +276,10 @@ public final Builder maxChildren(@Nullable Integer value) { } /** + * Minimum number of child documents that match the query required to match the + * query for a returned parent document. If the parent document does not meet + * this limit, it is excluded from the search results. + *

* API name: {@code min_children} */ public final Builder minChildren(@Nullable Integer value) { @@ -250,7 +288,11 @@ public final Builder minChildren(@Nullable Integer value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on child documents of the type + * field. If a child document matches the search, the query returns the parent + * document. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -258,13 +300,20 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on child documents of the type + * field. If a child document matches the search, the query returns the parent + * document. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** + * Indicates how scores for matching child documents affect the root parent + * document’s relevance score. + *

* API name: {@code score_mode} */ public final Builder scoreMode(@Nullable ChildScoreMode value) { @@ -273,7 +322,10 @@ public final Builder scoreMode(@Nullable ChildScoreMode value) { } /** - * Required - API name: {@code type} + * Required - Name of the child relationship mapped for the join + * field. + *

+ * API name: {@code type} */ public final Builder type(String value) { this.type = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java index eabf40ff0..97195ff28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java @@ -87,6 +87,10 @@ public Query.Kind _queryKind() { } /** + * Indicates whether to ignore an unmapped parent_type and not + * return any documents instead of an error. You can use this parameter to query + * multiple indices that may not contain the parent_type. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -95,6 +99,8 @@ public final Boolean ignoreUnmapped() { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ @Nullable @@ -103,20 +109,30 @@ public final InnerHits innerHits() { } /** - * Required - API name: {@code parent_type} + * Required - Name of the parent relationship mapped for the join + * field. + *

+ * API name: {@code parent_type} */ public final String parentType() { return this.parentType; } /** - * Required - API name: {@code query} + * Required - Query you wish to run on parent documents of the + * parent_type field. If a parent document matches the search, the + * query returns its child documents. + *

+ * API name: {@code query} */ public final Query query() { return this.query; } /** + * Indicates whether the relevance score of a matching parent document is + * aggregated into its child documents. + *

* API name: {@code score} */ @Nullable @@ -172,6 +188,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Boolean score; /** + * Indicates whether to ignore an unmapped parent_type and not + * return any documents instead of an error. You can use this parameter to query + * multiple indices that may not contain the parent_type. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { @@ -180,6 +200,8 @@ public final Builder ignoreUnmapped(@Nullable Boolean value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(@Nullable InnerHits value) { @@ -188,6 +210,8 @@ public final Builder innerHits(@Nullable InnerHits value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(Function> fn) { @@ -195,7 +219,10 @@ public final Builder innerHits(Functionjoin + * field. + *

+ * API name: {@code parent_type} */ public final Builder parentType(String value) { this.parentType = value; @@ -203,7 +230,11 @@ public final Builder parentType(String value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on parent documents of the + * parent_type field. If a parent document matches the search, the + * query returns its child documents. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -211,13 +242,20 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on parent documents of the + * parent_type field. If a parent document matches the search, the + * query returns its child documents. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** + * Indicates whether the relevance score of a matching parent document is + * aggregated into its child documents. + *

* API name: {@code score} */ public final Builder score(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java index 6271e2a37..9f78b69a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java @@ -70,6 +70,8 @@ public Query.Kind _queryKind() { } /** + * An array of document IDs. + *

* API name: {@code values} */ public final List values() { @@ -103,6 +105,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement private List values; /** + * An array of document IDs. + *

* API name: {@code values} *

* Adds all elements of list to values. @@ -113,6 +117,8 @@ public final Builder values(List list) { } /** + * An array of document IDs. + *

* API name: {@code values} *

* Adds one or more values to values. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java index 90f0bebca..c506d9fb1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java @@ -94,13 +94,19 @@ public Intervals.Kind _intervalsKind() { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to combine. All rules must produce a match in a + * document for the overall source to match. + *

+ * API name: {@code intervals} */ public final List intervals() { return this.intervals; } /** + * Maximum number of positions between the matching terms. Intervals produced by + * the rules further apart than this are not considered matches. + *

* API name: {@code max_gaps} */ @Nullable @@ -109,6 +115,9 @@ public final Integer maxGaps() { } /** + * If true, intervals produced by the rules should appear in the + * order in which they are specified. + *

* API name: {@code ordered} */ @Nullable @@ -117,6 +126,8 @@ public final Boolean ordered() { } /** + * Rule used to filter returned intervals. + *

* API name: {@code filter} */ @Nullable @@ -187,7 +198,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IntervalsFilter filter; /** - * Required - API name: {@code intervals} + * Required - An array of rules to combine. All rules must produce a match in a + * document for the overall source to match. + *

+ * API name: {@code intervals} *

* Adds all elements of list to intervals. */ @@ -197,7 +211,10 @@ public final Builder intervals(List list) { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to combine. All rules must produce a match in a + * document for the overall source to match. + *

+ * API name: {@code intervals} *

* Adds one or more values to intervals. */ @@ -207,7 +224,10 @@ public final Builder intervals(Intervals value, Intervals... values) { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to combine. All rules must produce a match in a + * document for the overall source to match. + *

+ * API name: {@code intervals} *

* Adds a value to intervals using a builder lambda. */ @@ -216,6 +236,9 @@ public final Builder intervals(Function * API name: {@code max_gaps} */ public final Builder maxGaps(@Nullable Integer value) { @@ -224,6 +247,9 @@ public final Builder maxGaps(@Nullable Integer value) { } /** + * If true, intervals produced by the rules should appear in the + * order in which they are specified. + *

* API name: {@code ordered} */ public final Builder ordered(@Nullable Boolean value) { @@ -232,6 +258,8 @@ public final Builder ordered(@Nullable Boolean value) { } /** + * Rule used to filter returned intervals. + *

* API name: {@code filter} */ public final Builder filter(@Nullable IntervalsFilter value) { @@ -240,6 +268,8 @@ public final Builder filter(@Nullable IntervalsFilter value) { } /** + * Rule used to filter returned intervals. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java index 5540b3bc9..164e38aa6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java @@ -84,13 +84,17 @@ public Intervals.Kind _intervalsKind() { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to match. + *

+ * API name: {@code intervals} */ public final List intervals() { return this.intervals; } /** + * Rule used to filter returned intervals. + *

* API name: {@code filter} */ @Nullable @@ -145,7 +149,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IntervalsFilter filter; /** - * Required - API name: {@code intervals} + * Required - An array of rules to match. + *

+ * API name: {@code intervals} *

* Adds all elements of list to intervals. */ @@ -155,7 +161,9 @@ public final Builder intervals(List list) { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to match. + *

+ * API name: {@code intervals} *

* Adds one or more values to intervals. */ @@ -165,7 +173,9 @@ public final Builder intervals(Intervals value, Intervals... values) { } /** - * Required - API name: {@code intervals} + * Required - An array of rules to match. + *

+ * API name: {@code intervals} *

* Adds a value to intervals using a builder lambda. */ @@ -174,6 +184,8 @@ public final Builder intervals(Function * API name: {@code filter} */ public final Builder filter(@Nullable IntervalsFilter value) { @@ -182,6 +194,8 @@ public final Builder filter(@Nullable IntervalsFilter value) { } /** + * Rule used to filter returned intervals. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java index 9427722b3..5a25871a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java @@ -102,6 +102,8 @@ public Intervals.Kind _intervalsKind() { } /** + * Analyzer used to normalize the term. + *

* API name: {@code analyzer} */ @Nullable @@ -110,6 +112,8 @@ public final String analyzer() { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ @Nullable @@ -118,6 +122,8 @@ public final String fuzziness() { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code prefix_length} */ @Nullable @@ -126,13 +132,18 @@ public final Integer prefixLength() { } /** - * Required - API name: {@code term} + * Required - The term to match. + *

+ * API name: {@code term} */ public final String term() { return this.term; } /** + * Indicates whether edits include transpositions of two adjacent characters + * (for example, ab to ba). + *

* API name: {@code transpositions} */ @Nullable @@ -141,6 +152,10 @@ public final Boolean transpositions() { } /** + * If specified, match intervals from this field rather than the top-level + * field. The term is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ @Nullable @@ -220,6 +235,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String useField; /** + * Analyzer used to normalize the term. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -228,6 +245,8 @@ public final Builder analyzer(@Nullable String value) { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -236,6 +255,8 @@ public final Builder fuzziness(@Nullable String value) { } /** + * Number of beginning characters left unchanged when creating expansions. + *

* API name: {@code prefix_length} */ public final Builder prefixLength(@Nullable Integer value) { @@ -244,7 +265,9 @@ public final Builder prefixLength(@Nullable Integer value) { } /** - * Required - API name: {@code term} + * Required - The term to match. + *

+ * API name: {@code term} */ public final Builder term(String value) { this.term = value; @@ -252,6 +275,9 @@ public final Builder term(String value) { } /** + * Indicates whether edits include transpositions of two adjacent characters + * (for example, ab to ba). + *

* API name: {@code transpositions} */ public final Builder transpositions(@Nullable Boolean value) { @@ -260,6 +286,10 @@ public final Builder transpositions(@Nullable Boolean value) { } /** + * If specified, match intervals from this field rather than the top-level + * field. The term is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ public final Builder useField(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java index 38c365fa0..74bbede8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java @@ -102,6 +102,8 @@ public Intervals.Kind _intervalsKind() { } /** + * Analyzer used to analyze terms in the query. + *

* API name: {@code analyzer} */ @Nullable @@ -110,6 +112,9 @@ public final String analyzer() { } /** + * Maximum number of positions between the matching terms. Terms further apart + * than this are not considered matches. + *

* API name: {@code max_gaps} */ @Nullable @@ -118,6 +123,8 @@ public final Integer maxGaps() { } /** + * If true, matching terms must appear in their specified order. + *

* API name: {@code ordered} */ @Nullable @@ -126,13 +133,19 @@ public final Boolean ordered() { } /** - * Required - API name: {@code query} + * Required - Text you wish to find in the provided field. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * If specified, match intervals from this field rather than the top-level + * field. The term is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ @Nullable @@ -141,6 +154,8 @@ public final String useField() { } /** + * An optional interval filter. + *

* API name: {@code filter} */ @Nullable @@ -220,6 +235,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IntervalsFilter filter; /** + * Analyzer used to analyze terms in the query. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -228,6 +245,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * Maximum number of positions between the matching terms. Terms further apart + * than this are not considered matches. + *

* API name: {@code max_gaps} */ public final Builder maxGaps(@Nullable Integer value) { @@ -236,6 +256,8 @@ public final Builder maxGaps(@Nullable Integer value) { } /** + * If true, matching terms must appear in their specified order. + *

* API name: {@code ordered} */ public final Builder ordered(@Nullable Boolean value) { @@ -244,7 +266,9 @@ public final Builder ordered(@Nullable Boolean value) { } /** - * Required - API name: {@code query} + * Required - Text you wish to find in the provided field. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -252,6 +276,10 @@ public final Builder query(String value) { } /** + * If specified, match intervals from this field rather than the top-level + * field. The term is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ public final Builder useField(@Nullable String value) { @@ -260,6 +288,8 @@ public final Builder useField(@Nullable String value) { } /** + * An optional interval filter. + *

* API name: {@code filter} */ public final Builder filter(@Nullable IntervalsFilter value) { @@ -268,6 +298,8 @@ public final Builder filter(@Nullable IntervalsFilter value) { } /** + * An optional interval filter. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java index 896c68275..39a1c0db0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java @@ -88,6 +88,8 @@ public Intervals.Kind _intervalsKind() { } /** + * Analyzer used to analyze the prefix. + *

* API name: {@code analyzer} */ @Nullable @@ -96,13 +98,20 @@ public final String analyzer() { } /** - * Required - API name: {@code prefix} + * Required - Beginning characters of terms you wish to find in the top-level + * field. + *

+ * API name: {@code prefix} */ public final String prefix() { return this.prefix; } /** + * If specified, match intervals from this field rather than the top-level + * field. The prefix is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ @Nullable @@ -158,6 +167,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String useField; /** + * Analyzer used to analyze the prefix. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -166,7 +177,10 @@ public final Builder analyzer(@Nullable String value) { } /** - * Required - API name: {@code prefix} + * Required - Beginning characters of terms you wish to find in the top-level + * field. + *

+ * API name: {@code prefix} */ public final Builder prefix(String value) { this.prefix = value; @@ -174,6 +188,10 @@ public final Builder prefix(String value) { } /** + * If specified, match intervals from this field rather than the top-level + * field. The prefix is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ public final Builder useField(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java index a97cfc54b..64bc8aca5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java @@ -88,6 +88,9 @@ public Intervals.Kind _intervalsKind() { } /** + * Analyzer used to analyze the pattern. Defaults to the top-level + * field's analyzer. + *

* API name: {@code analyzer} */ @Nullable @@ -96,13 +99,19 @@ public final String analyzer() { } /** - * Required - API name: {@code pattern} + * Required - Wildcard pattern used to find matching terms. + *

+ * API name: {@code pattern} */ public final String pattern() { return this.pattern; } /** + * If specified, match intervals from this field rather than the top-level + * field. The pattern is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ @Nullable @@ -158,6 +167,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String useField; /** + * Analyzer used to analyze the pattern. Defaults to the top-level + * field's analyzer. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -166,7 +178,9 @@ public final Builder analyzer(@Nullable String value) { } /** - * Required - API name: {@code pattern} + * Required - Wildcard pattern used to find matching terms. + *

+ * API name: {@code pattern} */ public final Builder pattern(String value) { this.pattern = value; @@ -174,6 +188,10 @@ public final Builder pattern(String value) { } /** + * If specified, match intervals from this field rather than the top-level + * field. The pattern is normalized using the search analyzer from + * this field, unless analyzer is specified separately. + *

* API name: {@code use_field} */ public final Builder useField(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java index e253fb1ef..bf6c52eab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java @@ -96,6 +96,8 @@ public static LikeDocument of(Function> fn) } /** + * A document not present in the index. + *

* API name: {@code doc} */ @Nullable @@ -111,6 +113,8 @@ public final List fields() { } /** + * ID of a document. + *

* API name: {@code _id} */ @Nullable @@ -119,6 +123,8 @@ public final String id() { } /** + * Index of a document. + *

* API name: {@code _index} */ @Nullable @@ -258,6 +264,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private VersionType versionType; /** + * A document not present in the index. + *

* API name: {@code doc} */ public final Builder doc(@Nullable JsonData value) { @@ -286,6 +294,8 @@ public final Builder fields(String value, String... values) { } /** + * ID of a document. + *

* API name: {@code _id} */ public final Builder id(@Nullable String value) { @@ -294,6 +304,8 @@ public final Builder id(@Nullable String value) { } /** + * Index of a document. + *

* API name: {@code _index} */ public final Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java index ad651207b..663313730 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java @@ -115,6 +115,8 @@ public final String field() { } /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -123,6 +125,9 @@ public final String analyzer() { } /** + * Maximum edit distance allowed for matching. Can be applied to the term + * subqueries constructed for all terms but the final term. + *

* API name: {@code fuzziness} */ @Nullable @@ -131,6 +136,9 @@ public final String fuzziness() { } /** + * Method used to rewrite the query. Can be applied to the term subqueries + * constructed for all terms but the final term. + *

* API name: {@code fuzzy_rewrite} */ @Nullable @@ -139,6 +147,10 @@ public final String fuzzyRewrite() { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code fuzzy_transpositions} */ @Nullable @@ -147,6 +159,9 @@ public final Boolean fuzzyTranspositions() { } /** + * Maximum number of terms to which the query will expand. Can be applied to the + * term subqueries constructed for all terms but the final term. + *

* API name: {@code max_expansions} */ @Nullable @@ -155,6 +170,9 @@ public final Integer maxExpansions() { } /** + * Minimum number of clauses that must match for a document to be returned. + * Applied to the constructed bool query. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -163,6 +181,9 @@ public final String minimumShouldMatch() { } /** + * Boolean logic used to interpret text in the query value. Applied to the + * constructed bool query. + *

* API name: {@code operator} */ @Nullable @@ -171,6 +192,9 @@ public final Operator operator() { } /** + * Number of beginning characters left unchanged for fuzzy matching. Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code prefix_length} */ @Nullable @@ -179,7 +203,10 @@ public final Integer prefixLength() { } /** - * Required - API name: {@code query} + * Required - Terms you wish to find in the provided field. The last term is + * used in a prefix query. + *

+ * API name: {@code query} */ public final String query() { return this.query; @@ -281,6 +308,8 @@ public final Builder field(String value) { private String query; /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -289,6 +318,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * Maximum edit distance allowed for matching. Can be applied to the term + * subqueries constructed for all terms but the final term. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -297,6 +329,9 @@ public final Builder fuzziness(@Nullable String value) { } /** + * Method used to rewrite the query. Can be applied to the term subqueries + * constructed for all terms but the final term. + *

* API name: {@code fuzzy_rewrite} */ public final Builder fuzzyRewrite(@Nullable String value) { @@ -305,6 +340,10 @@ public final Builder fuzzyRewrite(@Nullable String value) { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code fuzzy_transpositions} */ public final Builder fuzzyTranspositions(@Nullable Boolean value) { @@ -313,6 +352,9 @@ public final Builder fuzzyTranspositions(@Nullable Boolean value) { } /** + * Maximum number of terms to which the query will expand. Can be applied to the + * term subqueries constructed for all terms but the final term. + *

* API name: {@code max_expansions} */ public final Builder maxExpansions(@Nullable Integer value) { @@ -321,6 +363,9 @@ public final Builder maxExpansions(@Nullable Integer value) { } /** + * Minimum number of clauses that must match for a document to be returned. + * Applied to the constructed bool query. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -329,6 +374,9 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * Boolean logic used to interpret text in the query value. Applied to the + * constructed bool query. + *

* API name: {@code operator} */ public final Builder operator(@Nullable Operator value) { @@ -337,6 +385,9 @@ public final Builder operator(@Nullable Operator value) { } /** + * Number of beginning characters left unchanged for fuzzy matching. Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code prefix_length} */ public final Builder prefixLength(@Nullable Integer value) { @@ -345,7 +396,10 @@ public final Builder prefixLength(@Nullable Integer value) { } /** - * Required - API name: {@code query} + * Required - Terms you wish to find in the provided field. The last term is + * used in a prefix query. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java index 2de017524..561818081 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java @@ -98,6 +98,8 @@ public final String field() { } /** + * Analyzer used to convert text in the query value into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -106,6 +108,9 @@ public final String analyzer() { } /** + * Maximum number of terms to which the last provided term of the query value + * will expand. + *

* API name: {@code max_expansions} */ @Nullable @@ -114,13 +119,17 @@ public final Integer maxExpansions() { } /** - * Required - API name: {@code query} + * Required - Text you wish to find in the provided field. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ @Nullable @@ -129,6 +138,9 @@ public final Integer slop() { } /** + * Indicates whether no documents are returned if the analyzer removes all + * tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ @Nullable @@ -201,6 +213,8 @@ public final Builder field(String value) { private ZeroTermsQuery zeroTermsQuery; /** + * Analyzer used to convert text in the query value into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -209,6 +223,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * Maximum number of terms to which the last provided term of the query value + * will expand. + *

* API name: {@code max_expansions} */ public final Builder maxExpansions(@Nullable Integer value) { @@ -217,7 +234,9 @@ public final Builder maxExpansions(@Nullable Integer value) { } /** - * Required - API name: {@code query} + * Required - Text you wish to find in the provided field. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -225,6 +244,8 @@ public final Builder query(String value) { } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ public final Builder slop(@Nullable Integer value) { @@ -233,6 +254,9 @@ public final Builder slop(@Nullable Integer value) { } /** + * Indicates whether no documents are returned if the analyzer removes all + * tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ public final Builder zeroTermsQuery(@Nullable ZeroTermsQuery value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java index b194a9ed9..44fe630d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java @@ -94,6 +94,8 @@ public final String field() { } /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -102,13 +104,17 @@ public final String analyzer() { } /** - * Required - API name: {@code query} + * Required - Query terms that are analyzed and turned into a phrase query. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ @Nullable @@ -117,6 +123,9 @@ public final Integer slop() { } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ @Nullable @@ -179,6 +188,8 @@ public final Builder field(String value) { private ZeroTermsQuery zeroTermsQuery; /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -187,7 +198,9 @@ public final Builder analyzer(@Nullable String value) { } /** - * Required - API name: {@code query} + * Required - Query terms that are analyzed and turned into a phrase query. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -195,6 +208,8 @@ public final Builder query(String value) { } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ public final Builder slop(@Nullable Integer value) { @@ -203,6 +218,9 @@ public final Builder slop(@Nullable Integer value) { } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ public final Builder zeroTermsQuery(@Nullable ZeroTermsQuery value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java index 4bfd16dd3..172c36fb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java @@ -132,6 +132,8 @@ public final String field() { } /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -140,6 +142,9 @@ public final String analyzer() { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ @Nullable @@ -159,6 +164,8 @@ public final Double cutoffFrequency() { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ @Nullable @@ -167,6 +174,8 @@ public final String fuzziness() { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ @Nullable @@ -175,6 +184,9 @@ public final String fuzzyRewrite() { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ @Nullable @@ -183,6 +195,9 @@ public final Boolean fuzzyTranspositions() { } /** + * If true, format-based errors, such as providing a text query + * value for a numeric field, are ignored. + *

* API name: {@code lenient} */ @Nullable @@ -191,6 +206,8 @@ public final Boolean lenient() { } /** + * Maximum number of terms to which the query will expand. + *

* API name: {@code max_expansions} */ @Nullable @@ -199,6 +216,8 @@ public final Integer maxExpansions() { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -207,6 +226,8 @@ public final String minimumShouldMatch() { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ @Nullable @@ -215,6 +236,8 @@ public final Operator operator() { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code prefix_length} */ @Nullable @@ -223,13 +246,19 @@ public final Integer prefixLength() { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final FieldValue query() { return this.query; } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ @Nullable @@ -363,6 +392,8 @@ public final Builder field(String value) { private ZeroTermsQuery zeroTermsQuery; /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -371,6 +402,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { @@ -390,6 +424,8 @@ public final Builder cutoffFrequency(@Nullable Double value) { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -398,6 +434,8 @@ public final Builder fuzziness(@Nullable String value) { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ public final Builder fuzzyRewrite(@Nullable String value) { @@ -406,6 +444,9 @@ public final Builder fuzzyRewrite(@Nullable String value) { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ public final Builder fuzzyTranspositions(@Nullable Boolean value) { @@ -414,6 +455,9 @@ public final Builder fuzzyTranspositions(@Nullable Boolean value) { } /** + * If true, format-based errors, such as providing a text query + * value for a numeric field, are ignored. + *

* API name: {@code lenient} */ public final Builder lenient(@Nullable Boolean value) { @@ -422,6 +466,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * Maximum number of terms to which the query will expand. + *

* API name: {@code max_expansions} */ public final Builder maxExpansions(@Nullable Integer value) { @@ -430,6 +476,8 @@ public final Builder maxExpansions(@Nullable Integer value) { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -438,6 +486,8 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ public final Builder operator(@Nullable Operator value) { @@ -446,6 +496,8 @@ public final Builder operator(@Nullable Operator value) { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code prefix_length} */ public final Builder prefixLength(@Nullable Integer value) { @@ -454,7 +506,10 @@ public final Builder prefixLength(@Nullable Integer value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(FieldValue value) { this.query = value; @@ -462,14 +517,20 @@ public final Builder query(FieldValue value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new FieldValue.Builder()).build()); } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = FieldValue.of(value); @@ -477,7 +538,10 @@ public final Builder query(String value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(long value) { this.query = FieldValue.of(value); @@ -485,7 +549,10 @@ public final Builder query(long value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(double value) { this.query = FieldValue.of(value); @@ -493,7 +560,10 @@ public final Builder query(double value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(boolean value) { this.query = FieldValue.of(value); @@ -501,6 +571,9 @@ public final Builder query(boolean value) { } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ public final Builder zeroTermsQuery(@Nullable ZeroTermsQuery value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java index a0a332287..812e6df80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java @@ -145,6 +145,9 @@ public Query.Kind _queryKind() { } /** + * The analyzer that is used to analyze the free form text. Defaults to the + * analyzer associated with the first field in fields. + *

* API name: {@code analyzer} */ @Nullable @@ -153,6 +156,10 @@ public final String analyzer() { } /** + * Each term in the formed query could be further boosted by their tf-idf score. + * This sets the boost factor to use when using this feature. Defaults to + * deactivated (0). + *

* API name: {@code boost_terms} */ @Nullable @@ -161,6 +168,10 @@ public final Double boostTerms() { } /** + * Controls whether the query should fail (throw an exception) if any of the + * specified fields are not of the supported types (text or + * keyword). + *

* API name: {@code fail_on_unsupported_field} */ @Nullable @@ -169,6 +180,10 @@ public final Boolean failOnUnsupportedField() { } /** + * A list of fields to fetch and analyze the text from. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} */ public final List fields() { @@ -176,6 +191,9 @@ public final List fields() { } /** + * Specifies whether the input documents should also be included in the search + * results returned. + *

* API name: {@code include} */ @Nullable @@ -184,13 +202,19 @@ public final Boolean include() { } /** - * Required - API name: {@code like} + * Required - Specifies free form text and/or a single or multiple documents for + * which you want to find similar documents. + *

+ * API name: {@code like} */ public final List like() { return this.like; } /** + * The maximum document frequency above which the terms are ignored from the + * input document. + *

* API name: {@code max_doc_freq} */ @Nullable @@ -199,6 +223,8 @@ public final Integer maxDocFreq() { } /** + * The maximum number of query terms that can be selected. + *

* API name: {@code max_query_terms} */ @Nullable @@ -207,6 +233,9 @@ public final Integer maxQueryTerms() { } /** + * The maximum word length above which the terms are ignored. Defaults to + * unbounded (0). + *

* API name: {@code max_word_length} */ @Nullable @@ -215,6 +244,9 @@ public final Integer maxWordLength() { } /** + * The minimum document frequency below which the terms are ignored from the + * input document. + *

* API name: {@code min_doc_freq} */ @Nullable @@ -223,6 +255,9 @@ public final Integer minDocFreq() { } /** + * After the disjunctive query has been formed, this parameter controls the + * number of terms that must match. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -231,6 +266,9 @@ public final String minimumShouldMatch() { } /** + * The minimum term frequency below which the terms are ignored from the input + * document. + *

* API name: {@code min_term_freq} */ @Nullable @@ -239,6 +277,8 @@ public final Integer minTermFreq() { } /** + * The minimum word length below which the terms are ignored. + *

* API name: {@code min_word_length} */ @Nullable @@ -247,6 +287,8 @@ public final Integer minWordLength() { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} */ public final Map perFieldAnalyzer() { @@ -262,6 +304,8 @@ public final String routing() { } /** + * An array of stop words. Any word in this set is ignored. + *

* API name: {@code stop_words} */ public final List stopWords() { @@ -269,6 +313,9 @@ public final List stopWords() { } /** + * Used in combination with like to exclude documents that match a + * set of terms. + *

* API name: {@code unlike} */ public final List unlike() { @@ -481,6 +528,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private VersionType versionType; /** + * The analyzer that is used to analyze the free form text. Defaults to the + * analyzer associated with the first field in fields. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -489,6 +539,10 @@ public final Builder analyzer(@Nullable String value) { } /** + * Each term in the formed query could be further boosted by their tf-idf score. + * This sets the boost factor to use when using this feature. Defaults to + * deactivated (0). + *

* API name: {@code boost_terms} */ public final Builder boostTerms(@Nullable Double value) { @@ -497,6 +551,10 @@ public final Builder boostTerms(@Nullable Double value) { } /** + * Controls whether the query should fail (throw an exception) if any of the + * specified fields are not of the supported types (text or + * keyword). + *

* API name: {@code fail_on_unsupported_field} */ public final Builder failOnUnsupportedField(@Nullable Boolean value) { @@ -505,6 +563,10 @@ public final Builder failOnUnsupportedField(@Nullable Boolean value) { } /** + * A list of fields to fetch and analyze the text from. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -515,6 +577,10 @@ public final Builder fields(List list) { } /** + * A list of fields to fetch and analyze the text from. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -525,6 +591,9 @@ public final Builder fields(String value, String... values) { } /** + * Specifies whether the input documents should also be included in the search + * results returned. + *

* API name: {@code include} */ public final Builder include(@Nullable Boolean value) { @@ -533,7 +602,10 @@ public final Builder include(@Nullable Boolean value) { } /** - * Required - API name: {@code like} + * Required - Specifies free form text and/or a single or multiple documents for + * which you want to find similar documents. + *

+ * API name: {@code like} *

* Adds all elements of list to like. */ @@ -543,7 +615,10 @@ public final Builder like(List list) { } /** - * Required - API name: {@code like} + * Required - Specifies free form text and/or a single or multiple documents for + * which you want to find similar documents. + *

+ * API name: {@code like} *

* Adds one or more values to like. */ @@ -553,7 +628,10 @@ public final Builder like(Like value, Like... values) { } /** - * Required - API name: {@code like} + * Required - Specifies free form text and/or a single or multiple documents for + * which you want to find similar documents. + *

+ * API name: {@code like} *

* Adds a value to like using a builder lambda. */ @@ -562,6 +640,9 @@ public final Builder like(Function> fn) { } /** + * The maximum document frequency above which the terms are ignored from the + * input document. + *

* API name: {@code max_doc_freq} */ public final Builder maxDocFreq(@Nullable Integer value) { @@ -570,6 +651,8 @@ public final Builder maxDocFreq(@Nullable Integer value) { } /** + * The maximum number of query terms that can be selected. + *

* API name: {@code max_query_terms} */ public final Builder maxQueryTerms(@Nullable Integer value) { @@ -578,6 +661,9 @@ public final Builder maxQueryTerms(@Nullable Integer value) { } /** + * The maximum word length above which the terms are ignored. Defaults to + * unbounded (0). + *

* API name: {@code max_word_length} */ public final Builder maxWordLength(@Nullable Integer value) { @@ -586,6 +672,9 @@ public final Builder maxWordLength(@Nullable Integer value) { } /** + * The minimum document frequency below which the terms are ignored from the + * input document. + *

* API name: {@code min_doc_freq} */ public final Builder minDocFreq(@Nullable Integer value) { @@ -594,6 +683,9 @@ public final Builder minDocFreq(@Nullable Integer value) { } /** + * After the disjunctive query has been formed, this parameter controls the + * number of terms that must match. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -602,6 +694,9 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * The minimum term frequency below which the terms are ignored from the input + * document. + *

* API name: {@code min_term_freq} */ public final Builder minTermFreq(@Nullable Integer value) { @@ -610,6 +705,8 @@ public final Builder minTermFreq(@Nullable Integer value) { } /** + * The minimum word length below which the terms are ignored. + *

* API name: {@code min_word_length} */ public final Builder minWordLength(@Nullable Integer value) { @@ -618,6 +715,8 @@ public final Builder minWordLength(@Nullable Integer value) { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds all entries of map to perFieldAnalyzer. @@ -628,6 +727,8 @@ public final Builder perFieldAnalyzer(Map map) { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds an entry to perFieldAnalyzer. @@ -646,6 +747,8 @@ public final Builder routing(@Nullable String value) { } /** + * An array of stop words. Any word in this set is ignored. + *

* API name: {@code stop_words} *

* Adds all elements of list to stopWords. @@ -656,6 +759,8 @@ public final Builder stopWords(List list) { } /** + * An array of stop words. Any word in this set is ignored. + *

* API name: {@code stop_words} *

* Adds one or more values to stopWords. @@ -666,6 +771,9 @@ public final Builder stopWords(String value, String... values) { } /** + * Used in combination with like to exclude documents that match a + * set of terms. + *

* API name: {@code unlike} *

* Adds all elements of list to unlike. @@ -676,6 +784,9 @@ public final Builder unlike(List list) { } /** + * Used in combination with like to exclude documents that match a + * set of terms. + *

* API name: {@code unlike} *

* Adds one or more values to unlike. @@ -686,6 +797,9 @@ public final Builder unlike(Like value, Like... values) { } /** + * Used in combination with like to exclude documents that match a + * set of terms. + *

* API name: {@code unlike} *

* Adds a value to unlike using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java index e3e199824..dc1df0b8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java @@ -137,6 +137,8 @@ public Query.Kind _queryKind() { } /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -145,6 +147,9 @@ public final String analyzer() { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ @Nullable @@ -164,6 +169,10 @@ public final Double cutoffFrequency() { } /** + * The fields to be queried. Defaults to the + * index.query.default_field index settings, which in turn defaults + * to *. + *

* API name: {@code fields} */ public final List fields() { @@ -171,6 +180,8 @@ public final List fields() { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ @Nullable @@ -179,6 +190,8 @@ public final String fuzziness() { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ @Nullable @@ -187,6 +200,10 @@ public final String fuzzyRewrite() { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code fuzzy_transpositions} */ @Nullable @@ -195,6 +212,9 @@ public final Boolean fuzzyTranspositions() { } /** + * If true, format-based errors, such as providing a text query + * value for a numeric field, are ignored. + *

* API name: {@code lenient} */ @Nullable @@ -203,6 +223,8 @@ public final Boolean lenient() { } /** + * Maximum number of terms to which the query will expand. + *

* API name: {@code max_expansions} */ @Nullable @@ -211,6 +233,8 @@ public final Integer maxExpansions() { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -219,6 +243,8 @@ public final String minimumShouldMatch() { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ @Nullable @@ -227,6 +253,8 @@ public final Operator operator() { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code prefix_length} */ @Nullable @@ -235,13 +263,18 @@ public final Integer prefixLength() { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ @Nullable @@ -250,6 +283,9 @@ public final Integer slop() { } /** + * Determines how scores for each per-term blended query and scores across + * groups are combined. + *

* API name: {@code tie_breaker} */ @Nullable @@ -258,6 +294,8 @@ public final Double tieBreaker() { } /** + * How the multi_match query is executed internally. + *

* API name: {@code type} */ @Nullable @@ -266,6 +304,9 @@ public final TextQueryType type() { } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ @Nullable @@ -422,6 +463,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement private ZeroTermsQuery zeroTermsQuery; /** + * Analyzer used to convert the text in the query value into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -430,6 +473,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { @@ -449,6 +495,10 @@ public final Builder cutoffFrequency(@Nullable Double value) { } /** + * The fields to be queried. Defaults to the + * index.query.default_field index settings, which in turn defaults + * to *. + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -459,6 +509,10 @@ public final Builder fields(List list) { } /** + * The fields to be queried. Defaults to the + * index.query.default_field index settings, which in turn defaults + * to *. + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -469,6 +523,8 @@ public final Builder fields(String value, String... values) { } /** + * Maximum edit distance allowed for matching. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -477,6 +533,8 @@ public final Builder fuzziness(@Nullable String value) { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ public final Builder fuzzyRewrite(@Nullable String value) { @@ -485,6 +543,10 @@ public final Builder fuzzyRewrite(@Nullable String value) { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). Can be + * applied to the term subqueries constructed for all terms but the final term. + *

* API name: {@code fuzzy_transpositions} */ public final Builder fuzzyTranspositions(@Nullable Boolean value) { @@ -493,6 +555,9 @@ public final Builder fuzzyTranspositions(@Nullable Boolean value) { } /** + * If true, format-based errors, such as providing a text query + * value for a numeric field, are ignored. + *

* API name: {@code lenient} */ public final Builder lenient(@Nullable Boolean value) { @@ -501,6 +566,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * Maximum number of terms to which the query will expand. + *

* API name: {@code max_expansions} */ public final Builder maxExpansions(@Nullable Integer value) { @@ -509,6 +576,8 @@ public final Builder maxExpansions(@Nullable Integer value) { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -517,6 +586,8 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * Boolean logic used to interpret text in the query value. + *

* API name: {@code operator} */ public final Builder operator(@Nullable Operator value) { @@ -525,6 +596,8 @@ public final Builder operator(@Nullable Operator value) { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code prefix_length} */ public final Builder prefixLength(@Nullable Integer value) { @@ -533,7 +606,10 @@ public final Builder prefixLength(@Nullable Integer value) { } /** - * Required - API name: {@code query} + * Required - Text, number, boolean value or date you wish to find in the + * provided field. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -541,6 +617,8 @@ public final Builder query(String value) { } /** + * Maximum number of positions allowed between matching tokens. + *

* API name: {@code slop} */ public final Builder slop(@Nullable Integer value) { @@ -549,6 +627,9 @@ public final Builder slop(@Nullable Integer value) { } /** + * Determines how scores for each per-term blended query and scores across + * groups are combined. + *

* API name: {@code tie_breaker} */ public final Builder tieBreaker(@Nullable Double value) { @@ -557,6 +638,8 @@ public final Builder tieBreaker(@Nullable Double value) { } /** + * How the multi_match query is executed internally. + *

* API name: {@code type} */ public final Builder type(@Nullable TextQueryType value) { @@ -565,6 +648,9 @@ public final Builder type(@Nullable TextQueryType value) { } /** + * Indicates whether no documents are returned if the analyzer + * removes all tokens, such as when using a stop filter. + *

* API name: {@code zero_terms_query} */ public final Builder zeroTermsQuery(@Nullable ZeroTermsQuery value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java index 7215a2684..8d6344c4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java @@ -35,12 +35,24 @@ */ @JsonpDeserializable public enum MultiValueMode implements JsonEnum { + /** + * Distance is the minimum distance. + */ Min("min"), + /** + * Distance is the maximum distance. + */ Max("max"), + /** + * Distance is the average distance. + */ Avg("avg"), + /** + * Distance is the sum of all distances. + */ Sum("sum"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java index 20da29a74..394f86bf8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java @@ -86,6 +86,9 @@ public Query.Kind _queryKind() { } /** + * Indicates whether to ignore an unmapped path and not return any documents + * instead of an error. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -94,6 +97,8 @@ public final Boolean ignoreUnmapped() { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ @Nullable @@ -102,20 +107,27 @@ public final InnerHits innerHits() { } /** - * Required - API name: {@code path} + * Required - Path to the nested object you wish to search. + *

+ * API name: {@code path} */ public final String path() { return this.path; } /** - * Required - API name: {@code query} + * Required - Query you wish to run on nested objects in the path. + *

+ * API name: {@code query} */ public final Query query() { return this.query; } /** + * How scores for matching child objects affect the root parent document’s + * relevance score. + *

* API name: {@code score_mode} */ @Nullable @@ -170,6 +182,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private ChildScoreMode scoreMode; /** + * Indicates whether to ignore an unmapped path and not return any documents + * instead of an error. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { @@ -178,6 +193,8 @@ public final Builder ignoreUnmapped(@Nullable Boolean value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(@Nullable InnerHits value) { @@ -186,6 +203,8 @@ public final Builder innerHits(@Nullable InnerHits value) { } /** + * If defined, each search hit will contain inner hits. + *

* API name: {@code inner_hits} */ public final Builder innerHits(Function> fn) { @@ -193,7 +212,9 @@ public final Builder innerHits(Function + * API name: {@code path} */ public final Builder path(String value) { this.path = value; @@ -201,7 +222,9 @@ public final Builder path(String value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on nested objects in the path. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -209,13 +232,18 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Query you wish to run on nested objects in the path. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** + * How scores for matching child objects affect the root parent document’s + * relevance score. + *

* API name: {@code score_mode} */ public final Builder scoreMode(@Nullable ChildScoreMode value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java index 634c3b979..3e08a410c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java @@ -79,6 +79,8 @@ public Query.Kind _queryKind() { } /** + * ID of the parent document. + *

* API name: {@code id} */ @Nullable @@ -87,6 +89,9 @@ public final String id() { } /** + * Indicates whether to ignore an unmapped type and not return any + * documents instead of an error. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -95,6 +100,8 @@ public final Boolean ignoreUnmapped() { } /** + * Name of the child relationship mapped for the join field. + *

* API name: {@code type} */ @Nullable @@ -140,6 +147,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String type; /** + * ID of the parent document. + *

* API name: {@code id} */ public final Builder id(@Nullable String value) { @@ -148,6 +157,9 @@ public final Builder id(@Nullable String value) { } /** + * Indicates whether to ignore an unmapped type and not return any + * documents instead of an error. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { @@ -156,6 +168,8 @@ public final Builder ignoreUnmapped(@Nullable Boolean value) { } /** + * Name of the child relationship mapped for the join field. + *

* API name: {@code type} */ public final Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java index 04a63894b..623989d37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java @@ -104,6 +104,8 @@ public Query.Kind _queryKind() { } /** + * The source of the document being percolated. + *

* API name: {@code document} */ @Nullable @@ -112,6 +114,8 @@ public final JsonData document() { } /** + * An array of sources of the documents being percolated. + *

* API name: {@code documents} */ public final List documents() { @@ -119,13 +123,18 @@ public final List documents() { } /** - * Required - API name: {@code field} + * Required - Field that holds the indexed queries. The field must use the + * percolator mapping type. + *

+ * API name: {@code field} */ public final String field() { return this.field; } /** + * The ID of a stored document to percolate. + *

* API name: {@code id} */ @Nullable @@ -134,6 +143,8 @@ public final String id() { } /** + * The index of a stored document to percolate. + *

* API name: {@code index} */ @Nullable @@ -142,6 +153,9 @@ public final String index() { } /** + * The suffix used for the _percolator_document_slot field when + * multiple percolate queries are specified. + *

* API name: {@code name} */ @Nullable @@ -150,6 +164,8 @@ public final String name() { } /** + * Preference used to fetch document to percolate. + *

* API name: {@code preference} */ @Nullable @@ -158,6 +174,8 @@ public final String preference() { } /** + * Routing used to fetch document to percolate. + *

* API name: {@code routing} */ @Nullable @@ -166,6 +184,8 @@ public final String routing() { } /** + * The expected version of a stored document to percolate. + *

* API name: {@code version} */ @Nullable @@ -261,6 +281,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Long version; /** + * The source of the document being percolated. + *

* API name: {@code document} */ public final Builder document(@Nullable JsonData value) { @@ -269,6 +291,8 @@ public final Builder document(@Nullable JsonData value) { } /** + * An array of sources of the documents being percolated. + *

* API name: {@code documents} *

* Adds all elements of list to documents. @@ -279,6 +303,8 @@ public final Builder documents(List list) { } /** + * An array of sources of the documents being percolated. + *

* API name: {@code documents} *

* Adds one or more values to documents. @@ -289,7 +315,10 @@ public final Builder documents(JsonData value, JsonData... values) { } /** - * Required - API name: {@code field} + * Required - Field that holds the indexed queries. The field must use the + * percolator mapping type. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; @@ -297,6 +326,8 @@ public final Builder field(String value) { } /** + * The ID of a stored document to percolate. + *

* API name: {@code id} */ public final Builder id(@Nullable String value) { @@ -305,6 +336,8 @@ public final Builder id(@Nullable String value) { } /** + * The index of a stored document to percolate. + *

* API name: {@code index} */ public final Builder index(@Nullable String value) { @@ -313,6 +346,9 @@ public final Builder index(@Nullable String value) { } /** + * The suffix used for the _percolator_document_slot field when + * multiple percolate queries are specified. + *

* API name: {@code name} */ public final Builder name(@Nullable String value) { @@ -321,6 +357,8 @@ public final Builder name(@Nullable String value) { } /** + * Preference used to fetch document to percolate. + *

* API name: {@code preference} */ public final Builder preference(@Nullable String value) { @@ -329,6 +367,8 @@ public final Builder preference(@Nullable String value) { } /** + * Routing used to fetch document to percolate. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -337,6 +377,8 @@ public final Builder routing(@Nullable String value) { } /** + * The expected version of a stored document to percolate. + *

* API name: {@code version} */ public final Builder version(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java index 1797f2a72..bafb52e4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java @@ -66,14 +66,18 @@ public static PinnedDoc of(Function> fn) { } /** - * Required - API name: {@code _id} + * Required - The unique document ID. + *

+ * API name: {@code _id} */ public final String id() { return this.id; } /** - * Required - API name: {@code _index} + * Required - The index that contains the document. + *

+ * API name: {@code _index} */ public final String index() { return this.index; @@ -115,7 +119,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String index; /** - * Required - API name: {@code _id} + * Required - The unique document ID. + *

+ * API name: {@code _id} */ public final Builder id(String value) { this.id = value; @@ -123,7 +129,9 @@ public final Builder id(String value) { } /** - * Required - API name: {@code _index} + * Required - The index that contains the document. + *

+ * API name: {@code _index} */ public final Builder index(String value) { this.index = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java index 40dcb565f..1a79631da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java @@ -121,7 +121,10 @@ public static PinnedQuery of(Function> fn) { } /** - * Required - API name: {@code organic} + * Required - Any choice of query used to rank documents which will be ranked + * below the "pinned" documents. + *

+ * API name: {@code organic} */ public final Query organic() { return this.organic; @@ -213,7 +216,10 @@ public static class Builder extends QueryBase.AbstractBuilder { private Query organic; /** - * Required - API name: {@code organic} + * Required - Any choice of query used to rank documents which will be ranked + * below the "pinned" documents. + *

+ * API name: {@code organic} */ public final Builder organic(Query value) { this.organic = value; @@ -221,7 +227,10 @@ public final Builder organic(Query value) { } /** - * Required - API name: {@code organic} + * Required - Any choice of query used to rank documents which will be ranked + * below the "pinned" documents. + *

+ * API name: {@code organic} */ public final Builder organic(Function> fn) { return this.organic(fn.apply(new Query.Builder()).build()); @@ -251,7 +260,10 @@ protected PinnedQuery build() { public class ContainerBuilder implements ObjectBuilder { /** - * Required - API name: {@code organic} + * Required - Any choice of query used to rank documents which will be ranked + * below the "pinned" documents. + *

+ * API name: {@code organic} */ public final ContainerBuilder organic(Query value) { Builder.this.organic = value; @@ -259,7 +271,10 @@ public final ContainerBuilder organic(Query value) { } /** - * Required - API name: {@code organic} + * Required - Any choice of query used to rank documents which will be ranked + * below the "pinned" documents. + *

+ * API name: {@code organic} */ public final ContainerBuilder organic(Function> fn) { return this.organic(fn.apply(new Query.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java index 2a58b4d54..402711b7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java @@ -89,6 +89,8 @@ public final String field() { } /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ @Nullable @@ -97,13 +99,21 @@ public final String rewrite() { } /** - * Required - API name: {@code value} + * Required - Beginning characters of terms you wish to find in the provided + * field. + *

+ * API name: {@code value} */ public final String value() { return this.value; } /** + * Allows ASCII case insensitive matching of the value with the indexed field + * values when set to true. Default is false which + * means the case sensitivity of matching depends on the underlying field’s + * mapping. + *

* API name: {@code case_insensitive} */ @Nullable @@ -159,6 +169,8 @@ public final Builder field(String value) { private Boolean caseInsensitive; /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ public final Builder rewrite(@Nullable String value) { @@ -167,7 +179,10 @@ public final Builder rewrite(@Nullable String value) { } /** - * Required - API name: {@code value} + * Required - Beginning characters of terms you wish to find in the provided + * field. + *

+ * API name: {@code value} */ public final Builder value(String value) { this.value = value; @@ -175,6 +190,11 @@ public final Builder value(String value) { } /** + * Allows ASCII case insensitive matching of the value with the indexed field + * values when set to true. Default is false which + * means the case sensitivity of matching depends on the underlying field’s + * mapping. + *

* API name: {@code case_insensitive} */ public final Builder caseInsensitive(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 049c670d5..12ace328c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -138,6 +138,8 @@ public enum Kind implements JsonEnum { Regexp("regexp"), + RuleQuery("rule_query"), + Script("script"), ScriptScore("script_score"), @@ -836,6 +838,23 @@ public RegexpQuery regexp() { return TaggedUnionUtils.get(this, Kind.Regexp); } + /** + * Is this variant instance of kind {@code rule_query}? + */ + public boolean isRuleQuery() { + return _kind == Kind.RuleQuery; + } + + /** + * Get the {@code rule_query} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code rule_query} kind. + */ + public RuleQuery ruleQuery() { + return TaggedUnionUtils.get(this, Kind.RuleQuery); + } + /** * Is this variant instance of kind {@code script}? */ @@ -1599,6 +1618,16 @@ public ObjectBuilder regexp(Function ruleQuery(RuleQuery v) { + this._kind = Kind.RuleQuery; + this._value = v; + return this; + } + + public ObjectBuilder ruleQuery(Function> fn) { + return this.ruleQuery(fn.apply(new RuleQuery.Builder()).build()); + } + public ObjectBuilder script(ScriptQuery v) { this._kind = Kind.Script; this._value = v; @@ -1865,6 +1894,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::range, RangeQuery._DESERIALIZER, "range"); op.add(Builder::rankFeature, RankFeatureQuery._DESERIALIZER, "rank_feature"); op.add(Builder::regexp, RegexpQuery._DESERIALIZER, "regexp"); + op.add(Builder::ruleQuery, RuleQuery._DESERIALIZER, "rule_query"); op.add(Builder::script, ScriptQuery._DESERIALIZER, "script"); op.add(Builder::scriptScore, ScriptScoreQuery._DESERIALIZER, "script_score"); op.add(Builder::shape, ShapeQuery._DESERIALIZER, "shape"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java index 5c6f83e1b..08a644b63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java @@ -63,6 +63,11 @@ protected QueryBase(AbstractBuilder builder) { } /** + * Floating point number used to decrease or increase the relevance scores of + * the query. Boost values are relative to the default value of 1.0. A boost + * value between 0 and 1.0 decreases the relevance score. A value greater than + * 1.0 increases the relevance score. + *

* API name: {@code boost} */ @Nullable @@ -117,6 +122,11 @@ public abstract static class AbstractBuilder * API name: {@code boost} */ public final BuilderT boost(@Nullable Float value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index e72085f4c..3159ed383 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -638,6 +638,22 @@ public static Query regexp(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.ruleQuery(fn.apply(new RuleQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link ScriptQuery script} {@code Query} variant. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java index 45ba9fe33..a52a74059 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java @@ -169,6 +169,9 @@ public Query.Kind _queryKind() { } /** + * If true, the wildcard characters * and + * ? are allowed as the first character of the query string. + *

* API name: {@code allow_leading_wildcard} */ @Nullable @@ -177,6 +180,8 @@ public final Boolean allowLeadingWildcard() { } /** + * Analyzer used to convert text in the query string into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -185,6 +190,9 @@ public final String analyzer() { } /** + * If true, the query attempts to analyze wildcard terms in the + * query string. + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -193,6 +201,9 @@ public final Boolean analyzeWildcard() { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ @Nullable @@ -201,6 +212,11 @@ public final Boolean autoGenerateSynonymsPhraseQuery() { } /** + * Default field to search if no field is provided in the query string. Supports + * wildcards (*). Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code default_field} */ @Nullable @@ -209,6 +225,9 @@ public final String defaultField() { } /** + * Default boolean logic used to interpret text in the query string if no + * operators are specified. + *

* API name: {@code default_operator} */ @Nullable @@ -217,6 +236,9 @@ public final Operator defaultOperator() { } /** + * If true, enable position increments in queries constructed from + * a query_string search. + *

* API name: {@code enable_position_increments} */ @Nullable @@ -233,6 +255,8 @@ public final Boolean escape() { } /** + * Array of fields to search. Supports wildcards (*). + *

* API name: {@code fields} */ public final List fields() { @@ -240,6 +264,8 @@ public final List fields() { } /** + * Maximum edit distance allowed for fuzzy matching. + *

* API name: {@code fuzziness} */ @Nullable @@ -248,6 +274,8 @@ public final String fuzziness() { } /** + * Maximum number of terms to which the query expands for fuzzy matching. + *

* API name: {@code fuzzy_max_expansions} */ @Nullable @@ -256,6 +284,8 @@ public final Integer fuzzyMaxExpansions() { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code fuzzy_prefix_length} */ @Nullable @@ -264,6 +294,8 @@ public final Integer fuzzyPrefixLength() { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ @Nullable @@ -272,6 +304,9 @@ public final String fuzzyRewrite() { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ @Nullable @@ -280,6 +315,9 @@ public final Boolean fuzzyTranspositions() { } /** + * If true, format-based errors, such as providing a text value for + * a numeric field, are ignored. + *

* API name: {@code lenient} */ @Nullable @@ -288,6 +326,8 @@ public final Boolean lenient() { } /** + * Maximum number of automaton states required for the query. + *

* API name: {@code max_determinized_states} */ @Nullable @@ -296,6 +336,8 @@ public final Integer maxDeterminizedStates() { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -304,6 +346,8 @@ public final String minimumShouldMatch() { } /** + * Maximum number of positions allowed between matching tokens for phrases. + *

* API name: {@code phrase_slop} */ @Nullable @@ -312,13 +356,19 @@ public final Double phraseSlop() { } /** - * Required - API name: {@code query} + * Required - Query string you wish to parse and use for search. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * Analyzer used to convert quoted text in the query string into tokens. For + * quoted text, this parameter overrides the analyzer specified in the + * analyzer parameter. + *

* API name: {@code quote_analyzer} */ @Nullable @@ -327,6 +377,9 @@ public final String quoteAnalyzer() { } /** + * Suffix appended to quoted text in the query string. You can use this suffix + * to use a different analysis method for exact matches. + *

* API name: {@code quote_field_suffix} */ @Nullable @@ -335,6 +388,8 @@ public final String quoteFieldSuffix() { } /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ @Nullable @@ -343,6 +398,9 @@ public final String rewrite() { } /** + * How to combine the queries generated from the individual search terms in the + * resulting dis_max query. + *

* API name: {@code tie_breaker} */ @Nullable @@ -351,6 +409,9 @@ public final Double tieBreaker() { } /** + * Coordinated Universal Time (UTC) offset or IANA time zone used to convert + * date values in the query string to UTC. + *

* API name: {@code time_zone} */ @Nullable @@ -359,6 +420,8 @@ public final String timeZone() { } /** + * Determines how the query matches and scores documents. + *

* API name: {@code type} */ @Nullable @@ -580,6 +643,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private TextQueryType type; /** + * If true, the wildcard characters * and + * ? are allowed as the first character of the query string. + *

* API name: {@code allow_leading_wildcard} */ public final Builder allowLeadingWildcard(@Nullable Boolean value) { @@ -588,6 +654,8 @@ public final Builder allowLeadingWildcard(@Nullable Boolean value) { } /** + * Analyzer used to convert text in the query string into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -596,6 +664,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * If true, the query attempts to analyze wildcard terms in the + * query string. + *

* API name: {@code analyze_wildcard} */ public final Builder analyzeWildcard(@Nullable Boolean value) { @@ -604,6 +675,9 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** + * If true, match phrase queries are automatically created for + * multi-term synonyms. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { @@ -612,6 +686,11 @@ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { } /** + * Default field to search if no field is provided in the query string. Supports + * wildcards (*). Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code default_field} */ public final Builder defaultField(@Nullable String value) { @@ -620,6 +699,9 @@ public final Builder defaultField(@Nullable String value) { } /** + * Default boolean logic used to interpret text in the query string if no + * operators are specified. + *

* API name: {@code default_operator} */ public final Builder defaultOperator(@Nullable Operator value) { @@ -628,6 +710,9 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** + * If true, enable position increments in queries constructed from + * a query_string search. + *

* API name: {@code enable_position_increments} */ public final Builder enablePositionIncrements(@Nullable Boolean value) { @@ -644,6 +729,8 @@ public final Builder escape(@Nullable Boolean value) { } /** + * Array of fields to search. Supports wildcards (*). + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -654,6 +741,8 @@ public final Builder fields(List list) { } /** + * Array of fields to search. Supports wildcards (*). + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -664,6 +753,8 @@ public final Builder fields(String value, String... values) { } /** + * Maximum edit distance allowed for fuzzy matching. + *

* API name: {@code fuzziness} */ public final Builder fuzziness(@Nullable String value) { @@ -672,6 +763,8 @@ public final Builder fuzziness(@Nullable String value) { } /** + * Maximum number of terms to which the query expands for fuzzy matching. + *

* API name: {@code fuzzy_max_expansions} */ public final Builder fuzzyMaxExpansions(@Nullable Integer value) { @@ -680,6 +773,8 @@ public final Builder fuzzyMaxExpansions(@Nullable Integer value) { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code fuzzy_prefix_length} */ public final Builder fuzzyPrefixLength(@Nullable Integer value) { @@ -688,6 +783,8 @@ public final Builder fuzzyPrefixLength(@Nullable Integer value) { } /** + * Method used to rewrite the query. + *

* API name: {@code fuzzy_rewrite} */ public final Builder fuzzyRewrite(@Nullable String value) { @@ -696,6 +793,9 @@ public final Builder fuzzyRewrite(@Nullable String value) { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ public final Builder fuzzyTranspositions(@Nullable Boolean value) { @@ -704,6 +804,9 @@ public final Builder fuzzyTranspositions(@Nullable Boolean value) { } /** + * If true, format-based errors, such as providing a text value for + * a numeric field, are ignored. + *

* API name: {@code lenient} */ public final Builder lenient(@Nullable Boolean value) { @@ -712,6 +815,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * Maximum number of automaton states required for the query. + *

* API name: {@code max_determinized_states} */ public final Builder maxDeterminizedStates(@Nullable Integer value) { @@ -720,6 +825,8 @@ public final Builder maxDeterminizedStates(@Nullable Integer value) { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -728,6 +835,8 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** + * Maximum number of positions allowed between matching tokens for phrases. + *

* API name: {@code phrase_slop} */ public final Builder phraseSlop(@Nullable Double value) { @@ -736,7 +845,9 @@ public final Builder phraseSlop(@Nullable Double value) { } /** - * Required - API name: {@code query} + * Required - Query string you wish to parse and use for search. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -744,6 +855,10 @@ public final Builder query(String value) { } /** + * Analyzer used to convert quoted text in the query string into tokens. For + * quoted text, this parameter overrides the analyzer specified in the + * analyzer parameter. + *

* API name: {@code quote_analyzer} */ public final Builder quoteAnalyzer(@Nullable String value) { @@ -752,6 +867,9 @@ public final Builder quoteAnalyzer(@Nullable String value) { } /** + * Suffix appended to quoted text in the query string. You can use this suffix + * to use a different analysis method for exact matches. + *

* API name: {@code quote_field_suffix} */ public final Builder quoteFieldSuffix(@Nullable String value) { @@ -760,6 +878,8 @@ public final Builder quoteFieldSuffix(@Nullable String value) { } /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ public final Builder rewrite(@Nullable String value) { @@ -768,6 +888,9 @@ public final Builder rewrite(@Nullable String value) { } /** + * How to combine the queries generated from the individual search terms in the + * resulting dis_max query. + *

* API name: {@code tie_breaker} */ public final Builder tieBreaker(@Nullable Double value) { @@ -776,6 +899,9 @@ public final Builder tieBreaker(@Nullable Double value) { } /** + * Coordinated Universal Time (UTC) offset or IANA time zone used to convert + * date values in the query string to UTC. + *

* API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { @@ -784,6 +910,8 @@ public final Builder timeZone(@Nullable String value) { } /** + * Determines how the query matches and scores documents. + *

* API name: {@code type} */ public final Builder type(@Nullable TextQueryType value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java index a5dbfbc65..de209a9d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java @@ -110,6 +110,8 @@ public final String field() { } /** + * Greater than. + *

* API name: {@code gt} */ @Nullable @@ -118,6 +120,8 @@ public final JsonData gt() { } /** + * Greater than or equal to. + *

* API name: {@code gte} */ @Nullable @@ -126,6 +130,8 @@ public final JsonData gte() { } /** + * Less than. + *

* API name: {@code lt} */ @Nullable @@ -134,6 +140,8 @@ public final JsonData lt() { } /** + * Less than or equal to. + *

* API name: {@code lte} */ @Nullable @@ -158,6 +166,8 @@ public final String to() { } /** + * Date format used to convert date values in the query. + *

* API name: {@code format} */ @Nullable @@ -166,6 +176,9 @@ public final String format() { } /** + * Coordinated Universal Time (UTC) offset or IANA time zone used to convert + * date values in the query to UTC. + *

* API name: {@code time_zone} */ @Nullable @@ -264,6 +277,8 @@ public final Builder field(String value) { private String timeZone; /** + * Greater than. + *

* API name: {@code gt} */ public final Builder gt(@Nullable JsonData value) { @@ -272,6 +287,8 @@ public final Builder gt(@Nullable JsonData value) { } /** + * Greater than or equal to. + *

* API name: {@code gte} */ public final Builder gte(@Nullable JsonData value) { @@ -280,6 +297,8 @@ public final Builder gte(@Nullable JsonData value) { } /** + * Less than. + *

* API name: {@code lt} */ public final Builder lt(@Nullable JsonData value) { @@ -288,6 +307,8 @@ public final Builder lt(@Nullable JsonData value) { } /** + * Less than or equal to. + *

* API name: {@code lte} */ public final Builder lte(@Nullable JsonData value) { @@ -312,6 +333,8 @@ public final Builder to(@Nullable String value) { } /** + * Date format used to convert date values in the query. + *

* API name: {@code format} */ public final Builder format(@Nullable String value) { @@ -320,6 +343,9 @@ public final Builder format(@Nullable String value) { } /** + * Coordinated Universal Time (UTC) offset or IANA time zone used to convert + * date values in the query to UTC. + *

* API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java index 3bdd5688e..c92100207 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java @@ -57,6 +57,8 @@ protected RangeQueryBase(AbstractBuilder builder) { } /** + * Indicates how the range query matches values for range fields. + *

* API name: {@code relation} */ @Nullable @@ -81,6 +83,8 @@ public abstract static class AbstractBuilderrange fields. + *

* API name: {@code relation} */ public final BuilderT relation(@Nullable RangeRelation value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java index b00e65964..37ded879c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java @@ -35,10 +35,20 @@ */ @JsonpDeserializable public enum RangeRelation implements JsonEnum { + /** + * Matches documents with a range field value entirely within the query’s range. + */ Within("within"), + /** + * Matches documents with a range field value that entirely contains the query’s + * range. + */ Contains("contains"), + /** + * Matches documents with a range field value that intersects the query’s range. + */ Intersects("intersects"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java index 74e32a6f1..7f0e444ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java @@ -62,7 +62,9 @@ public static RankFeatureFunctionLogarithm of(Function + * API name: {@code scaling_factor} */ public final float scalingFactor() { return this.scalingFactor; @@ -101,7 +103,9 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder private Float scalingFactor; /** - * Required - API name: {@code scaling_factor} + * Required - Configurable scaling factor. + *

+ * API name: {@code scaling_factor} */ public final Builder scalingFactor(float value) { this.scalingFactor = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java index e7eba03e3..12cd34007 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java @@ -63,6 +63,8 @@ public static RankFeatureFunctionSaturation of(Function * API name: {@code pivot} */ @Nullable @@ -107,6 +109,8 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder private Float pivot; /** + * Configurable pivot value so that the result will be less than 0.5. + *

* API name: {@code pivot} */ public final Builder pivot(@Nullable Float value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java index 087dd6b8e..a71bb49dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java @@ -65,14 +65,18 @@ public static RankFeatureFunctionSigmoid of(Function + * API name: {@code pivot} */ public final float pivot() { return this.pivot; } /** - * Required - API name: {@code exponent} + * Required - Configurable Exponent. + *

+ * API name: {@code exponent} */ public final float exponent() { return this.exponent; @@ -116,7 +120,9 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder private Float exponent; /** - * Required - API name: {@code pivot} + * Required - Configurable pivot value so that the result will be less than 0.5. + *

+ * API name: {@code pivot} */ public final Builder pivot(float value) { this.pivot = value; @@ -124,7 +130,9 @@ public final Builder pivot(float value) { } /** - * Required - API name: {@code exponent} + * Required - Configurable Exponent. + *

+ * API name: {@code exponent} */ public final Builder exponent(float value) { this.exponent = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java index fa055a1f9..6a06f058f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java @@ -86,13 +86,19 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code field} + * Required - rank_feature or rank_features field used + * to boost relevance scores. + *

+ * API name: {@code field} */ public final String field() { return this.field; } /** + * Saturation function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code saturation} */ @Nullable @@ -101,6 +107,9 @@ public final RankFeatureFunctionSaturation saturation() { } /** + * Logarithmic function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code log} */ @Nullable @@ -109,6 +118,9 @@ public final RankFeatureFunctionLogarithm log() { } /** + * Linear function used to boost relevance scores based on the value of the rank + * feature field. + *

* API name: {@code linear} */ @Nullable @@ -117,6 +129,9 @@ public final RankFeatureFunctionLinear linear() { } /** + * Sigmoid function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code sigmoid} */ @Nullable @@ -175,7 +190,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private RankFeatureFunctionSigmoid sigmoid; /** - * Required - API name: {@code field} + * Required - rank_feature or rank_features field used + * to boost relevance scores. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; @@ -183,6 +201,9 @@ public final Builder field(String value) { } /** + * Saturation function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code saturation} */ public final Builder saturation(@Nullable RankFeatureFunctionSaturation value) { @@ -191,6 +212,9 @@ public final Builder saturation(@Nullable RankFeatureFunctionSaturation value) { } /** + * Saturation function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code saturation} */ public final Builder saturation( @@ -199,6 +223,9 @@ public final Builder saturation( } /** + * Logarithmic function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code log} */ public final Builder log(@Nullable RankFeatureFunctionLogarithm value) { @@ -207,6 +234,9 @@ public final Builder log(@Nullable RankFeatureFunctionLogarithm value) { } /** + * Logarithmic function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code log} */ public final Builder log( @@ -215,6 +245,9 @@ public final Builder log( } /** + * Linear function used to boost relevance scores based on the value of the rank + * feature field. + *

* API name: {@code linear} */ public final Builder linear(@Nullable RankFeatureFunctionLinear value) { @@ -223,6 +256,9 @@ public final Builder linear(@Nullable RankFeatureFunctionLinear value) { } /** + * Linear function used to boost relevance scores based on the value of the rank + * feature field. + *

* API name: {@code linear} */ public final Builder linear( @@ -231,6 +267,9 @@ public final Builder linear( } /** + * Sigmoid function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code sigmoid} */ public final Builder sigmoid(@Nullable RankFeatureFunctionSigmoid value) { @@ -239,6 +278,9 @@ public final Builder sigmoid(@Nullable RankFeatureFunctionSigmoid value) { } /** + * Sigmoid function used to boost relevance scores based on the value of the + * rank feature field. + *

* API name: {@code sigmoid} */ public final Builder sigmoid( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java index 199914360..5a835b1bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java @@ -98,6 +98,10 @@ public final String field() { } /** + * Allows case insensitive matching of the regular expression value with the + * indexed field values when set to true. When false, + * case sensitivity of matching depends on the underlying field’s mapping. + *

* API name: {@code case_insensitive} */ @Nullable @@ -106,6 +110,8 @@ public final Boolean caseInsensitive() { } /** + * Enables optional operators for the regular expression. + *

* API name: {@code flags} */ @Nullable @@ -114,6 +120,8 @@ public final String flags() { } /** + * Maximum number of automaton states required for the query. + *

* API name: {@code max_determinized_states} */ @Nullable @@ -122,6 +130,8 @@ public final Integer maxDeterminizedStates() { } /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ @Nullable @@ -130,7 +140,10 @@ public final String rewrite() { } /** - * Required - API name: {@code value} + * Required - Regular expression for terms you wish to find in the provided + * field. + *

+ * API name: {@code value} */ public final String value() { return this.value; @@ -199,6 +212,10 @@ public final Builder field(String value) { private String value; /** + * Allows case insensitive matching of the regular expression value with the + * indexed field values when set to true. When false, + * case sensitivity of matching depends on the underlying field’s mapping. + *

* API name: {@code case_insensitive} */ public final Builder caseInsensitive(@Nullable Boolean value) { @@ -207,6 +224,8 @@ public final Builder caseInsensitive(@Nullable Boolean value) { } /** + * Enables optional operators for the regular expression. + *

* API name: {@code flags} */ public final Builder flags(@Nullable String value) { @@ -215,6 +234,8 @@ public final Builder flags(@Nullable String value) { } /** + * Maximum number of automaton states required for the query. + *

* API name: {@code max_determinized_states} */ public final Builder maxDeterminizedStates(@Nullable Integer value) { @@ -223,6 +244,8 @@ public final Builder maxDeterminizedStates(@Nullable Integer value) { } /** + * Method used to rewrite the query. + *

* API name: {@code rewrite} */ public final Builder rewrite(@Nullable String value) { @@ -231,7 +254,10 @@ public final Builder rewrite(@Nullable String value) { } /** - * Required - API name: {@code value} + * Required - Regular expression for terms you wish to find in the provided + * field. + *

+ * API name: {@code value} */ public final Builder value(String value) { this.value = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java new file mode 100644 index 000000000..9010de4de --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java @@ -0,0 +1,191 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RuleQuery + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RuleQuery extends QueryBase implements QueryVariant { + private final Query organic; + + private final String rulesetId; + + private final JsonData matchCriteria; + + // --------------------------------------------------------------------------------------------- + + private RuleQuery(Builder builder) { + super(builder); + + this.organic = ApiTypeHelper.requireNonNull(builder.organic, this, "organic"); + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + this.matchCriteria = ApiTypeHelper.requireNonNull(builder.matchCriteria, this, "matchCriteria"); + + } + + public static RuleQuery of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.RuleQuery; + } + + /** + * Required - API name: {@code organic} + */ + public final Query organic() { + return this.organic; + } + + /** + * Required - API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + /** + * Required - API name: {@code match_criteria} + */ + public final JsonData matchCriteria() { + return this.matchCriteria; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("organic"); + this.organic.serialize(generator, mapper); + + generator.writeKey("ruleset_id"); + generator.write(this.rulesetId); + + generator.writeKey("match_criteria"); + this.matchCriteria.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RuleQuery}. + */ + + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + private Query organic; + + private String rulesetId; + + private JsonData matchCriteria; + + /** + * Required - API name: {@code organic} + */ + public final Builder organic(Query value) { + this.organic = value; + return this; + } + + /** + * Required - API name: {@code organic} + */ + public final Builder organic(Function> fn) { + return this.organic(fn.apply(new Query.Builder()).build()); + } + + /** + * Required - API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; + } + + /** + * Required - API name: {@code match_criteria} + */ + public final Builder matchCriteria(JsonData value) { + this.matchCriteria = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RuleQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RuleQuery build() { + _checkSingleUse(); + + return new RuleQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RuleQuery} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RuleQuery::setupRuleQueryDeserializer); + + protected static void setupRuleQueryDeserializer(ObjectDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::organic, Query._DESERIALIZER, "organic"); + op.add(Builder::rulesetId, JsonpDeserializer.stringDeserializer(), "ruleset_id"); + op.add(Builder::matchCriteria, JsonData._DESERIALIZER, "match_criteria"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java index 61e2f8b4a..ffeb0e9d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java @@ -69,7 +69,10 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code script} + * Required - Contains a script to run as a query. This script must return a + * boolean value, true or false. + *

+ * API name: {@code script} */ public final Script script() { return this.script; @@ -93,7 +96,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Script script; /** - * Required - API name: {@code script} + * Required - Contains a script to run as a query. This script must return a + * boolean value, true or false. + *

+ * API name: {@code script} */ public final Builder script(Script value) { this.script = value; @@ -101,7 +107,10 @@ public final Builder script(Script value) { } /** - * Required - API name: {@code script} + * Required - Contains a script to run as a query. This script must return a + * boolean value, true or false. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new Script.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java index 81a778db7..20ef7888e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java @@ -72,7 +72,9 @@ public FunctionScore.Kind _functionScoreKind() { } /** - * Required - API name: {@code script} + * Required - A script that computes a score. + *

+ * API name: {@code script} */ public final Script script() { return this.script; @@ -111,7 +113,9 @@ public static class Builder extends WithJsonObjectBuilderBase private Script script; /** - * Required - API name: {@code script} + * Required - A script that computes a score. + *

+ * API name: {@code script} */ public final Builder script(Script value) { this.script = value; @@ -119,7 +123,9 @@ public final Builder script(Script value) { } /** - * Required - API name: {@code script} + * Required - A script that computes a score. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new Script.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java index f4f8cf7df..b21608fe4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java @@ -78,6 +78,9 @@ public Query.Kind _queryKind() { } /** + * Documents with a score lower than this floating point number are excluded + * from the search results. + *

* API name: {@code min_score} */ @Nullable @@ -86,14 +89,20 @@ public final Float minScore() { } /** - * Required - API name: {@code query} + * Required - Query used to return documents. + *

+ * API name: {@code query} */ public final Query query() { return this.query; } /** - * Required - API name: {@code script} + * Required - Script used to compute the score of documents returned by the + * query. Important: final relevance scores from the script_score + * query cannot be negative. + *

+ * API name: {@code script} */ public final Script script() { return this.script; @@ -130,6 +139,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Script script; /** + * Documents with a score lower than this floating point number are excluded + * from the search results. + *

* API name: {@code min_score} */ public final Builder minScore(@Nullable Float value) { @@ -138,7 +150,9 @@ public final Builder minScore(@Nullable Float value) { } /** - * Required - API name: {@code query} + * Required - Query used to return documents. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -146,14 +160,20 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Query used to return documents. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** - * Required - API name: {@code script} + * Required - Script used to compute the score of documents returned by the + * query. Important: final relevance scores from the script_score + * query cannot be negative. + *

+ * API name: {@code script} */ public final Builder script(Script value) { this.script = value; @@ -161,7 +181,11 @@ public final Builder script(Script value) { } /** - * Required - API name: {@code script} + * Required - Script used to compute the score of documents returned by the + * query. Important: final relevance scores from the script_score + * query cannot be negative. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new Script.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java index 37d47c8ff..6762c4037 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java @@ -73,6 +73,8 @@ public static ShapeFieldQuery of(Function * API name: {@code indexed_shape} */ @Nullable @@ -81,6 +83,8 @@ public final FieldLookup indexedShape() { } /** + * Spatial relation between the query shape and the document shape. + *

* API name: {@code relation} */ @Nullable @@ -89,6 +93,9 @@ public final GeoShapeRelation relation() { } /** + * Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) + * format. + *

* API name: {@code shape} */ @Nullable @@ -146,6 +153,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private JsonData shape; /** + * Queries using a pre-indexed shape. + *

* API name: {@code indexed_shape} */ public final Builder indexedShape(@Nullable FieldLookup value) { @@ -154,6 +163,8 @@ public final Builder indexedShape(@Nullable FieldLookup value) { } /** + * Queries using a pre-indexed shape. + *

* API name: {@code indexed_shape} */ public final Builder indexedShape(Function> fn) { @@ -161,6 +172,8 @@ public final Builder indexedShape(Function * API name: {@code relation} */ public final Builder relation(@Nullable GeoShapeRelation value) { @@ -169,6 +182,9 @@ public final Builder relation(@Nullable GeoShapeRelation value) { } /** + * Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) + * format. + *

* API name: {@code shape} */ public final Builder shape(@Nullable JsonData value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java index 7bd6e2836..4d08da0ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java @@ -91,6 +91,9 @@ public final ShapeFieldQuery shape() { } /** + * When set to true the query ignores an unmapped field and will + * not match any documents. + *

* API name: {@code ignore_unmapped} */ @Nullable @@ -149,6 +152,9 @@ public final Builder shape(Functiontrue the query ignores an unmapped field and will + * not match any documents. + *

* API name: {@code ignore_unmapped} */ public final Builder ignoreUnmapped(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlag.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlag.java index 8fe3c5eed..9422125c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlag.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlag.java @@ -35,30 +35,75 @@ */ @JsonpDeserializable public enum SimpleQueryStringFlag implements JsonEnum { + /** + * Disables all operators. + */ None("NONE"), + /** + * Enables the + AND operator. + */ And("AND"), + /** + * Enables the \| OR operator. + */ Or("OR"), + /** + * Enables the - NOT operator. + */ Not("NOT"), + /** + * Enables the * prefix operator. + */ Prefix("PREFIX"), + /** + * Enables the " quotes operator used to search for phrases. + */ Phrase("PHRASE"), + /** + * Enables the ( and ) operators to control operator + * precedence. + */ Precedence("PRECEDENCE"), + /** + * Enables \ as an escape character. + */ Escape("ESCAPE"), + /** + * Enables whitespace as split characters. + */ Whitespace("WHITESPACE"), + /** + * Enables the ~N operator after a word, where N is an + * integer denoting the allowed edit distance for matching. + */ Fuzzy("FUZZY"), + /** + * Enables the ~N operator, after a phrase where N is + * the maximum number of positions allowed between matching tokens. Synonymous + * to SLOP. + */ Near("NEAR"), + /** + * Enables the ~N operator, after a phrase where N is + * maximum number of positions allowed between matching tokens. Synonymous to + * NEAR. + */ Slop("SLOP"), + /** + * Enables all optional operators. + */ All("ALL"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java index d4a9242ba..4696f624b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java @@ -120,6 +120,8 @@ public Query.Kind _queryKind() { } /** + * Analyzer used to convert text in the query string into tokens. + *

* API name: {@code analyzer} */ @Nullable @@ -128,6 +130,9 @@ public final String analyzer() { } /** + * If true, the query attempts to analyze wildcard terms in the + * query string. + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -136,6 +141,9 @@ public final Boolean analyzeWildcard() { } /** + * If true, the parser creates a match_phrase query for each + * multi-position token. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ @Nullable @@ -144,6 +152,9 @@ public final Boolean autoGenerateSynonymsPhraseQuery() { } /** + * Default boolean logic used to interpret text in the query string if no + * operators are specified. + *

* API name: {@code default_operator} */ @Nullable @@ -152,6 +163,12 @@ public final Operator defaultOperator() { } /** + * Array of fields you wish to search. Accepts wildcard expressions. You also + * can boost relevance scores for matches to particular fields using a caret + * (^) notation. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} */ public final List fields() { @@ -159,6 +176,8 @@ public final List fields() { } /** + * List of enabled operators for the simple query string syntax. + *

* API name: {@code flags} */ @Nullable @@ -167,6 +186,8 @@ public final SimpleQueryStringFlags flags() { } /** + * Maximum number of terms to which the query expands for fuzzy matching. + *

* API name: {@code fuzzy_max_expansions} */ @Nullable @@ -175,6 +196,8 @@ public final Integer fuzzyMaxExpansions() { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code fuzzy_prefix_length} */ @Nullable @@ -183,6 +206,9 @@ public final Integer fuzzyPrefixLength() { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ @Nullable @@ -191,6 +217,9 @@ public final Boolean fuzzyTranspositions() { } /** + * If true, format-based errors, such as providing a text value for + * a numeric field, are ignored. + *

* API name: {@code lenient} */ @Nullable @@ -199,6 +228,8 @@ public final Boolean lenient() { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ @Nullable @@ -207,13 +238,18 @@ public final String minimumShouldMatch() { } /** - * Required - API name: {@code query} + * Required - Query string in the simple query string syntax you wish to parse + * and use for search. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * Suffix appended to quoted text in the query string. + *

* API name: {@code quote_field_suffix} */ @Nullable @@ -342,6 +378,8 @@ public static class Builder extends QueryBase.AbstractBuilder private String quoteFieldSuffix; /** + * Analyzer used to convert text in the query string into tokens. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -350,6 +388,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * If true, the query attempts to analyze wildcard terms in the + * query string. + *

* API name: {@code analyze_wildcard} */ public final Builder analyzeWildcard(@Nullable Boolean value) { @@ -358,6 +399,9 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** + * If true, the parser creates a match_phrase query for each + * multi-position token. + *

* API name: {@code auto_generate_synonyms_phrase_query} */ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { @@ -366,6 +410,9 @@ public final Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { } /** + * Default boolean logic used to interpret text in the query string if no + * operators are specified. + *

* API name: {@code default_operator} */ public final Builder defaultOperator(@Nullable Operator value) { @@ -374,6 +421,12 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** + * Array of fields you wish to search. Accepts wildcard expressions. You also + * can boost relevance scores for matches to particular fields using a caret + * (^) notation. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -384,6 +437,12 @@ public final Builder fields(List list) { } /** + * Array of fields you wish to search. Accepts wildcard expressions. You also + * can boost relevance scores for matches to particular fields using a caret + * (^) notation. Defaults to the + * index.query.default_field index setting, which has a default + * value of *. + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -394,6 +453,8 @@ public final Builder fields(String value, String... values) { } /** + * List of enabled operators for the simple query string syntax. + *

* API name: {@code flags} */ public final Builder flags(@Nullable SimpleQueryStringFlags value) { @@ -402,6 +463,8 @@ public final Builder flags(@Nullable SimpleQueryStringFlags value) { } /** + * List of enabled operators for the simple query string syntax. + *

* API name: {@code flags} */ public final Builder flags(Function> fn) { @@ -409,6 +472,8 @@ public final Builder flags(Function * API name: {@code fuzzy_max_expansions} */ public final Builder fuzzyMaxExpansions(@Nullable Integer value) { @@ -417,6 +482,8 @@ public final Builder fuzzyMaxExpansions(@Nullable Integer value) { } /** + * Number of beginning characters left unchanged for fuzzy matching. + *

* API name: {@code fuzzy_prefix_length} */ public final Builder fuzzyPrefixLength(@Nullable Integer value) { @@ -425,6 +492,9 @@ public final Builder fuzzyPrefixLength(@Nullable Integer value) { } /** + * If true, edits for fuzzy matching include transpositions of two + * adjacent characters (for example, ab to ba). + *

* API name: {@code fuzzy_transpositions} */ public final Builder fuzzyTranspositions(@Nullable Boolean value) { @@ -433,6 +503,9 @@ public final Builder fuzzyTranspositions(@Nullable Boolean value) { } /** + * If true, format-based errors, such as providing a text value for + * a numeric field, are ignored. + *

* API name: {@code lenient} */ public final Builder lenient(@Nullable Boolean value) { @@ -441,6 +514,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * Minimum number of clauses that must match for a document to be returned. + *

* API name: {@code minimum_should_match} */ public final Builder minimumShouldMatch(@Nullable String value) { @@ -449,7 +524,10 @@ public final Builder minimumShouldMatch(@Nullable String value) { } /** - * Required - API name: {@code query} + * Required - Query string in the simple query string syntax you wish to parse + * and use for search. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -457,6 +535,8 @@ public final Builder query(String value) { } /** + * Suffix appended to quoted text in the query string. + *

* API name: {@code quote_field_suffix} */ public final Builder quoteFieldSuffix(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java index 2488b20db..016fd714c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java @@ -80,14 +80,20 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code big} */ public final SpanQuery big() { return this.big; } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code little} */ public final SpanQuery little() { return this.little; @@ -118,7 +124,10 @@ public static class Builder extends QueryBase.AbstractBuilder private SpanQuery little; /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code big} */ public final Builder big(SpanQuery value) { this.big = value; @@ -126,14 +135,20 @@ public final Builder big(SpanQuery value) { } /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code big} */ public final Builder big(Function> fn) { return this.big(fn.apply(new SpanQuery.Builder()).build()); } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code little} */ public final Builder little(SpanQuery value) { this.little = value; @@ -141,7 +156,10 @@ public final Builder little(SpanQuery value) { } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from big that + * contain matches from little are returned. + *

+ * API name: {@code little} */ public final Builder little(Function> fn) { return this.little(fn.apply(new SpanQuery.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java index 905bb8e45..8c5b06a1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java @@ -81,14 +81,18 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code end} + * Required - Controls the maximum end position permitted in a match. + *

+ * API name: {@code end} */ public final int end() { return this.end; } /** - * Required - API name: {@code match} + * Required - Can be any other span type query. + *

+ * API name: {@code match} */ public final SpanQuery match() { return this.match; @@ -117,7 +121,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private SpanQuery match; /** - * Required - API name: {@code end} + * Required - Controls the maximum end position permitted in a match. + *

+ * API name: {@code end} */ public final Builder end(int value) { this.end = value; @@ -125,7 +131,9 @@ public final Builder end(int value) { } /** - * Required - API name: {@code match} + * Required - Can be any other span type query. + *

+ * API name: {@code match} */ public final Builder match(SpanQuery value) { this.match = value; @@ -133,7 +141,9 @@ public final Builder match(SpanQuery value) { } /** - * Required - API name: {@code match} + * Required - Can be any other span type query. + *

+ * API name: {@code match} */ public final Builder match(Function> fn) { return this.match(fn.apply(new SpanQuery.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java index c7e92dbd8..ba31965f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java @@ -77,8 +77,9 @@ public Query.Kind _queryKind() { } /** - * Required - Should be a multi term query (one of wildcard, fuzzy, prefix, - * range or regexp query) + * Required - Should be a multi term query (one of wildcard, + * fuzzy, prefix, range, or + * regexp query). *

* API name: {@code match} */ @@ -106,8 +107,9 @@ public static class Builder extends QueryBase.AbstractBuilder private Query match; /** - * Required - Should be a multi term query (one of wildcard, fuzzy, prefix, - * range or regexp query) + * Required - Should be a multi term query (one of wildcard, + * fuzzy, prefix, range, or + * regexp query). *

* API name: {@code match} */ @@ -117,8 +119,9 @@ public final Builder match(Query value) { } /** - * Required - Should be a multi term query (one of wildcard, fuzzy, prefix, - * range or regexp query) + * Required - Should be a multi term query (one of wildcard, + * fuzzy, prefix, range, or + * regexp query). *

* API name: {@code match} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java index d83dba5e6..c1a171a11 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java @@ -88,13 +88,17 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} */ public final List clauses() { return this.clauses; } /** + * Controls whether matches are required to be in-order. + *

* API name: {@code in_order} */ @Nullable @@ -103,6 +107,8 @@ public final Boolean inOrder() { } /** + * Controls the maximum number of intervening unmatched positions permitted. + *

* API name: {@code slop} */ @Nullable @@ -152,7 +158,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Integer slop; /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds all elements of list to clauses. */ @@ -162,7 +170,9 @@ public final Builder clauses(List list) { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds one or more values to clauses. */ @@ -172,7 +182,9 @@ public final Builder clauses(SpanQuery value, SpanQuery... values) { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds a value to clauses using a builder lambda. */ @@ -181,6 +193,8 @@ public final Builder clauses(Function * API name: {@code in_order} */ public final Builder inOrder(@Nullable Boolean value) { @@ -189,6 +203,8 @@ public final Builder inOrder(@Nullable Boolean value) { } /** + * Controls the maximum number of intervening unmatched positions permitted. + *

* API name: {@code slop} */ public final Builder slop(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java index f71d3e78e..0d7b212a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java @@ -93,6 +93,10 @@ public Query.Kind _queryKind() { } /** + * The number of tokens from within the include span that can’t have overlap + * with the exclude span. Equivalent to setting both pre and + * post. + *

* API name: {@code dist} */ @Nullable @@ -101,20 +105,27 @@ public final Integer dist() { } /** - * Required - API name: {@code exclude} + * Required - Span query whose matches must not overlap those returned. + *

+ * API name: {@code exclude} */ public final SpanQuery exclude() { return this.exclude; } /** - * Required - API name: {@code include} + * Required - Span query whose matches are filtered. + *

+ * API name: {@code include} */ public final SpanQuery include() { return this.include; } /** + * The number of tokens after the include span that can’t have overlap with the + * exclude span. + *

* API name: {@code post} */ @Nullable @@ -123,6 +134,9 @@ public final Integer post() { } /** + * The number of tokens before the include span that can’t have overlap with the + * exclude span. + *

* API name: {@code pre} */ @Nullable @@ -178,6 +192,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Integer pre; /** + * The number of tokens from within the include span that can’t have overlap + * with the exclude span. Equivalent to setting both pre and + * post. + *

* API name: {@code dist} */ public final Builder dist(@Nullable Integer value) { @@ -186,7 +204,9 @@ public final Builder dist(@Nullable Integer value) { } /** - * Required - API name: {@code exclude} + * Required - Span query whose matches must not overlap those returned. + *

+ * API name: {@code exclude} */ public final Builder exclude(SpanQuery value) { this.exclude = value; @@ -194,14 +214,18 @@ public final Builder exclude(SpanQuery value) { } /** - * Required - API name: {@code exclude} + * Required - Span query whose matches must not overlap those returned. + *

+ * API name: {@code exclude} */ public final Builder exclude(Function> fn) { return this.exclude(fn.apply(new SpanQuery.Builder()).build()); } /** - * Required - API name: {@code include} + * Required - Span query whose matches are filtered. + *

+ * API name: {@code include} */ public final Builder include(SpanQuery value) { this.include = value; @@ -209,13 +233,18 @@ public final Builder include(SpanQuery value) { } /** - * Required - API name: {@code include} + * Required - Span query whose matches are filtered. + *

+ * API name: {@code include} */ public final Builder include(Function> fn) { return this.include(fn.apply(new SpanQuery.Builder()).build()); } /** + * The number of tokens after the include span that can’t have overlap with the + * exclude span. + *

* API name: {@code post} */ public final Builder post(@Nullable Integer value) { @@ -224,6 +253,9 @@ public final Builder post(@Nullable Integer value) { } /** + * The number of tokens before the include span that can’t have overlap with the + * exclude span. + *

* API name: {@code pre} */ public final Builder pre(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java index a90577a34..540906977 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java @@ -77,7 +77,9 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} */ public final List clauses() { return this.clauses; @@ -109,7 +111,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement private List clauses; /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds all elements of list to clauses. */ @@ -119,7 +123,9 @@ public final Builder clauses(List list) { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds one or more values to clauses. */ @@ -129,7 +135,9 @@ public final Builder clauses(SpanQuery value, SpanQuery... values) { } /** - * Required - API name: {@code clauses} + * Required - Array of one or more other span type queries. + *

+ * API name: {@code clauses} *

* Adds a value to clauses using a builder lambda. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java index 2569a1ffb..0d3533d91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java @@ -80,14 +80,20 @@ public Query.Kind _queryKind() { } /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code big} */ public final SpanQuery big() { return this.big; } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code little} */ public final SpanQuery little() { return this.little; @@ -116,7 +122,10 @@ public static class Builder extends QueryBase.AbstractBuilder implement private SpanQuery little; /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code big} */ public final Builder big(SpanQuery value) { this.big = value; @@ -124,14 +133,20 @@ public final Builder big(SpanQuery value) { } /** - * Required - API name: {@code big} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code big} */ public final Builder big(Function> fn) { return this.big(fn.apply(new SpanQuery.Builder()).build()); } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code little} */ public final Builder little(SpanQuery value) { this.little = value; @@ -139,7 +154,10 @@ public final Builder little(SpanQuery value) { } /** - * Required - API name: {@code little} + * Required - Can be any span query. Matching spans from little + * that are enclosed within big are returned. + *

+ * API name: {@code little} */ public final Builder little(Function> fn) { return this.little(fn.apply(new SpanQuery.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java index ec88d5871..18e786530 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java @@ -86,13 +86,19 @@ public final String field() { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final FieldValue value() { return this.value; } /** + * Allows ASCII case insensitive matching of the value with the indexed field + * values when set to true. When false, the case + * sensitivity of matching depends on the underlying field’s mapping. + *

* API name: {@code case_insensitive} */ @Nullable @@ -140,7 +146,9 @@ public final Builder field(String value) { private Boolean caseInsensitive; /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(FieldValue value) { this.value = value; @@ -148,14 +156,18 @@ public final Builder value(FieldValue value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(Function> fn) { return this.value(fn.apply(new FieldValue.Builder()).build()); } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(String value) { this.value = FieldValue.of(value); @@ -163,7 +175,9 @@ public final Builder value(String value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(long value) { this.value = FieldValue.of(value); @@ -171,7 +185,9 @@ public final Builder value(long value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(double value) { this.value = FieldValue.of(value); @@ -179,7 +195,9 @@ public final Builder value(double value) { } /** - * Required - API name: {@code value} + * Required - Term you wish to find in the provided field. + *

+ * API name: {@code value} */ public final Builder value(boolean value) { this.value = FieldValue.of(value); @@ -187,6 +205,10 @@ public final Builder value(boolean value) { } /** + * Allows ASCII case insensitive matching of the value with the indexed field + * values when set to true. When false, the case + * sensitivity of matching depends on the underlying field’s mapping. + *

* API name: {@code case_insensitive} */ public final Builder caseInsensitive(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java index 192296a45..c15a5cb29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java @@ -91,6 +91,9 @@ public final String field() { } /** + * Numeric field containing the number of matching terms required to return a + * document. + *

* API name: {@code minimum_should_match_field} */ @Nullable @@ -99,6 +102,9 @@ public final String minimumShouldMatchField() { } /** + * Custom script containing the number of matching terms required to return a + * document. + *

* API name: {@code minimum_should_match_script} */ @Nullable @@ -107,7 +113,9 @@ public final Script minimumShouldMatchScript() { } /** - * Required - API name: {@code terms} + * Required - Array of terms you wish to find in the provided field. + *

+ * API name: {@code terms} */ public final List terms() { return this.terms; @@ -168,6 +176,9 @@ public final Builder field(String value) { private List terms; /** + * Numeric field containing the number of matching terms required to return a + * document. + *

* API name: {@code minimum_should_match_field} */ public final Builder minimumShouldMatchField(@Nullable String value) { @@ -176,6 +187,9 @@ public final Builder minimumShouldMatchField(@Nullable String value) { } /** + * Custom script containing the number of matching terms required to return a + * document. + *

* API name: {@code minimum_should_match_script} */ public final Builder minimumShouldMatchScript(@Nullable Script value) { @@ -184,6 +198,9 @@ public final Builder minimumShouldMatchScript(@Nullable Script value) { } /** + * Custom script containing the number of matching terms required to return a + * document. + *

* API name: {@code minimum_should_match_script} */ public final Builder minimumShouldMatchScript(Function> fn) { @@ -191,7 +208,9 @@ public final Builder minimumShouldMatchScript(Function + * API name: {@code terms} *

* Adds all elements of list to terms. */ @@ -201,7 +220,9 @@ public final Builder terms(List list) { } /** - * Required - API name: {@code terms} + * Required - Array of terms you wish to find in the provided field. + *

+ * API name: {@code terms} *

* Adds one or more values to terms. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java index 5b3e7235d..f47f05b29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -46,7 +46,8 @@ */ @JsonpDeserializable public class TextExpansionQuery extends QueryBase implements QueryVariant { - private final String value; + // Single key dictionary + private final String field; private final String modelId; @@ -56,8 +57,8 @@ public class TextExpansionQuery extends QueryBase implements QueryVariant { private TextExpansionQuery(Builder builder) { super(builder); + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.value = ApiTypeHelper.requireNonNull(builder.value, this, "value"); this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.modelText = ApiTypeHelper.requireNonNull(builder.modelText, this, "modelText"); @@ -76,12 +77,10 @@ public Query.Kind _queryKind() { } /** - * Required - The name of the rank features field to search against - *

- * API name: {@code value} + * Required - The target field */ - public final String value() { - return this.value; + public final String field() { + return this.field; } /** @@ -103,17 +102,17 @@ public final String modelText() { } protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(this.field); super.serializeInternal(generator, mapper); - generator.writeKey("value"); - generator.write(this.value); - generator.writeKey("model_id"); generator.write(this.modelId); generator.writeKey("model_text"); generator.write(this.modelText); + generator.writeEnd(); + } // --------------------------------------------------------------------------------------------- @@ -125,22 +124,20 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - private String value; - - private String modelId; - - private String modelText; + private String field; /** - * Required - The name of the rank features field to search against - *

- * API name: {@code value} + * Required - The target field */ - public final Builder value(String value) { - this.value = value; + public final Builder field(String value) { + this.field = value; return this; } + private String modelId; + + private String modelText; + /** * Required - The text expansion NLP model to use *

@@ -189,11 +186,10 @@ public TextExpansionQuery build() { protected static void setupTextExpansionQueryDeserializer(ObjectDeserializer op) { QueryBase.setupQueryBaseDeserializer(op); - op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); op.add(Builder::modelText, JsonpDeserializer.stringDeserializer(), "model_text"); - op.shortcutProperty("value"); + op.setKey(Builder::field, JsonpDeserializer.stringDeserializer()); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java index a0a2f9e02..8b6fee9fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java @@ -35,16 +35,40 @@ */ @JsonpDeserializable public enum TextQueryType implements JsonEnum { + /** + * Finds documents that match any field, but uses the _score from + * the best field. + */ BestFields("best_fields"), + /** + * Finds documents that match any field and combines the _score + * from each field. + */ MostFields("most_fields"), + /** + * Treats fields with the same analyzer as though they were one big field. Looks + * for each word in any field. + */ CrossFields("cross_fields"), + /** + * Runs a match_phrase query on each field and uses the + * _score from the best field. + */ Phrase("phrase"), + /** + * Runs a match_phrase_prefix query on each field and uses the + * _score from the best field. + */ PhrasePrefix("phrase_prefix"), + /** + * Creates a match_bool_prefix query on each field and combines the + * _score from each field. + */ BoolPrefix("bool_prefix"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java index 34c92b4e0..dacdde926 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java @@ -107,7 +107,7 @@ public final Boolean caseInsensitive() { } /** - * Method used to rewrite the query + * Method used to rewrite the query. *

* API name: {@code rewrite} */ @@ -209,7 +209,7 @@ public final Builder caseInsensitive(@Nullable Boolean value) { } /** - * Method used to rewrite the query + * Method used to rewrite the query. *

* API name: {@code rewrite} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java index 3b5a03571..a31cebe61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java @@ -35,8 +35,14 @@ */ @JsonpDeserializable public enum ZeroTermsQuery implements JsonEnum { + /** + * Returns all documents, similar to a match_all query. + */ All("all"), + /** + * No documents are returned if the analyzer removes all tokens. + */ None("none"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java index fcc95e598..c253df989 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java @@ -97,9 +97,13 @@ public static MlTrainedModelsRequest of(Function_all string or when no trained models have been - * specified) + * Specifies what to do when the request: contains wildcard expressions and + * there are no models that match; contains the _all string or no + * identifiers and there are no matches; contains wildcard expressions and there + * are only partial matches. If true, the API returns an empty + * array when there are no matches and the subset of results when there are + * partial matches. If false, the API returns a 404 status code + * when there are no matches or only partial matches. *

* API name: {@code allow_no_match} */ @@ -109,7 +113,7 @@ public final Boolean allowNoMatch() { } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -119,7 +123,7 @@ public final Bytes bytes() { } /** - * skips a number of trained models + * Skips the specified number of transforms. *

* API name: {@code from} */ @@ -129,7 +133,7 @@ public final Integer from() { } /** - * Comma-separated list of column names to display + * A comma-separated list of column names to display. *

* API name: {@code h} */ @@ -138,7 +142,7 @@ public final List h() { } /** - * The ID of the trained models stats to fetch + * A unique identifier for the trained model. *

* API name: {@code model_id} */ @@ -148,7 +152,7 @@ public final String modelId() { } /** - * Comma-separated list of column names or column aliases to sort by + * A comma-separated list of column names or aliases used to sort the response. *

* API name: {@code s} */ @@ -157,7 +161,7 @@ public final List s() { } /** - * specifies a max number of trained models to get + * The maximum number of transforms to display. *

* API name: {@code size} */ @@ -197,9 +201,13 @@ public static class Builder extends CatRequestBase.AbstractBuilder private Integer size; /** - * Whether to ignore if a wildcard expression matches no trained models. (This - * includes _all string or when no trained models have been - * specified) + * Specifies what to do when the request: contains wildcard expressions and + * there are no models that match; contains the _all string or no + * identifiers and there are no matches; contains wildcard expressions and there + * are only partial matches. If true, the API returns an empty + * array when there are no matches and the subset of results when there are + * partial matches. If false, the API returns a 404 status code + * when there are no matches or only partial matches. *

* API name: {@code allow_no_match} */ @@ -209,7 +217,7 @@ public final Builder allowNoMatch(@Nullable Boolean value) { } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -219,7 +227,7 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * skips a number of trained models + * Skips the specified number of transforms. *

* API name: {@code from} */ @@ -229,7 +237,7 @@ public final Builder from(@Nullable Integer value) { } /** - * Comma-separated list of column names to display + * A comma-separated list of column names to display. *

* API name: {@code h} *

@@ -241,7 +249,7 @@ public final Builder h(List list) { } /** - * Comma-separated list of column names to display + * A comma-separated list of column names to display. *

* API name: {@code h} *

@@ -253,7 +261,7 @@ public final Builder h(CatTrainedModelsColumn value, CatTrainedModelsColumn... v } /** - * The ID of the trained models stats to fetch + * A unique identifier for the trained model. *

* API name: {@code model_id} */ @@ -263,7 +271,7 @@ public final Builder modelId(@Nullable String value) { } /** - * Comma-separated list of column names or column aliases to sort by + * A comma-separated list of column names or aliases used to sort the response. *

* API name: {@code s} *

@@ -275,7 +283,7 @@ public final Builder s(List list) { } /** - * Comma-separated list of column names or column aliases to sort by + * A comma-separated list of column names or aliases used to sort the response. *

* API name: {@code s} *

@@ -287,7 +295,7 @@ public final Builder s(CatTrainedModelsColumn value, CatTrainedModelsColumn... v } /** - * specifies a max number of trained models to get + * The maximum number of transforms to display. *

* API name: {@code size} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java index 8d3bf363d..2a75522ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java @@ -46,7 +46,11 @@ // typedef: cat.segments.Request /** - * Provides low-level information about the segments in the shards of an index. + * Returns low-level information about the Lucene segments in index shards. For + * data streams, the API returns information about the backing indices. + * IMPORTANT: cat APIs are only intended for human consumption using the command + * line or Kibana console. They are not intended for use by applications. For + * application consumption, use the index segments API. * * @see API * specification @@ -72,7 +76,7 @@ public static SegmentsRequest of(Function * API name: {@code bytes} */ @@ -82,7 +86,9 @@ public final Bytes bytes() { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -106,7 +112,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List index; /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -116,7 +122,9 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -128,7 +136,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java index 940cff0ed..597406086 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java @@ -46,7 +46,10 @@ // typedef: cat.shards.Request /** - * Provides a detailed view of shard allocation on nodes. + * Returns information about the shards in a cluster. For data streams, the API + * returns information about the backing indices. IMPORTANT: cat APIs are only + * intended for human consumption using the command line or Kibana console. They + * are not intended for use by applications. * * @see API * specification @@ -72,7 +75,7 @@ public static ShardsRequest of(Function> f } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -82,7 +85,9 @@ public final Bytes bytes() { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -106,7 +111,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List index; /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -116,7 +121,9 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -128,7 +135,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to limit the returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java index 7f2a3280e..f1f152c5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java @@ -46,7 +46,11 @@ // typedef: cat.snapshots.Request /** - * Returns all snapshots in a specific repository. + * Returns information about the snapshots stored in one or more repositories. A + * snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: + * cat APIs are only intended for human consumption using the command line or + * Kibana console. They are not intended for use by applications. For + * application consumption, use the get snapshot API. * * @see API * specification @@ -72,7 +76,8 @@ public static SnapshotsRequest of(Functiontrue, the response does not include information from + * unavailable snapshots. *

* API name: {@code ignore_unavailable} */ @@ -82,7 +87,9 @@ public final Boolean ignoreUnavailable() { } /** - * Name of repository from which to fetch the snapshot information + * A comma-separated list of snapshot repositories used to limit the request. + * Accepts wildcard expressions. _all returns all repositories. If + * any repository fails during the request, Elasticsearch returns an error. *

* API name: {@code repository} */ @@ -106,7 +113,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List repository; /** - * Set to true to ignore unavailable snapshots + * If true, the response does not include information from + * unavailable snapshots. *

* API name: {@code ignore_unavailable} */ @@ -116,7 +124,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Name of repository from which to fetch the snapshot information + * A comma-separated list of snapshot repositories used to limit the request. + * Accepts wildcard expressions. _all returns all repositories. If + * any repository fails during the request, Elasticsearch returns an error. *

* API name: {@code repository} *

@@ -128,7 +138,9 @@ public final Builder repository(List list) { } /** - * Name of repository from which to fetch the snapshot information + * A comma-separated list of snapshot repositories used to limit the request. + * Accepts wildcard expressions. _all returns all repositories. If + * any repository fails during the request, Elasticsearch returns an error. *

* API name: {@code repository} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java index c4c5f18ba..98404b933 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java @@ -34,7 +34,6 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; -import java.lang.Long; import java.lang.String; import java.util.HashMap; import java.util.List; @@ -47,8 +46,10 @@ // typedef: cat.tasks.Request /** - * Returns information about the tasks currently executing on one or more nodes - * in the cluster. + * Returns information about tasks currently executing in the cluster. + * IMPORTANT: cat APIs are only intended for human consumption using the command + * line or Kibana console. They are not intended for use by applications. For + * application consumption, use the task management API. * * @see API * specification @@ -63,7 +64,7 @@ public class TasksRequest extends CatRequestBase { private final List nodeId; @Nullable - private final Long parentTask; + private final String parentTaskId; // --------------------------------------------------------------------------------------------- @@ -72,7 +73,7 @@ private TasksRequest(Builder builder) { this.actions = ApiTypeHelper.unmodifiable(builder.actions); this.detailed = builder.detailed; this.nodeId = ApiTypeHelper.unmodifiable(builder.nodeId); - this.parentTask = builder.parentTask; + this.parentTaskId = builder.parentTaskId; } @@ -81,8 +82,7 @@ public static TasksRequest of(Function> fn) } /** - * A comma-separated list of actions that should be returned. Leave empty to - * return all. + * The task action names, which are used to limit the response. *

* API name: {@code actions} */ @@ -91,7 +91,8 @@ public final List actions() { } /** - * Return detailed task information (default: false) + * If true, the response includes detailed information about shard + * recoveries. *

* API name: {@code detailed} */ @@ -101,6 +102,8 @@ public final Boolean detailed() { } /** + * Unique node identifiers, which are used to limit the response. + *

* API name: {@code node_id} */ public final List nodeId() { @@ -108,11 +111,13 @@ public final List nodeId() { } /** - * API name: {@code parent_task} + * The parent task identifier, which is used to limit the response. + *

+ * API name: {@code parent_task_id} */ @Nullable - public final Long parentTask() { - return this.parentTask; + public final String parentTaskId() { + return this.parentTaskId; } // --------------------------------------------------------------------------------------------- @@ -132,11 +137,10 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl private List nodeId; @Nullable - private Long parentTask; + private String parentTaskId; /** - * A comma-separated list of actions that should be returned. Leave empty to - * return all. + * The task action names, which are used to limit the response. *

* API name: {@code actions} *

@@ -148,8 +152,7 @@ public final Builder actions(List list) { } /** - * A comma-separated list of actions that should be returned. Leave empty to - * return all. + * The task action names, which are used to limit the response. *

* API name: {@code actions} *

@@ -161,7 +164,8 @@ public final Builder actions(String value, String... values) { } /** - * Return detailed task information (default: false) + * If true, the response includes detailed information about shard + * recoveries. *

* API name: {@code detailed} */ @@ -171,6 +175,8 @@ public final Builder detailed(@Nullable Boolean value) { } /** + * Unique node identifiers, which are used to limit the response. + *

* API name: {@code node_id} *

* Adds all elements of list to nodeId. @@ -181,6 +187,8 @@ public final Builder nodeId(List list) { } /** + * Unique node identifiers, which are used to limit the response. + *

* API name: {@code node_id} *

* Adds one or more values to nodeId. @@ -191,10 +199,12 @@ public final Builder nodeId(String value, String... values) { } /** - * API name: {@code parent_task} + * The parent task identifier, which is used to limit the response. + *

+ * API name: {@code parent_task_id} */ - public final Builder parentTask(@Nullable Long value) { - this.parentTask = value; + public final Builder parentTaskId(@Nullable String value) { + this.parentTaskId = value; return this; } @@ -240,12 +250,12 @@ public TasksRequest build() { request -> { Map params = new HashMap<>(); params.put("format", "json"); + if (request.parentTaskId != null) { + params.put("parent_task_id", request.parentTaskId); + } if (request.detailed != null) { params.put("detailed", String.valueOf(request.detailed)); } - if (request.parentTask != null) { - params.put("parent_task", String.valueOf(request.parentTask)); - } if (ApiTypeHelper.isDefined(request.actions)) { params.put("actions", request.actions.stream().map(v -> v).collect(Collectors.joining(","))); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java index dc3033872..f3d71ab49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java @@ -42,7 +42,11 @@ // typedef: cat.templates.Request /** - * Returns information about existing templates. + * Returns information about index templates in a cluster. You can use index + * templates to apply index settings and field mappings to new indices at + * creation. IMPORTANT: cat APIs are only intended for human consumption using + * the command line or Kibana console. They are not intended for use by + * applications. For application consumption, use the get index template API. * * @see API * specification @@ -65,7 +69,8 @@ public static TemplatesRequest of(Function * API name: {@code name} */ @@ -87,7 +92,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder private String name; /** - * A pattern that returned template names must match + * The name of the template to return. Accepts wildcard expressions. If omitted, + * all templates are returned. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java index 4edc14763..ac1305566 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java @@ -46,8 +46,11 @@ // typedef: cat.thread_pool.Request /** - * Returns cluster-wide thread pool statistics per node. By default the active, - * queue and rejected statistics are returned for all thread pools. + * Returns thread pool statistics for each node in a cluster. Returned + * information includes all built-in thread pools and custom thread pools. + * IMPORTANT: cat APIs are only intended for human consumption using the command + * line or Kibana console. They are not intended for use by applications. For + * application consumption, use the nodes info API. * * @see API * specification @@ -73,8 +76,8 @@ public static ThreadPoolRequest of(Function * API name: {@code thread_pool_patterns} */ @@ -83,7 +86,7 @@ public final List threadPoolPatterns() { } /** - * Unit used to display time values. + * The unit used to display time values. *

* API name: {@code time} */ @@ -108,8 +111,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder private TimeUnit time; /** - * List of thread pool names used to limit the request. Accepts wildcard - * expressions. + * A comma-separated list of thread pool names used to limit the request. + * Accepts wildcard expressions. *

* API name: {@code thread_pool_patterns} *

@@ -121,8 +124,8 @@ public final Builder threadPoolPatterns(List list) { } /** - * List of thread pool names used to limit the request. Accepts wildcard - * expressions. + * A comma-separated list of thread pool names used to limit the request. + * Accepts wildcard expressions. *

* API name: {@code thread_pool_patterns} *

@@ -134,7 +137,7 @@ public final Builder threadPoolPatterns(String value, String... values) { } /** - * Unit used to display time values. + * The unit used to display time values. *

* API name: {@code time} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java index 5546c83ee..c734a711a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java @@ -97,8 +97,13 @@ public static TransformsRequest of(Function_all string or when no transforms have been specified) + * Specifies what to do when the request: contains wildcard expressions and + * there are no transforms that match; contains the _all string or + * no identifiers and there are no matches; contains wildcard expressions and + * there are only partial matches. If true, it returns an empty + * transforms array when there are no matches and the subset of results when + * there are partial matches. If false, the request returns a 404 + * status code when there are no matches or only partial matches. *

* API name: {@code allow_no_match} */ @@ -108,7 +113,7 @@ public final Boolean allowNoMatch() { } /** - * skips a number of transform configs, defaults to 0 + * Skips the specified number of transforms. *

* API name: {@code from} */ @@ -137,7 +142,7 @@ public final List s() { } /** - * specifies a max number of transforms to get, defaults to 100 + * The maximum number of transforms to obtain. *

* API name: {@code size} */ @@ -147,7 +152,7 @@ public final Integer size() { } /** - * Unit used to display time values. + * The unit used to display time values. *

* API name: {@code time} */ @@ -157,8 +162,8 @@ public final TimeUnit time() { } /** - * The id of the transform for which to get stats. '_all' or '*' implies all - * transforms + * A transform identifier or a wildcard expression. If you do not specify one of + * these options, the API returns information for all transforms. *

* API name: {@code transform_id} */ @@ -198,8 +203,13 @@ public static class Builder extends CatRequestBase.AbstractBuilder private String transformId; /** - * Whether to ignore if a wildcard expression matches no transforms. (This - * includes _all string or when no transforms have been specified) + * Specifies what to do when the request: contains wildcard expressions and + * there are no transforms that match; contains the _all string or + * no identifiers and there are no matches; contains wildcard expressions and + * there are only partial matches. If true, it returns an empty + * transforms array when there are no matches and the subset of results when + * there are partial matches. If false, the request returns a 404 + * status code when there are no matches or only partial matches. *

* API name: {@code allow_no_match} */ @@ -209,7 +219,7 @@ public final Builder allowNoMatch(@Nullable Boolean value) { } /** - * skips a number of transform configs, defaults to 0 + * Skips the specified number of transforms. *

* API name: {@code from} */ @@ -269,7 +279,7 @@ public final Builder s(CatTransformColumn value, CatTransformColumn... values) { } /** - * specifies a max number of transforms to get, defaults to 100 + * The maximum number of transforms to obtain. *

* API name: {@code size} */ @@ -279,7 +289,7 @@ public final Builder size(@Nullable Integer value) { } /** - * Unit used to display time values. + * The unit used to display time values. *

* API name: {@code time} */ @@ -289,8 +299,8 @@ public final Builder time(@Nullable TimeUnit value) { } /** - * The id of the transform for which to get stats. '_all' or '*' implies all - * transforms + * A transform identifier or a wildcard expression. If you do not specify one of + * these options, the API returns information for all transforms. *

* API name: {@code transform_id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java index eea62b199..213fe29fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java @@ -124,7 +124,7 @@ public static DataFrameAnalyticsRecord of(Function * API name: {@code id} */ @@ -134,7 +134,7 @@ public final String id() { } /** - * analysis type + * The type of analysis that the job performs. *

* API name: {@code type} */ @@ -144,7 +144,7 @@ public final String type() { } /** - * job creation time + * The time when the job was created. *

* API name: {@code create_time} */ @@ -154,7 +154,7 @@ public final String createTime() { } /** - * the version of Elasticsearch when the analytics was created + * The version of Elasticsearch when the job was created. *

* API name: {@code version} */ @@ -164,7 +164,7 @@ public final String version() { } /** - * source index + * The name of the source index. *

* API name: {@code source_index} */ @@ -174,7 +174,7 @@ public final String sourceIndex() { } /** - * destination index + * The name of the destination index. *

* API name: {@code dest_index} */ @@ -184,7 +184,7 @@ public final String destIndex() { } /** - * description + * A description of the job. *

* API name: {@code description} */ @@ -194,7 +194,8 @@ public final String description() { } /** - * model memory limit + * The approximate maximum amount of memory resources that are permitted for the + * job. *

* API name: {@code model_memory_limit} */ @@ -204,7 +205,7 @@ public final String modelMemoryLimit() { } /** - * job state + * The current status of the job. *

* API name: {@code state} */ @@ -214,7 +215,7 @@ public final String state() { } /** - * failure reason + * Messages about the reason why the job failed. *

* API name: {@code failure_reason} */ @@ -224,7 +225,7 @@ public final String failureReason() { } /** - * progress + * The progress report for the job by phase. *

* API name: {@code progress} */ @@ -234,7 +235,7 @@ public final String progress() { } /** - * why the job is or is not assigned to a node + * Messages related to the selection of a node. *

* API name: {@code assignment_explanation} */ @@ -244,7 +245,7 @@ public final String assignmentExplanation() { } /** - * id of the assigned node + * The unique identifier of the assigned node. *

* API name: {@code node.id} */ @@ -254,7 +255,7 @@ public final String nodeId() { } /** - * name of the assigned node + * The name of the assigned node. *

* API name: {@code node.name} */ @@ -264,7 +265,7 @@ public final String nodeName() { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. *

* API name: {@code node.ephemeral_id} */ @@ -274,7 +275,7 @@ public final String nodeEphemeralId() { } /** - * network address of the assigned node + * The network address of the assigned node. *

* API name: {@code node.address} */ @@ -440,7 +441,7 @@ public static class Builder extends WithJsonObjectBuilderBase private String nodeAddress; /** - * the id + * The identifier for the job. *

* API name: {@code id} */ @@ -450,7 +451,7 @@ public final Builder id(@Nullable String value) { } /** - * analysis type + * The type of analysis that the job performs. *

* API name: {@code type} */ @@ -460,7 +461,7 @@ public final Builder type(@Nullable String value) { } /** - * job creation time + * The time when the job was created. *

* API name: {@code create_time} */ @@ -470,7 +471,7 @@ public final Builder createTime(@Nullable String value) { } /** - * the version of Elasticsearch when the analytics was created + * The version of Elasticsearch when the job was created. *

* API name: {@code version} */ @@ -480,7 +481,7 @@ public final Builder version(@Nullable String value) { } /** - * source index + * The name of the source index. *

* API name: {@code source_index} */ @@ -490,7 +491,7 @@ public final Builder sourceIndex(@Nullable String value) { } /** - * destination index + * The name of the destination index. *

* API name: {@code dest_index} */ @@ -500,7 +501,7 @@ public final Builder destIndex(@Nullable String value) { } /** - * description + * A description of the job. *

* API name: {@code description} */ @@ -510,7 +511,8 @@ public final Builder description(@Nullable String value) { } /** - * model memory limit + * The approximate maximum amount of memory resources that are permitted for the + * job. *

* API name: {@code model_memory_limit} */ @@ -520,7 +522,7 @@ public final Builder modelMemoryLimit(@Nullable String value) { } /** - * job state + * The current status of the job. *

* API name: {@code state} */ @@ -530,7 +532,7 @@ public final Builder state(@Nullable String value) { } /** - * failure reason + * Messages about the reason why the job failed. *

* API name: {@code failure_reason} */ @@ -540,7 +542,7 @@ public final Builder failureReason(@Nullable String value) { } /** - * progress + * The progress report for the job by phase. *

* API name: {@code progress} */ @@ -550,7 +552,7 @@ public final Builder progress(@Nullable String value) { } /** - * why the job is or is not assigned to a node + * Messages related to the selection of a node. *

* API name: {@code assignment_explanation} */ @@ -560,7 +562,7 @@ public final Builder assignmentExplanation(@Nullable String value) { } /** - * id of the assigned node + * The unique identifier of the assigned node. *

* API name: {@code node.id} */ @@ -570,7 +572,7 @@ public final Builder nodeId(@Nullable String value) { } /** - * name of the assigned node + * The name of the assigned node. *

* API name: {@code node.name} */ @@ -580,7 +582,7 @@ public final Builder nodeName(@Nullable String value) { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. *

* API name: {@code node.ephemeral_id} */ @@ -590,7 +592,7 @@ public final Builder nodeEphemeralId(@Nullable String value) { } /** - * network address of the assigned node + * The network address of the assigned node. *

* API name: {@code node.address} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java index 4408a948f..ef262d424 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java @@ -109,7 +109,7 @@ public static DatafeedsRecord of(Function * API name: {@code id} */ @@ -119,7 +119,7 @@ public final String id() { } /** - * the datafeed state + * The status of the datafeed. *

* API name: {@code state} */ @@ -129,7 +129,8 @@ public final DatafeedState state() { } /** - * why the datafeed is or is not assigned to a node + * For started datafeeds only, contains messages relating to the selection of a + * node. *

* API name: {@code assignment_explanation} */ @@ -139,7 +140,7 @@ public final String assignmentExplanation() { } /** - * bucket count + * The number of buckets processed. *

* API name: {@code buckets.count} */ @@ -149,7 +150,7 @@ public final String bucketsCount() { } /** - * number of searches ran by the datafeed + * The number of searches run by the datafeed. *

* API name: {@code search.count} */ @@ -159,7 +160,7 @@ public final String searchCount() { } /** - * the total search time + * The total time the datafeed spent searching, in milliseconds. *

* API name: {@code search.time} */ @@ -169,7 +170,7 @@ public final String searchTime() { } /** - * the average search time per bucket (millisecond) + * The average search time per bucket, in milliseconds. *

* API name: {@code search.bucket_avg} */ @@ -179,7 +180,7 @@ public final String searchBucketAvg() { } /** - * the exponential average search time per hour (millisecond) + * The exponential average search time per hour, in milliseconds. *

* API name: {@code search.exp_avg_hour} */ @@ -189,7 +190,8 @@ public final String searchExpAvgHour() { } /** - * id of the assigned node + * The unique identifier of the assigned node. For started datafeeds only, this + * information pertains to the node upon which the datafeed is started. *

* API name: {@code node.id} */ @@ -199,7 +201,8 @@ public final String nodeId() { } /** - * name of the assigned node + * The name of the assigned node. For started datafeeds only, this information + * pertains to the node upon which the datafeed is started. *

* API name: {@code node.name} */ @@ -209,7 +212,8 @@ public final String nodeName() { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. For started datafeeds only, + * this information pertains to the node upon which the datafeed is started. *

* API name: {@code node.ephemeral_id} */ @@ -219,7 +223,8 @@ public final String nodeEphemeralId() { } /** - * network address of the assigned node + * The network address of the assigned node. For started datafeeds only, this + * information pertains to the node upon which the datafeed is started. *

* API name: {@code node.address} */ @@ -350,7 +355,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String nodeAddress; /** - * the datafeed_id + * The datafeed identifier. *

* API name: {@code id} */ @@ -360,7 +365,7 @@ public final Builder id(@Nullable String value) { } /** - * the datafeed state + * The status of the datafeed. *

* API name: {@code state} */ @@ -370,7 +375,8 @@ public final Builder state(@Nullable DatafeedState value) { } /** - * why the datafeed is or is not assigned to a node + * For started datafeeds only, contains messages relating to the selection of a + * node. *

* API name: {@code assignment_explanation} */ @@ -380,7 +386,7 @@ public final Builder assignmentExplanation(@Nullable String value) { } /** - * bucket count + * The number of buckets processed. *

* API name: {@code buckets.count} */ @@ -390,7 +396,7 @@ public final Builder bucketsCount(@Nullable String value) { } /** - * number of searches ran by the datafeed + * The number of searches run by the datafeed. *

* API name: {@code search.count} */ @@ -400,7 +406,7 @@ public final Builder searchCount(@Nullable String value) { } /** - * the total search time + * The total time the datafeed spent searching, in milliseconds. *

* API name: {@code search.time} */ @@ -410,7 +416,7 @@ public final Builder searchTime(@Nullable String value) { } /** - * the average search time per bucket (millisecond) + * The average search time per bucket, in milliseconds. *

* API name: {@code search.bucket_avg} */ @@ -420,7 +426,7 @@ public final Builder searchBucketAvg(@Nullable String value) { } /** - * the exponential average search time per hour (millisecond) + * The exponential average search time per hour, in milliseconds. *

* API name: {@code search.exp_avg_hour} */ @@ -430,7 +436,8 @@ public final Builder searchExpAvgHour(@Nullable String value) { } /** - * id of the assigned node + * The unique identifier of the assigned node. For started datafeeds only, this + * information pertains to the node upon which the datafeed is started. *

* API name: {@code node.id} */ @@ -440,7 +447,8 @@ public final Builder nodeId(@Nullable String value) { } /** - * name of the assigned node + * The name of the assigned node. For started datafeeds only, this information + * pertains to the node upon which the datafeed is started. *

* API name: {@code node.name} */ @@ -450,7 +458,8 @@ public final Builder nodeName(@Nullable String value) { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. For started datafeeds only, + * this information pertains to the node upon which the datafeed is started. *

* API name: {@code node.ephemeral_id} */ @@ -460,7 +469,8 @@ public final Builder nodeEphemeralId(@Nullable String value) { } /** - * network address of the assigned node + * The network address of the assigned node. For started datafeeds only, this + * information pertains to the node upon which the datafeed is started. *

* API name: {@code node.address} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java index 60a2f24fa..b3094fd46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java @@ -302,7 +302,7 @@ public static JobsRecord of(Function> fn) { } /** - * the job_id + * The anomaly detection job identifier. *

* API name: {@code id} */ @@ -312,7 +312,7 @@ public final String id() { } /** - * the job state + * The status of the anomaly detection job. *

* API name: {@code state} */ @@ -322,7 +322,7 @@ public final JobState state() { } /** - * the amount of time the job has been opened + * For open jobs only, the amount of time the job has been opened. *

* API name: {@code opened_time} */ @@ -332,7 +332,8 @@ public final String openedTime() { } /** - * why the job is or is not assigned to a node + * For open anomaly detection jobs only, contains messages relating to the + * selection of a node to run the job. *

* API name: {@code assignment_explanation} */ @@ -342,7 +343,11 @@ public final String assignmentExplanation() { } /** - * number of processed records + * The number of input documents that have been processed by the anomaly + * detection job. This value includes documents with missing fields, since they + * are nonetheless analyzed. If you use datafeeds and have aggregations in your + * search query, the processed_record_count is the number of + * aggregation results processed, not the number of Elasticsearch documents. *

* API name: {@code data.processed_records} */ @@ -352,7 +357,10 @@ public final String dataProcessedRecords() { } /** - * number of processed fields + * The total number of fields in all the documents that have been processed by + * the anomaly detection job. Only fields that are specified in the detector + * configuration object contribute to this count. The timestamp is not included + * in this count. *

* API name: {@code data.processed_fields} */ @@ -362,7 +370,7 @@ public final String dataProcessedFields() { } /** - * total input bytes + * The number of bytes of input data posted to the anomaly detection job. *

* API name: {@code data.input_bytes} */ @@ -372,7 +380,7 @@ public final String dataInputBytes() { } /** - * total record count + * The number of input documents posted to the anomaly detection job. *

* API name: {@code data.input_records} */ @@ -382,7 +390,10 @@ public final String dataInputRecords() { } /** - * total field count + * The total number of fields in input documents posted to the anomaly detection + * job. This count includes fields that are not used in the analysis. However, + * be aware that if you are using a datafeed, it extracts only the required + * fields from the documents it retrieves before posting them to the job. *

* API name: {@code data.input_fields} */ @@ -392,7 +403,8 @@ public final String dataInputFields() { } /** - * number of records with invalid dates + * The number of input documents with either a missing date field or a date that + * could not be parsed. *

* API name: {@code data.invalid_dates} */ @@ -402,7 +414,12 @@ public final String dataInvalidDates() { } /** - * number of records with missing fields + * The number of input documents that are missing a field that the anomaly + * detection job is configured to analyze. Input documents with missing fields + * are still processed because it is possible that not all fields are missing. + * If you are using datafeeds or posting data to the job in JSON format, a high + * missing_field_count is often not an indication of data issues. + * It is not necessarily a cause for concern. *

* API name: {@code data.missing_fields} */ @@ -412,7 +429,12 @@ public final String dataMissingFields() { } /** - * number of records handled out of order + * The number of input documents that have a timestamp chronologically preceding + * the start of the current anomaly detection bucket offset by the latency + * window. This information is applicable only when you provide data to the + * anomaly detection job by using the post data API. These out of order + * documents are discarded, since jobs require time series data to be in + * ascending chronological order. *

* API name: {@code data.out_of_order_timestamps} */ @@ -422,7 +444,10 @@ public final String dataOutOfOrderTimestamps() { } /** - * number of empty buckets + * The number of buckets which did not contain any data. If your data contains + * many empty buckets, consider increasing your bucket_span or + * using functions that are tolerant to gaps in data such as mean, + * non_null_sum or non_zero_count. *

* API name: {@code data.empty_buckets} */ @@ -432,7 +457,9 @@ public final String dataEmptyBuckets() { } /** - * number of sparse buckets + * The number of buckets that contained few data points compared to the expected + * number of data points. If your data contains many sparse buckets, consider + * using a longer bucket_span. *

* API name: {@code data.sparse_buckets} */ @@ -442,7 +469,7 @@ public final String dataSparseBuckets() { } /** - * total bucket count + * The total number of buckets processed. *

* API name: {@code data.buckets} */ @@ -452,7 +479,7 @@ public final String dataBuckets() { } /** - * earliest record time + * The timestamp of the earliest chronologically input document. *

* API name: {@code data.earliest_record} */ @@ -462,7 +489,7 @@ public final String dataEarliestRecord() { } /** - * latest record time + * The timestamp of the latest chronologically input document. *

* API name: {@code data.latest_record} */ @@ -472,7 +499,7 @@ public final String dataLatestRecord() { } /** - * last time data was seen + * The timestamp at which data was last analyzed, according to server time. *

* API name: {@code data.last} */ @@ -482,7 +509,7 @@ public final String dataLast() { } /** - * last time an empty bucket occurred + * The timestamp of the last bucket that did not contain any data. *

* API name: {@code data.last_empty_bucket} */ @@ -492,7 +519,7 @@ public final String dataLastEmptyBucket() { } /** - * last time a sparse bucket occurred + * The timestamp of the last bucket that was considered sparse. *

* API name: {@code data.last_sparse_bucket} */ @@ -502,7 +529,9 @@ public final String dataLastSparseBucket() { } /** - * model size + * The number of bytes of memory used by the models. This is the maximum value + * since the last time the model was persisted. If the job is closed, this value + * indicates the latest size. *

* API name: {@code model.bytes} */ @@ -512,7 +541,7 @@ public final String modelBytes() { } /** - * current memory status + * The status of the mathematical models. *

* API name: {@code model.memory_status} */ @@ -522,7 +551,8 @@ public final MemoryStatus modelMemoryStatus() { } /** - * how much the model has exceeded the limit + * The number of bytes over the high limit for memory usage at the last + * allocation failure. *

* API name: {@code model.bytes_exceeded} */ @@ -532,7 +562,7 @@ public final String modelBytesExceeded() { } /** - * model memory limit + * The upper limit for model memory usage, checked on increasing values. *

* API name: {@code model.memory_limit} */ @@ -542,7 +572,8 @@ public final String modelMemoryLimit() { } /** - * count of 'by' fields + * The number of by field values that were analyzed by the models. + * This value is cumulative for all detectors in the job. *

* API name: {@code model.by_fields} */ @@ -552,7 +583,8 @@ public final String modelByFields() { } /** - * count of 'over' fields + * The number of over field values that were analyzed by the + * models. This value is cumulative for all detectors in the job. *

* API name: {@code model.over_fields} */ @@ -562,7 +594,8 @@ public final String modelOverFields() { } /** - * count of 'partition' fields + * The number of partition field values that were analyzed by the + * models. This value is cumulative for all detectors in the job. *

* API name: {@code model.partition_fields} */ @@ -572,7 +605,9 @@ public final String modelPartitionFields() { } /** - * number of bucket allocation failures + * The number of buckets for which new entities in incoming data were not + * processed due to insufficient model memory. This situation is also signified + * by a hard_limit: memory_status property value. *

* API name: {@code model.bucket_allocation_failures} */ @@ -582,7 +617,7 @@ public final String modelBucketAllocationFailures() { } /** - * current categorization status + * The status of categorization for the job. *

* API name: {@code model.categorization_status} */ @@ -592,7 +627,7 @@ public final CategorizationStatus modelCategorizationStatus() { } /** - * count of categorized documents + * The number of documents that have had a field categorized. *

* API name: {@code model.categorized_doc_count} */ @@ -602,7 +637,7 @@ public final String modelCategorizedDocCount() { } /** - * count of categories + * The number of categories created by categorization. *

* API name: {@code model.total_category_count} */ @@ -612,7 +647,7 @@ public final String modelTotalCategoryCount() { } /** - * count of frequent categories + * The number of categories that match more than 1% of categorized documents. *

* API name: {@code model.frequent_category_count} */ @@ -622,7 +657,7 @@ public final String modelFrequentCategoryCount() { } /** - * count of rare categories + * The number of categories that match just one categorized document. *

* API name: {@code model.rare_category_count} */ @@ -632,7 +667,10 @@ public final String modelRareCategoryCount() { } /** - * count of dead categories + * The number of categories created by categorization that will never be + * assigned again because another category’s definition makes it a superset of + * the dead category. Dead categories are a side effect of the way + * categorization has no prior training. *

* API name: {@code model.dead_category_count} */ @@ -642,7 +680,11 @@ public final String modelDeadCategoryCount() { } /** - * count of failed categories + * The number of times that categorization wanted to create a new category but + * couldn’t because the job had hit its model_memory_limit. This + * count does not track which specific categories failed to be created. + * Therefore you cannot use this value to determine the number of unique + * categories that were missed. *

* API name: {@code model.failed_category_count} */ @@ -652,7 +694,7 @@ public final String modelFailedCategoryCount() { } /** - * when the model stats were gathered + * The timestamp when the model stats were gathered, according to server time. *

* API name: {@code model.log_time} */ @@ -662,7 +704,7 @@ public final String modelLogTime() { } /** - * the time of the last record when the model stats were gathered + * The timestamp of the last record when the model stats were gathered. *

* API name: {@code model.timestamp} */ @@ -672,7 +714,8 @@ public final String modelTimestamp() { } /** - * total number of forecasts + * The number of individual forecasts currently available for the job. A value + * of one or more indicates that forecasts exist. *

* API name: {@code forecasts.total} */ @@ -682,7 +725,8 @@ public final String forecastsTotal() { } /** - * minimum memory used by forecasts + * The minimum memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.min} */ @@ -692,7 +736,8 @@ public final String forecastsMemoryMin() { } /** - * maximum memory used by forecasts + * The maximum memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.max} */ @@ -702,7 +747,8 @@ public final String forecastsMemoryMax() { } /** - * average memory used by forecasts + * The average memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.avg} */ @@ -712,7 +758,8 @@ public final String forecastsMemoryAvg() { } /** - * total memory used by all forecasts + * The total memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.total} */ @@ -722,7 +769,8 @@ public final String forecastsMemoryTotal() { } /** - * minimum record count for forecasts + * The minimum number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.min} */ @@ -732,7 +780,8 @@ public final String forecastsRecordsMin() { } /** - * maximum record count for forecasts + * The maximum number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.max} */ @@ -742,7 +791,8 @@ public final String forecastsRecordsMax() { } /** - * average record count for forecasts + * The average number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.avg} */ @@ -752,7 +802,8 @@ public final String forecastsRecordsAvg() { } /** - * total record count for all forecasts + * The total number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.total} */ @@ -762,7 +813,8 @@ public final String forecastsRecordsTotal() { } /** - * minimum runtime for forecasts + * The minimum runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.min} */ @@ -772,7 +824,8 @@ public final String forecastsTimeMin() { } /** - * maximum run time for forecasts + * The maximum runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.max} */ @@ -782,7 +835,8 @@ public final String forecastsTimeMax() { } /** - * average runtime for all forecasts (milliseconds) + * The average runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.avg} */ @@ -792,7 +846,8 @@ public final String forecastsTimeAvg() { } /** - * total runtime for all forecasts + * The total runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.total} */ @@ -802,7 +857,7 @@ public final String forecastsTimeTotal() { } /** - * id of the assigned node + * The uniqe identifier of the assigned node. *

* API name: {@code node.id} */ @@ -812,7 +867,7 @@ public final String nodeId() { } /** - * name of the assigned node + * The name of the assigned node. *

* API name: {@code node.name} */ @@ -822,7 +877,7 @@ public final String nodeName() { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. *

* API name: {@code node.ephemeral_id} */ @@ -832,7 +887,7 @@ public final String nodeEphemeralId() { } /** - * network address of the assigned node + * The network address of the assigned node. *

* API name: {@code node.address} */ @@ -842,7 +897,7 @@ public final String nodeAddress() { } /** - * bucket count + * The number of bucket results produced by the job. *

* API name: {@code buckets.count} */ @@ -852,7 +907,7 @@ public final String bucketsCount() { } /** - * total bucket processing time + * The sum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.total} */ @@ -862,7 +917,7 @@ public final String bucketsTimeTotal() { } /** - * minimum bucket processing time + * The minimum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.min} */ @@ -872,7 +927,7 @@ public final String bucketsTimeMin() { } /** - * maximum bucket processing time + * The maximum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.max} */ @@ -882,7 +937,8 @@ public final String bucketsTimeMax() { } /** - * exponential average bucket processing time (milliseconds) + * The exponential moving average of all bucket processing times, in + * milliseconds. *

* API name: {@code buckets.time.exp_avg} */ @@ -892,7 +948,8 @@ public final String bucketsTimeExpAvg() { } /** - * exponential average bucket processing time by hour (milliseconds) + * The exponential moving average of bucket processing times calculated in a one + * hour time window, in milliseconds. *

* API name: {@code buckets.time.exp_avg_hour} */ @@ -1405,7 +1462,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String bucketsTimeExpAvgHour; /** - * the job_id + * The anomaly detection job identifier. *

* API name: {@code id} */ @@ -1415,7 +1472,7 @@ public final Builder id(@Nullable String value) { } /** - * the job state + * The status of the anomaly detection job. *

* API name: {@code state} */ @@ -1425,7 +1482,7 @@ public final Builder state(@Nullable JobState value) { } /** - * the amount of time the job has been opened + * For open jobs only, the amount of time the job has been opened. *

* API name: {@code opened_time} */ @@ -1435,7 +1492,8 @@ public final Builder openedTime(@Nullable String value) { } /** - * why the job is or is not assigned to a node + * For open anomaly detection jobs only, contains messages relating to the + * selection of a node to run the job. *

* API name: {@code assignment_explanation} */ @@ -1445,7 +1503,11 @@ public final Builder assignmentExplanation(@Nullable String value) { } /** - * number of processed records + * The number of input documents that have been processed by the anomaly + * detection job. This value includes documents with missing fields, since they + * are nonetheless analyzed. If you use datafeeds and have aggregations in your + * search query, the processed_record_count is the number of + * aggregation results processed, not the number of Elasticsearch documents. *

* API name: {@code data.processed_records} */ @@ -1455,7 +1517,10 @@ public final Builder dataProcessedRecords(@Nullable String value) { } /** - * number of processed fields + * The total number of fields in all the documents that have been processed by + * the anomaly detection job. Only fields that are specified in the detector + * configuration object contribute to this count. The timestamp is not included + * in this count. *

* API name: {@code data.processed_fields} */ @@ -1465,7 +1530,7 @@ public final Builder dataProcessedFields(@Nullable String value) { } /** - * total input bytes + * The number of bytes of input data posted to the anomaly detection job. *

* API name: {@code data.input_bytes} */ @@ -1475,7 +1540,7 @@ public final Builder dataInputBytes(@Nullable String value) { } /** - * total record count + * The number of input documents posted to the anomaly detection job. *

* API name: {@code data.input_records} */ @@ -1485,7 +1550,10 @@ public final Builder dataInputRecords(@Nullable String value) { } /** - * total field count + * The total number of fields in input documents posted to the anomaly detection + * job. This count includes fields that are not used in the analysis. However, + * be aware that if you are using a datafeed, it extracts only the required + * fields from the documents it retrieves before posting them to the job. *

* API name: {@code data.input_fields} */ @@ -1495,7 +1563,8 @@ public final Builder dataInputFields(@Nullable String value) { } /** - * number of records with invalid dates + * The number of input documents with either a missing date field or a date that + * could not be parsed. *

* API name: {@code data.invalid_dates} */ @@ -1505,7 +1574,12 @@ public final Builder dataInvalidDates(@Nullable String value) { } /** - * number of records with missing fields + * The number of input documents that are missing a field that the anomaly + * detection job is configured to analyze. Input documents with missing fields + * are still processed because it is possible that not all fields are missing. + * If you are using datafeeds or posting data to the job in JSON format, a high + * missing_field_count is often not an indication of data issues. + * It is not necessarily a cause for concern. *

* API name: {@code data.missing_fields} */ @@ -1515,7 +1589,12 @@ public final Builder dataMissingFields(@Nullable String value) { } /** - * number of records handled out of order + * The number of input documents that have a timestamp chronologically preceding + * the start of the current anomaly detection bucket offset by the latency + * window. This information is applicable only when you provide data to the + * anomaly detection job by using the post data API. These out of order + * documents are discarded, since jobs require time series data to be in + * ascending chronological order. *

* API name: {@code data.out_of_order_timestamps} */ @@ -1525,7 +1604,10 @@ public final Builder dataOutOfOrderTimestamps(@Nullable String value) { } /** - * number of empty buckets + * The number of buckets which did not contain any data. If your data contains + * many empty buckets, consider increasing your bucket_span or + * using functions that are tolerant to gaps in data such as mean, + * non_null_sum or non_zero_count. *

* API name: {@code data.empty_buckets} */ @@ -1535,7 +1617,9 @@ public final Builder dataEmptyBuckets(@Nullable String value) { } /** - * number of sparse buckets + * The number of buckets that contained few data points compared to the expected + * number of data points. If your data contains many sparse buckets, consider + * using a longer bucket_span. *

* API name: {@code data.sparse_buckets} */ @@ -1545,7 +1629,7 @@ public final Builder dataSparseBuckets(@Nullable String value) { } /** - * total bucket count + * The total number of buckets processed. *

* API name: {@code data.buckets} */ @@ -1555,7 +1639,7 @@ public final Builder dataBuckets(@Nullable String value) { } /** - * earliest record time + * The timestamp of the earliest chronologically input document. *

* API name: {@code data.earliest_record} */ @@ -1565,7 +1649,7 @@ public final Builder dataEarliestRecord(@Nullable String value) { } /** - * latest record time + * The timestamp of the latest chronologically input document. *

* API name: {@code data.latest_record} */ @@ -1575,7 +1659,7 @@ public final Builder dataLatestRecord(@Nullable String value) { } /** - * last time data was seen + * The timestamp at which data was last analyzed, according to server time. *

* API name: {@code data.last} */ @@ -1585,7 +1669,7 @@ public final Builder dataLast(@Nullable String value) { } /** - * last time an empty bucket occurred + * The timestamp of the last bucket that did not contain any data. *

* API name: {@code data.last_empty_bucket} */ @@ -1595,7 +1679,7 @@ public final Builder dataLastEmptyBucket(@Nullable String value) { } /** - * last time a sparse bucket occurred + * The timestamp of the last bucket that was considered sparse. *

* API name: {@code data.last_sparse_bucket} */ @@ -1605,7 +1689,9 @@ public final Builder dataLastSparseBucket(@Nullable String value) { } /** - * model size + * The number of bytes of memory used by the models. This is the maximum value + * since the last time the model was persisted. If the job is closed, this value + * indicates the latest size. *

* API name: {@code model.bytes} */ @@ -1615,7 +1701,7 @@ public final Builder modelBytes(@Nullable String value) { } /** - * current memory status + * The status of the mathematical models. *

* API name: {@code model.memory_status} */ @@ -1625,7 +1711,8 @@ public final Builder modelMemoryStatus(@Nullable MemoryStatus value) { } /** - * how much the model has exceeded the limit + * The number of bytes over the high limit for memory usage at the last + * allocation failure. *

* API name: {@code model.bytes_exceeded} */ @@ -1635,7 +1722,7 @@ public final Builder modelBytesExceeded(@Nullable String value) { } /** - * model memory limit + * The upper limit for model memory usage, checked on increasing values. *

* API name: {@code model.memory_limit} */ @@ -1645,7 +1732,8 @@ public final Builder modelMemoryLimit(@Nullable String value) { } /** - * count of 'by' fields + * The number of by field values that were analyzed by the models. + * This value is cumulative for all detectors in the job. *

* API name: {@code model.by_fields} */ @@ -1655,7 +1743,8 @@ public final Builder modelByFields(@Nullable String value) { } /** - * count of 'over' fields + * The number of over field values that were analyzed by the + * models. This value is cumulative for all detectors in the job. *

* API name: {@code model.over_fields} */ @@ -1665,7 +1754,8 @@ public final Builder modelOverFields(@Nullable String value) { } /** - * count of 'partition' fields + * The number of partition field values that were analyzed by the + * models. This value is cumulative for all detectors in the job. *

* API name: {@code model.partition_fields} */ @@ -1675,7 +1765,9 @@ public final Builder modelPartitionFields(@Nullable String value) { } /** - * number of bucket allocation failures + * The number of buckets for which new entities in incoming data were not + * processed due to insufficient model memory. This situation is also signified + * by a hard_limit: memory_status property value. *

* API name: {@code model.bucket_allocation_failures} */ @@ -1685,7 +1777,7 @@ public final Builder modelBucketAllocationFailures(@Nullable String value) { } /** - * current categorization status + * The status of categorization for the job. *

* API name: {@code model.categorization_status} */ @@ -1695,7 +1787,7 @@ public final Builder modelCategorizationStatus(@Nullable CategorizationStatus va } /** - * count of categorized documents + * The number of documents that have had a field categorized. *

* API name: {@code model.categorized_doc_count} */ @@ -1705,7 +1797,7 @@ public final Builder modelCategorizedDocCount(@Nullable String value) { } /** - * count of categories + * The number of categories created by categorization. *

* API name: {@code model.total_category_count} */ @@ -1715,7 +1807,7 @@ public final Builder modelTotalCategoryCount(@Nullable String value) { } /** - * count of frequent categories + * The number of categories that match more than 1% of categorized documents. *

* API name: {@code model.frequent_category_count} */ @@ -1725,7 +1817,7 @@ public final Builder modelFrequentCategoryCount(@Nullable String value) { } /** - * count of rare categories + * The number of categories that match just one categorized document. *

* API name: {@code model.rare_category_count} */ @@ -1735,7 +1827,10 @@ public final Builder modelRareCategoryCount(@Nullable String value) { } /** - * count of dead categories + * The number of categories created by categorization that will never be + * assigned again because another category’s definition makes it a superset of + * the dead category. Dead categories are a side effect of the way + * categorization has no prior training. *

* API name: {@code model.dead_category_count} */ @@ -1745,7 +1840,11 @@ public final Builder modelDeadCategoryCount(@Nullable String value) { } /** - * count of failed categories + * The number of times that categorization wanted to create a new category but + * couldn’t because the job had hit its model_memory_limit. This + * count does not track which specific categories failed to be created. + * Therefore you cannot use this value to determine the number of unique + * categories that were missed. *

* API name: {@code model.failed_category_count} */ @@ -1755,7 +1854,7 @@ public final Builder modelFailedCategoryCount(@Nullable String value) { } /** - * when the model stats were gathered + * The timestamp when the model stats were gathered, according to server time. *

* API name: {@code model.log_time} */ @@ -1765,7 +1864,7 @@ public final Builder modelLogTime(@Nullable String value) { } /** - * the time of the last record when the model stats were gathered + * The timestamp of the last record when the model stats were gathered. *

* API name: {@code model.timestamp} */ @@ -1775,7 +1874,8 @@ public final Builder modelTimestamp(@Nullable String value) { } /** - * total number of forecasts + * The number of individual forecasts currently available for the job. A value + * of one or more indicates that forecasts exist. *

* API name: {@code forecasts.total} */ @@ -1785,7 +1885,8 @@ public final Builder forecastsTotal(@Nullable String value) { } /** - * minimum memory used by forecasts + * The minimum memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.min} */ @@ -1795,7 +1896,8 @@ public final Builder forecastsMemoryMin(@Nullable String value) { } /** - * maximum memory used by forecasts + * The maximum memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.max} */ @@ -1805,7 +1907,8 @@ public final Builder forecastsMemoryMax(@Nullable String value) { } /** - * average memory used by forecasts + * The average memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.avg} */ @@ -1815,7 +1918,8 @@ public final Builder forecastsMemoryAvg(@Nullable String value) { } /** - * total memory used by all forecasts + * The total memory usage in bytes for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.memory.total} */ @@ -1825,7 +1929,8 @@ public final Builder forecastsMemoryTotal(@Nullable String value) { } /** - * minimum record count for forecasts + * The minimum number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.min} */ @@ -1835,7 +1940,8 @@ public final Builder forecastsRecordsMin(@Nullable String value) { } /** - * maximum record count for forecasts + * The maximum number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.max} */ @@ -1845,7 +1951,8 @@ public final Builder forecastsRecordsMax(@Nullable String value) { } /** - * average record count for forecasts + * The average number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.avg} */ @@ -1855,7 +1962,8 @@ public final Builder forecastsRecordsAvg(@Nullable String value) { } /** - * total record count for all forecasts + * The total number of model_forecast documents written for + * forecasts related to the anomaly detection job. *

* API name: {@code forecasts.records.total} */ @@ -1865,7 +1973,8 @@ public final Builder forecastsRecordsTotal(@Nullable String value) { } /** - * minimum runtime for forecasts + * The minimum runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.min} */ @@ -1875,7 +1984,8 @@ public final Builder forecastsTimeMin(@Nullable String value) { } /** - * maximum run time for forecasts + * The maximum runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.max} */ @@ -1885,7 +1995,8 @@ public final Builder forecastsTimeMax(@Nullable String value) { } /** - * average runtime for all forecasts (milliseconds) + * The average runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.avg} */ @@ -1895,7 +2006,8 @@ public final Builder forecastsTimeAvg(@Nullable String value) { } /** - * total runtime for all forecasts + * The total runtime in milliseconds for forecasts related to the anomaly + * detection job. *

* API name: {@code forecasts.time.total} */ @@ -1905,7 +2017,7 @@ public final Builder forecastsTimeTotal(@Nullable String value) { } /** - * id of the assigned node + * The uniqe identifier of the assigned node. *

* API name: {@code node.id} */ @@ -1915,7 +2027,7 @@ public final Builder nodeId(@Nullable String value) { } /** - * name of the assigned node + * The name of the assigned node. *

* API name: {@code node.name} */ @@ -1925,7 +2037,7 @@ public final Builder nodeName(@Nullable String value) { } /** - * ephemeral id of the assigned node + * The ephemeral identifier of the assigned node. *

* API name: {@code node.ephemeral_id} */ @@ -1935,7 +2047,7 @@ public final Builder nodeEphemeralId(@Nullable String value) { } /** - * network address of the assigned node + * The network address of the assigned node. *

* API name: {@code node.address} */ @@ -1945,7 +2057,7 @@ public final Builder nodeAddress(@Nullable String value) { } /** - * bucket count + * The number of bucket results produced by the job. *

* API name: {@code buckets.count} */ @@ -1955,7 +2067,7 @@ public final Builder bucketsCount(@Nullable String value) { } /** - * total bucket processing time + * The sum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.total} */ @@ -1965,7 +2077,7 @@ public final Builder bucketsTimeTotal(@Nullable String value) { } /** - * minimum bucket processing time + * The minimum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.min} */ @@ -1975,7 +2087,7 @@ public final Builder bucketsTimeMin(@Nullable String value) { } /** - * maximum bucket processing time + * The maximum of all bucket processing times, in milliseconds. *

* API name: {@code buckets.time.max} */ @@ -1985,7 +2097,8 @@ public final Builder bucketsTimeMax(@Nullable String value) { } /** - * exponential average bucket processing time (milliseconds) + * The exponential moving average of all bucket processing times, in + * milliseconds. *

* API name: {@code buckets.time.exp_avg} */ @@ -1995,7 +2108,8 @@ public final Builder bucketsTimeExpAvg(@Nullable String value) { } /** - * exponential average bucket processing time by hour (milliseconds) + * The exponential moving average of bucket processing times calculated in a one + * hour time window, in milliseconds. *

* API name: {@code buckets.time.exp_avg_hour} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java index 84f9261a2..59bcf7112 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java @@ -133,7 +133,7 @@ public static TrainedModelsRecord of(Function * API name: {@code id} */ @@ -143,7 +143,7 @@ public final String id() { } /** - * who created the model + * Information about the creator of the model. *

* API name: {@code created_by} */ @@ -153,7 +153,7 @@ public final String createdBy() { } /** - * the estimated heap size to keep the model in memory + * The estimated heap size to keep the model in memory. *

* API name: {@code heap_size} */ @@ -163,7 +163,8 @@ public final String heapSize() { } /** - * the estimated number of operations to use the model + * The estimated number of operations to use the model. This number helps to + * measure the computational complexity of the model. *

* API name: {@code operations} */ @@ -173,7 +174,7 @@ public final String operations() { } /** - * The license level of the model + * The license level of the model. *

* API name: {@code license} */ @@ -183,7 +184,7 @@ public final String license() { } /** - * The time the model was created + * The time the model was created. *

* API name: {@code create_time} */ @@ -193,7 +194,7 @@ public final DateTime createTime() { } /** - * The version of Elasticsearch when the model was created + * The version of Elasticsearch when the model was created. *

* API name: {@code version} */ @@ -203,7 +204,7 @@ public final String version() { } /** - * The model description + * A description of the model. *

* API name: {@code description} */ @@ -213,7 +214,7 @@ public final String description() { } /** - * The number of pipelines referencing the model + * The number of pipelines that are referencing the model. *

* API name: {@code ingest.pipelines} */ @@ -223,7 +224,7 @@ public final String ingestPipelines() { } /** - * The total number of docs processed by the model + * The total number of documents that are processed by the model. *

* API name: {@code ingest.count} */ @@ -233,7 +234,7 @@ public final String ingestCount() { } /** - * The total time spent processing docs with this model + * The total time spent processing documents with thie model. *

* API name: {@code ingest.time} */ @@ -243,7 +244,7 @@ public final String ingestTime() { } /** - * The total documents currently being handled by the model + * The total number of documents that are currently being handled by the model. *

* API name: {@code ingest.current} */ @@ -253,7 +254,7 @@ public final String ingestCurrent() { } /** - * The total count of failed ingest attempts with this model + * The total number of failed ingest attempts with the model. *

* API name: {@code ingest.failed} */ @@ -263,8 +264,8 @@ public final String ingestFailed() { } /** - * The data frame analytics config id that created the model (if still - * available) + * The identifier for the data frame analytics job that created the model. Only + * displayed if the job is still available. *

* API name: {@code data_frame.id} */ @@ -274,7 +275,7 @@ public final String dataFrameId() { } /** - * The time the data frame analytics config was created + * The time the data frame analytics job was created. *

* API name: {@code data_frame.create_time} */ @@ -284,7 +285,7 @@ public final String dataFrameCreateTime() { } /** - * The source index used to train in the data frame analysis + * The source index used to train in the data frame analysis. *

* API name: {@code data_frame.source_index} */ @@ -294,7 +295,7 @@ public final String dataFrameSourceIndex() { } /** - * The analysis used by the data frame to build the model + * The analysis used by the data frame to build the model. *

* API name: {@code data_frame.analysis} */ @@ -483,7 +484,7 @@ public static class Builder extends WithJsonObjectBuilderBase private String type; /** - * the trained model id + * The model identifier. *

* API name: {@code id} */ @@ -493,7 +494,7 @@ public final Builder id(@Nullable String value) { } /** - * who created the model + * Information about the creator of the model. *

* API name: {@code created_by} */ @@ -503,7 +504,7 @@ public final Builder createdBy(@Nullable String value) { } /** - * the estimated heap size to keep the model in memory + * The estimated heap size to keep the model in memory. *

* API name: {@code heap_size} */ @@ -513,7 +514,8 @@ public final Builder heapSize(@Nullable String value) { } /** - * the estimated number of operations to use the model + * The estimated number of operations to use the model. This number helps to + * measure the computational complexity of the model. *

* API name: {@code operations} */ @@ -523,7 +525,7 @@ public final Builder operations(@Nullable String value) { } /** - * The license level of the model + * The license level of the model. *

* API name: {@code license} */ @@ -533,7 +535,7 @@ public final Builder license(@Nullable String value) { } /** - * The time the model was created + * The time the model was created. *

* API name: {@code create_time} */ @@ -543,7 +545,7 @@ public final Builder createTime(@Nullable DateTime value) { } /** - * The version of Elasticsearch when the model was created + * The version of Elasticsearch when the model was created. *

* API name: {@code version} */ @@ -553,7 +555,7 @@ public final Builder version(@Nullable String value) { } /** - * The model description + * A description of the model. *

* API name: {@code description} */ @@ -563,7 +565,7 @@ public final Builder description(@Nullable String value) { } /** - * The number of pipelines referencing the model + * The number of pipelines that are referencing the model. *

* API name: {@code ingest.pipelines} */ @@ -573,7 +575,7 @@ public final Builder ingestPipelines(@Nullable String value) { } /** - * The total number of docs processed by the model + * The total number of documents that are processed by the model. *

* API name: {@code ingest.count} */ @@ -583,7 +585,7 @@ public final Builder ingestCount(@Nullable String value) { } /** - * The total time spent processing docs with this model + * The total time spent processing documents with thie model. *

* API name: {@code ingest.time} */ @@ -593,7 +595,7 @@ public final Builder ingestTime(@Nullable String value) { } /** - * The total documents currently being handled by the model + * The total number of documents that are currently being handled by the model. *

* API name: {@code ingest.current} */ @@ -603,7 +605,7 @@ public final Builder ingestCurrent(@Nullable String value) { } /** - * The total count of failed ingest attempts with this model + * The total number of failed ingest attempts with the model. *

* API name: {@code ingest.failed} */ @@ -613,8 +615,8 @@ public final Builder ingestFailed(@Nullable String value) { } /** - * The data frame analytics config id that created the model (if still - * available) + * The identifier for the data frame analytics job that created the model. Only + * displayed if the job is still available. *

* API name: {@code data_frame.id} */ @@ -624,7 +626,7 @@ public final Builder dataFrameId(@Nullable String value) { } /** - * The time the data frame analytics config was created + * The time the data frame analytics job was created. *

* API name: {@code data_frame.create_time} */ @@ -634,7 +636,7 @@ public final Builder dataFrameCreateTime(@Nullable String value) { } /** - * The source index used to train in the data frame analysis + * The source index used to train in the data frame analysis. *

* API name: {@code data_frame.source_index} */ @@ -644,7 +646,7 @@ public final Builder dataFrameSourceIndex(@Nullable String value) { } /** - * The analysis used by the data frame to build the model + * The analysis used by the data frame to build the model. *

* API name: {@code data_frame.analysis} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java index f7677654f..7bc5e256c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java @@ -119,7 +119,7 @@ public static SegmentsRecord of(Function> } /** - * index name + * The index name. *

* API name: {@code index} */ @@ -129,7 +129,7 @@ public final String index() { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -139,7 +139,7 @@ public final String shard() { } /** - * primary or replica + * The shard type: primary or replica. *

* API name: {@code prirep} */ @@ -149,7 +149,7 @@ public final String prirep() { } /** - * ip of node where it lives + * The IP address of the node where it lives. *

* API name: {@code ip} */ @@ -159,7 +159,7 @@ public final String ip() { } /** - * unique id of node where it lives + * The unique identifier of the node where it lives. *

* API name: {@code id} */ @@ -169,7 +169,8 @@ public final String id() { } /** - * segment name + * The segment name, which is derived from the segment generation and used + * internally to create file names in the directory of the shard. *

* API name: {@code segment} */ @@ -179,7 +180,9 @@ public final String segment() { } /** - * segment generation + * The segment generation number. Elasticsearch increments this generation + * number for each segment written then uses this number to derive the segment + * name. *

* API name: {@code generation} */ @@ -189,7 +192,9 @@ public final String generation() { } /** - * number of docs in segment + * The number of documents in the segment. This excludes deleted documents and + * counts any nested documents separately from their parents. It also excludes + * documents which were indexed recently and do not yet belong to a segment. *

* API name: {@code docs.count} */ @@ -199,7 +204,12 @@ public final String docsCount() { } /** - * number of deleted docs in segment + * The number of deleted documents in the segment, which might be higher or + * lower than the number of delete operations you have performed. This number + * excludes deletes that were performed recently and do not yet belong to a + * segment. Deleted documents are cleaned up by the automatic merge process if + * it makes sense to do so. Also, Elasticsearch creates extra deleted documents + * to internally track the recent history of operations on a shard. *

* API name: {@code docs.deleted} */ @@ -209,7 +219,7 @@ public final String docsDeleted() { } /** - * segment size in bytes + * The segment size in bytes. *

* API name: {@code size} */ @@ -219,7 +229,8 @@ public final String size() { } /** - * segment memory in bytes + * The segment memory in bytes. A value of -1 indicates + * Elasticsearch was unable to compute this number. *

* API name: {@code size.memory} */ @@ -229,7 +240,10 @@ public final String sizeMemory() { } /** - * is segment committed + * If true, the segment is synced to disk. Segments that are synced + * can survive a hard reboot. If false, the data from uncommitted + * segments is also stored in the transaction log so that Elasticsearch is able + * to replay changes on the next start. *

* API name: {@code committed} */ @@ -239,7 +253,9 @@ public final String committed() { } /** - * is segment searched + * If true, the segment is searchable. If false, the + * segment has most likely been written to disk but needs a refresh to be + * searchable. *

* API name: {@code searchable} */ @@ -249,7 +265,7 @@ public final String searchable() { } /** - * version + * The version of Lucene used to write the segment. *

* API name: {@code version} */ @@ -259,7 +275,9 @@ public final String version() { } /** - * is segment compound + * If true, the segment is stored in a compound file. This means + * Lucene merged all files from the segment in a single file to save file + * descriptors. *

* API name: {@code compound} */ @@ -415,7 +433,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String compound; /** - * index name + * The index name. *

* API name: {@code index} */ @@ -425,7 +443,7 @@ public final Builder index(@Nullable String value) { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -435,7 +453,7 @@ public final Builder shard(@Nullable String value) { } /** - * primary or replica + * The shard type: primary or replica. *

* API name: {@code prirep} */ @@ -445,7 +463,7 @@ public final Builder prirep(@Nullable String value) { } /** - * ip of node where it lives + * The IP address of the node where it lives. *

* API name: {@code ip} */ @@ -455,7 +473,7 @@ public final Builder ip(@Nullable String value) { } /** - * unique id of node where it lives + * The unique identifier of the node where it lives. *

* API name: {@code id} */ @@ -465,7 +483,8 @@ public final Builder id(@Nullable String value) { } /** - * segment name + * The segment name, which is derived from the segment generation and used + * internally to create file names in the directory of the shard. *

* API name: {@code segment} */ @@ -475,7 +494,9 @@ public final Builder segment(@Nullable String value) { } /** - * segment generation + * The segment generation number. Elasticsearch increments this generation + * number for each segment written then uses this number to derive the segment + * name. *

* API name: {@code generation} */ @@ -485,7 +506,9 @@ public final Builder generation(@Nullable String value) { } /** - * number of docs in segment + * The number of documents in the segment. This excludes deleted documents and + * counts any nested documents separately from their parents. It also excludes + * documents which were indexed recently and do not yet belong to a segment. *

* API name: {@code docs.count} */ @@ -495,7 +518,12 @@ public final Builder docsCount(@Nullable String value) { } /** - * number of deleted docs in segment + * The number of deleted documents in the segment, which might be higher or + * lower than the number of delete operations you have performed. This number + * excludes deletes that were performed recently and do not yet belong to a + * segment. Deleted documents are cleaned up by the automatic merge process if + * it makes sense to do so. Also, Elasticsearch creates extra deleted documents + * to internally track the recent history of operations on a shard. *

* API name: {@code docs.deleted} */ @@ -505,7 +533,7 @@ public final Builder docsDeleted(@Nullable String value) { } /** - * segment size in bytes + * The segment size in bytes. *

* API name: {@code size} */ @@ -515,7 +543,8 @@ public final Builder size(@Nullable String value) { } /** - * segment memory in bytes + * The segment memory in bytes. A value of -1 indicates + * Elasticsearch was unable to compute this number. *

* API name: {@code size.memory} */ @@ -525,7 +554,10 @@ public final Builder sizeMemory(@Nullable String value) { } /** - * is segment committed + * If true, the segment is synced to disk. Segments that are synced + * can survive a hard reboot. If false, the data from uncommitted + * segments is also stored in the transaction log so that Elasticsearch is able + * to replay changes on the next start. *

* API name: {@code committed} */ @@ -535,7 +567,9 @@ public final Builder committed(@Nullable String value) { } /** - * is segment searched + * If true, the segment is searchable. If false, the + * segment has most likely been written to disk but needs a refresh to be + * searchable. *

* API name: {@code searchable} */ @@ -545,7 +579,7 @@ public final Builder searchable(@Nullable String value) { } /** - * version + * The version of Lucene used to write the segment. *

* API name: {@code version} */ @@ -555,7 +589,9 @@ public final Builder version(@Nullable String value) { } /** - * is segment compound + * If true, the segment is stored in a compound file. This means + * Lucene merged all files from the segment in a single file to save file + * descriptors. *

* API name: {@code compound} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java index 40b11947b..3e55821a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java @@ -363,7 +363,7 @@ public static ShardsRecord of(Function> fn) } /** - * index name + * The index name. *

* API name: {@code index} */ @@ -373,7 +373,7 @@ public final String index() { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -383,7 +383,7 @@ public final String shard() { } /** - * primary or replica + * The shard type: primary or replica. *

* API name: {@code prirep} */ @@ -393,7 +393,10 @@ public final String prirep() { } /** - * shard state + * The shard state. Returned values include: INITIALIZING: The + * shard is recovering from a peer shard or gateway. RELOCATING: + * The shard is relocating. STARTED: The shard has started. + * UNASSIGNED: The shard is not assigned to any node. *

* API name: {@code state} */ @@ -403,7 +406,7 @@ public final String state() { } /** - * number of docs in shard + * The number of documents in the shard. *

* API name: {@code docs} */ @@ -413,7 +416,7 @@ public final String docs() { } /** - * store size of shard (how much disk it uses) + * The disk space used by the shard. *

* API name: {@code store} */ @@ -423,7 +426,7 @@ public final String store() { } /** - * ip of node where it lives + * The IP address of the node. *

* API name: {@code ip} */ @@ -433,7 +436,7 @@ public final String ip() { } /** - * unique id of node where it lives + * The unique identifier for the node. *

* API name: {@code id} */ @@ -443,7 +446,7 @@ public final String id() { } /** - * name of node where it lives + * The name of node. *

* API name: {@code node} */ @@ -453,7 +456,7 @@ public final String node() { } /** - * sync id + * The sync identifier. *

* API name: {@code sync_id} */ @@ -463,7 +466,33 @@ public final String syncId() { } /** - * reason shard is unassigned + * The reason for the last change to the state of an unassigned shard. It does + * not explain why the shard is currently unassigned; use the cluster allocation + * explain API for that information. Returned values include: + * ALLOCATION_FAILED: Unassigned as a result of a failed allocation + * of the shard. CLUSTER_RECOVERED: Unassigned as a result of a + * full cluster recovery. DANGLING_INDEX_IMPORTED: Unassigned as a + * result of importing a dangling index. EXISTING_INDEX_RESTORED: + * Unassigned as a result of restoring into a closed index. + * FORCED_EMPTY_PRIMARY: The shard’s allocation was last modified + * by forcing an empty primary using the cluster reroute API. + * INDEX_CLOSED: Unassigned because the index was closed. + * INDEX_CREATED: Unassigned as a result of an API creation of an + * index. INDEX_REOPENED: Unassigned as a result of opening a + * closed index. MANUAL_ALLOCATION: The shard’s allocation was last + * modified by the cluster reroute API. NEW_INDEX_RESTORED: + * Unassigned as a result of restoring into a new index. NODE_LEFT: + * Unassigned as a result of the node hosting it leaving the cluster. + * NODE_RESTARTING: Similar to NODE_LEFT, except that + * the node was registered as restarting using the node shutdown API. + * PRIMARY_FAILED: The shard was initializing as a replica, but the + * primary shard failed before the initialization completed. + * REALLOCATED_REPLICA: A better replica location is identified and + * causes the existing replica allocation to be cancelled. + * REINITIALIZED: When a shard moves from started back to + * initializing. REPLICA_ADDED: Unassigned as a result of explicit + * addition of a replica. REROUTE_CANCELLED: Unassigned as a result + * of explicit cancel reroute command. *

* API name: {@code unassigned.reason} */ @@ -473,7 +502,8 @@ public final String unassignedReason() { } /** - * time shard became unassigned (UTC) + * The time at which the shard became unassigned in Coordinated Universal Time + * (UTC). *

* API name: {@code unassigned.at} */ @@ -483,7 +513,8 @@ public final String unassignedAt() { } /** - * time has been unassigned + * The time at which the shard was requested to be unassigned in Coordinated + * Universal Time (UTC). *

* API name: {@code unassigned.for} */ @@ -493,7 +524,9 @@ public final String unassignedFor() { } /** - * additional details as to why the shard became unassigned + * Additional details as to why the shard became unassigned. It does not explain + * why the shard is not assigned; use the cluster allocation explain API for + * that information. *

* API name: {@code unassigned.details} */ @@ -503,7 +536,7 @@ public final String unassignedDetails() { } /** - * recovery source type + * The type of recovery source. *

* API name: {@code recoverysource.type} */ @@ -513,7 +546,7 @@ public final String recoverysourceType() { } /** - * size of completion + * The size of completion. *

* API name: {@code completion.size} */ @@ -523,7 +556,7 @@ public final String completionSize() { } /** - * used fielddata cache + * The used fielddata cache memory. *

* API name: {@code fielddata.memory_size} */ @@ -533,7 +566,7 @@ public final String fielddataMemorySize() { } /** - * fielddata evictions + * The fielddata cache evictions. *

* API name: {@code fielddata.evictions} */ @@ -543,7 +576,7 @@ public final String fielddataEvictions() { } /** - * used query cache + * The used query cache memory. *

* API name: {@code query_cache.memory_size} */ @@ -553,7 +586,7 @@ public final String queryCacheMemorySize() { } /** - * query cache evictions + * The query cache evictions. *

* API name: {@code query_cache.evictions} */ @@ -563,7 +596,7 @@ public final String queryCacheEvictions() { } /** - * number of flushes + * The number of flushes. *

* API name: {@code flush.total} */ @@ -573,7 +606,7 @@ public final String flushTotal() { } /** - * time spent in flush + * The time spent in flush. *

* API name: {@code flush.total_time} */ @@ -583,7 +616,7 @@ public final String flushTotalTime() { } /** - * number of current get ops + * The number of current get operations. *

* API name: {@code get.current} */ @@ -593,7 +626,7 @@ public final String getCurrent() { } /** - * time spent in get + * The time spent in get operations. *

* API name: {@code get.time} */ @@ -603,7 +636,7 @@ public final String getTime() { } /** - * number of get ops + * The number of get operations. *

* API name: {@code get.total} */ @@ -613,7 +646,7 @@ public final String getTotal() { } /** - * time spent in successful gets + * The time spent in successful get operations. *

* API name: {@code get.exists_time} */ @@ -623,7 +656,7 @@ public final String getExistsTime() { } /** - * number of successful gets + * The number of successful get operations. *

* API name: {@code get.exists_total} */ @@ -633,7 +666,7 @@ public final String getExistsTotal() { } /** - * time spent in failed gets + * The time spent in failed get operations. *

* API name: {@code get.missing_time} */ @@ -643,7 +676,7 @@ public final String getMissingTime() { } /** - * number of failed gets + * The number of failed get operations. *

* API name: {@code get.missing_total} */ @@ -653,7 +686,7 @@ public final String getMissingTotal() { } /** - * number of current deletions + * The number of current deletion operations. *

* API name: {@code indexing.delete_current} */ @@ -663,7 +696,7 @@ public final String indexingDeleteCurrent() { } /** - * time spent in deletions + * The time spent in deletion operations. *

* API name: {@code indexing.delete_time} */ @@ -673,7 +706,7 @@ public final String indexingDeleteTime() { } /** - * number of delete ops + * The number of delete operations. *

* API name: {@code indexing.delete_total} */ @@ -683,7 +716,7 @@ public final String indexingDeleteTotal() { } /** - * number of current indexing ops + * The number of current indexing operations. *

* API name: {@code indexing.index_current} */ @@ -693,7 +726,7 @@ public final String indexingIndexCurrent() { } /** - * time spent in indexing + * The time spent in indexing operations. *

* API name: {@code indexing.index_time} */ @@ -703,7 +736,7 @@ public final String indexingIndexTime() { } /** - * number of indexing ops + * The number of indexing operations. *

* API name: {@code indexing.index_total} */ @@ -713,7 +746,7 @@ public final String indexingIndexTotal() { } /** - * number of failed indexing ops + * The number of failed indexing operations. *

* API name: {@code indexing.index_failed} */ @@ -723,7 +756,7 @@ public final String indexingIndexFailed() { } /** - * number of current merges + * The number of current merge operations. *

* API name: {@code merges.current} */ @@ -733,7 +766,7 @@ public final String mergesCurrent() { } /** - * number of current merging docs + * The number of current merging documents. *

* API name: {@code merges.current_docs} */ @@ -743,7 +776,7 @@ public final String mergesCurrentDocs() { } /** - * size of current merges + * The size of current merge operations. *

* API name: {@code merges.current_size} */ @@ -753,7 +786,7 @@ public final String mergesCurrentSize() { } /** - * number of completed merge ops + * The number of completed merge operations. *

* API name: {@code merges.total} */ @@ -763,7 +796,7 @@ public final String mergesTotal() { } /** - * docs merged + * The nuber of merged documents. *

* API name: {@code merges.total_docs} */ @@ -773,7 +806,7 @@ public final String mergesTotalDocs() { } /** - * size merged + * The size of current merges. *

* API name: {@code merges.total_size} */ @@ -783,7 +816,7 @@ public final String mergesTotalSize() { } /** - * time spent in merges + * The time spent merging documents. *

* API name: {@code merges.total_time} */ @@ -793,7 +826,7 @@ public final String mergesTotalTime() { } /** - * total refreshes + * The total number of refreshes. *

* API name: {@code refresh.total} */ @@ -803,7 +836,7 @@ public final String refreshTotal() { } /** - * time spent in refreshes + * The time spent in refreshes. *

* API name: {@code refresh.time} */ @@ -813,7 +846,7 @@ public final String refreshTime() { } /** - * total external refreshes + * The total nunber of external refreshes. *

* API name: {@code refresh.external_total} */ @@ -823,7 +856,7 @@ public final String refreshExternalTotal() { } /** - * time spent in external refreshes + * The time spent in external refreshes. *

* API name: {@code refresh.external_time} */ @@ -833,7 +866,7 @@ public final String refreshExternalTime() { } /** - * number of pending refresh listeners + * The number of pending refresh listeners. *

* API name: {@code refresh.listeners} */ @@ -843,7 +876,7 @@ public final String refreshListeners() { } /** - * current fetch phase ops + * The current fetch phase operations. *

* API name: {@code search.fetch_current} */ @@ -853,7 +886,7 @@ public final String searchFetchCurrent() { } /** - * time spent in fetch phase + * The time spent in fetch phase. *

* API name: {@code search.fetch_time} */ @@ -863,7 +896,7 @@ public final String searchFetchTime() { } /** - * total fetch ops + * The total number of fetch operations. *

* API name: {@code search.fetch_total} */ @@ -873,7 +906,7 @@ public final String searchFetchTotal() { } /** - * open search contexts + * The number of open search contexts. *

* API name: {@code search.open_contexts} */ @@ -883,7 +916,7 @@ public final String searchOpenContexts() { } /** - * current query phase ops + * The current query phase operations. *

* API name: {@code search.query_current} */ @@ -893,7 +926,7 @@ public final String searchQueryCurrent() { } /** - * time spent in query phase + * The time spent in query phase. *

* API name: {@code search.query_time} */ @@ -903,7 +936,7 @@ public final String searchQueryTime() { } /** - * total query phase ops + * The total number of query phase operations. *

* API name: {@code search.query_total} */ @@ -913,7 +946,7 @@ public final String searchQueryTotal() { } /** - * open scroll contexts + * The open scroll contexts. *

* API name: {@code search.scroll_current} */ @@ -923,7 +956,7 @@ public final String searchScrollCurrent() { } /** - * time scroll contexts held open + * The time scroll contexts were held open. *

* API name: {@code search.scroll_time} */ @@ -933,7 +966,7 @@ public final String searchScrollTime() { } /** - * completed scroll contexts + * The number of completed scroll contexts. *

* API name: {@code search.scroll_total} */ @@ -943,7 +976,7 @@ public final String searchScrollTotal() { } /** - * number of segments + * The number of segments. *

* API name: {@code segments.count} */ @@ -953,7 +986,7 @@ public final String segmentsCount() { } /** - * memory used by segments + * The memory used by segments. *

* API name: {@code segments.memory} */ @@ -963,7 +996,7 @@ public final String segmentsMemory() { } /** - * memory used by index writer + * The memory used by the index writer. *

* API name: {@code segments.index_writer_memory} */ @@ -973,7 +1006,7 @@ public final String segmentsIndexWriterMemory() { } /** - * memory used by version map + * The memory used by the version map. *

* API name: {@code segments.version_map_memory} */ @@ -983,8 +1016,8 @@ public final String segmentsVersionMapMemory() { } /** - * memory used by fixed bit sets for nested object field types and export type - * filters for types referred in _parent fields + * The memory used by fixed bit sets for nested object field types and export + * type filters for types referred in _parent fields. *

* API name: {@code segments.fixed_bitset_memory} */ @@ -994,7 +1027,7 @@ public final String segmentsFixedBitsetMemory() { } /** - * max sequence number + * The maximum sequence number. *

* API name: {@code seq_no.max} */ @@ -1004,7 +1037,7 @@ public final String seqNoMax() { } /** - * local checkpoint + * The local checkpoint. *

* API name: {@code seq_no.local_checkpoint} */ @@ -1014,7 +1047,7 @@ public final String seqNoLocalCheckpoint() { } /** - * global checkpoint + * The global checkpoint. *

* API name: {@code seq_no.global_checkpoint} */ @@ -1024,7 +1057,7 @@ public final String seqNoGlobalCheckpoint() { } /** - * current warmer ops + * The number of current warmer operations. *

* API name: {@code warmer.current} */ @@ -1034,7 +1067,7 @@ public final String warmerCurrent() { } /** - * total warmer ops + * The total number of warmer operations. *

* API name: {@code warmer.total} */ @@ -1044,7 +1077,7 @@ public final String warmerTotal() { } /** - * time spent in warmers + * The time spent in warmer operations. *

* API name: {@code warmer.total_time} */ @@ -1054,7 +1087,7 @@ public final String warmerTotalTime() { } /** - * shard data path + * The shard data path. *

* API name: {@code path.data} */ @@ -1064,7 +1097,7 @@ public final String pathData() { } /** - * shard state path + * The shard state path. *

* API name: {@code path.state} */ @@ -1074,7 +1107,7 @@ public final String pathState() { } /** - * number of bulk shard ops + * The number of bulk shard operations. *

* API name: {@code bulk.total_operations} */ @@ -1084,7 +1117,7 @@ public final String bulkTotalOperations() { } /** - * time spend in shard bulk + * The time spent in shard bulk operations. *

* API name: {@code bulk.total_time} */ @@ -1094,7 +1127,7 @@ public final String bulkTotalTime() { } /** - * total size in bytes of shard bulk + * The total size in bytes of shard bulk operations. *

* API name: {@code bulk.total_size_in_bytes} */ @@ -1104,7 +1137,7 @@ public final String bulkTotalSizeInBytes() { } /** - * average time spend in shard bulk + * The average time spent in shard bulk operations. *

* API name: {@code bulk.avg_time} */ @@ -1114,7 +1147,7 @@ public final String bulkAvgTime() { } /** - * avg size in bytes of shard bulk + * The average size in bytes of shard bulk operations. *

* API name: {@code bulk.avg_size_in_bytes} */ @@ -1758,7 +1791,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String bulkAvgSizeInBytes; /** - * index name + * The index name. *

* API name: {@code index} */ @@ -1768,7 +1801,7 @@ public final Builder index(@Nullable String value) { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -1778,7 +1811,7 @@ public final Builder shard(@Nullable String value) { } /** - * primary or replica + * The shard type: primary or replica. *

* API name: {@code prirep} */ @@ -1788,7 +1821,10 @@ public final Builder prirep(@Nullable String value) { } /** - * shard state + * The shard state. Returned values include: INITIALIZING: The + * shard is recovering from a peer shard or gateway. RELOCATING: + * The shard is relocating. STARTED: The shard has started. + * UNASSIGNED: The shard is not assigned to any node. *

* API name: {@code state} */ @@ -1798,7 +1834,7 @@ public final Builder state(@Nullable String value) { } /** - * number of docs in shard + * The number of documents in the shard. *

* API name: {@code docs} */ @@ -1808,7 +1844,7 @@ public final Builder docs(@Nullable String value) { } /** - * store size of shard (how much disk it uses) + * The disk space used by the shard. *

* API name: {@code store} */ @@ -1818,7 +1854,7 @@ public final Builder store(@Nullable String value) { } /** - * ip of node where it lives + * The IP address of the node. *

* API name: {@code ip} */ @@ -1828,7 +1864,7 @@ public final Builder ip(@Nullable String value) { } /** - * unique id of node where it lives + * The unique identifier for the node. *

* API name: {@code id} */ @@ -1838,7 +1874,7 @@ public final Builder id(@Nullable String value) { } /** - * name of node where it lives + * The name of node. *

* API name: {@code node} */ @@ -1848,7 +1884,7 @@ public final Builder node(@Nullable String value) { } /** - * sync id + * The sync identifier. *

* API name: {@code sync_id} */ @@ -1858,7 +1894,33 @@ public final Builder syncId(@Nullable String value) { } /** - * reason shard is unassigned + * The reason for the last change to the state of an unassigned shard. It does + * not explain why the shard is currently unassigned; use the cluster allocation + * explain API for that information. Returned values include: + * ALLOCATION_FAILED: Unassigned as a result of a failed allocation + * of the shard. CLUSTER_RECOVERED: Unassigned as a result of a + * full cluster recovery. DANGLING_INDEX_IMPORTED: Unassigned as a + * result of importing a dangling index. EXISTING_INDEX_RESTORED: + * Unassigned as a result of restoring into a closed index. + * FORCED_EMPTY_PRIMARY: The shard’s allocation was last modified + * by forcing an empty primary using the cluster reroute API. + * INDEX_CLOSED: Unassigned because the index was closed. + * INDEX_CREATED: Unassigned as a result of an API creation of an + * index. INDEX_REOPENED: Unassigned as a result of opening a + * closed index. MANUAL_ALLOCATION: The shard’s allocation was last + * modified by the cluster reroute API. NEW_INDEX_RESTORED: + * Unassigned as a result of restoring into a new index. NODE_LEFT: + * Unassigned as a result of the node hosting it leaving the cluster. + * NODE_RESTARTING: Similar to NODE_LEFT, except that + * the node was registered as restarting using the node shutdown API. + * PRIMARY_FAILED: The shard was initializing as a replica, but the + * primary shard failed before the initialization completed. + * REALLOCATED_REPLICA: A better replica location is identified and + * causes the existing replica allocation to be cancelled. + * REINITIALIZED: When a shard moves from started back to + * initializing. REPLICA_ADDED: Unassigned as a result of explicit + * addition of a replica. REROUTE_CANCELLED: Unassigned as a result + * of explicit cancel reroute command. *

* API name: {@code unassigned.reason} */ @@ -1868,7 +1930,8 @@ public final Builder unassignedReason(@Nullable String value) { } /** - * time shard became unassigned (UTC) + * The time at which the shard became unassigned in Coordinated Universal Time + * (UTC). *

* API name: {@code unassigned.at} */ @@ -1878,7 +1941,8 @@ public final Builder unassignedAt(@Nullable String value) { } /** - * time has been unassigned + * The time at which the shard was requested to be unassigned in Coordinated + * Universal Time (UTC). *

* API name: {@code unassigned.for} */ @@ -1888,7 +1952,9 @@ public final Builder unassignedFor(@Nullable String value) { } /** - * additional details as to why the shard became unassigned + * Additional details as to why the shard became unassigned. It does not explain + * why the shard is not assigned; use the cluster allocation explain API for + * that information. *

* API name: {@code unassigned.details} */ @@ -1898,7 +1964,7 @@ public final Builder unassignedDetails(@Nullable String value) { } /** - * recovery source type + * The type of recovery source. *

* API name: {@code recoverysource.type} */ @@ -1908,7 +1974,7 @@ public final Builder recoverysourceType(@Nullable String value) { } /** - * size of completion + * The size of completion. *

* API name: {@code completion.size} */ @@ -1918,7 +1984,7 @@ public final Builder completionSize(@Nullable String value) { } /** - * used fielddata cache + * The used fielddata cache memory. *

* API name: {@code fielddata.memory_size} */ @@ -1928,7 +1994,7 @@ public final Builder fielddataMemorySize(@Nullable String value) { } /** - * fielddata evictions + * The fielddata cache evictions. *

* API name: {@code fielddata.evictions} */ @@ -1938,7 +2004,7 @@ public final Builder fielddataEvictions(@Nullable String value) { } /** - * used query cache + * The used query cache memory. *

* API name: {@code query_cache.memory_size} */ @@ -1948,7 +2014,7 @@ public final Builder queryCacheMemorySize(@Nullable String value) { } /** - * query cache evictions + * The query cache evictions. *

* API name: {@code query_cache.evictions} */ @@ -1958,7 +2024,7 @@ public final Builder queryCacheEvictions(@Nullable String value) { } /** - * number of flushes + * The number of flushes. *

* API name: {@code flush.total} */ @@ -1968,7 +2034,7 @@ public final Builder flushTotal(@Nullable String value) { } /** - * time spent in flush + * The time spent in flush. *

* API name: {@code flush.total_time} */ @@ -1978,7 +2044,7 @@ public final Builder flushTotalTime(@Nullable String value) { } /** - * number of current get ops + * The number of current get operations. *

* API name: {@code get.current} */ @@ -1988,7 +2054,7 @@ public final Builder getCurrent(@Nullable String value) { } /** - * time spent in get + * The time spent in get operations. *

* API name: {@code get.time} */ @@ -1998,7 +2064,7 @@ public final Builder getTime(@Nullable String value) { } /** - * number of get ops + * The number of get operations. *

* API name: {@code get.total} */ @@ -2008,7 +2074,7 @@ public final Builder getTotal(@Nullable String value) { } /** - * time spent in successful gets + * The time spent in successful get operations. *

* API name: {@code get.exists_time} */ @@ -2018,7 +2084,7 @@ public final Builder getExistsTime(@Nullable String value) { } /** - * number of successful gets + * The number of successful get operations. *

* API name: {@code get.exists_total} */ @@ -2028,7 +2094,7 @@ public final Builder getExistsTotal(@Nullable String value) { } /** - * time spent in failed gets + * The time spent in failed get operations. *

* API name: {@code get.missing_time} */ @@ -2038,7 +2104,7 @@ public final Builder getMissingTime(@Nullable String value) { } /** - * number of failed gets + * The number of failed get operations. *

* API name: {@code get.missing_total} */ @@ -2048,7 +2114,7 @@ public final Builder getMissingTotal(@Nullable String value) { } /** - * number of current deletions + * The number of current deletion operations. *

* API name: {@code indexing.delete_current} */ @@ -2058,7 +2124,7 @@ public final Builder indexingDeleteCurrent(@Nullable String value) { } /** - * time spent in deletions + * The time spent in deletion operations. *

* API name: {@code indexing.delete_time} */ @@ -2068,7 +2134,7 @@ public final Builder indexingDeleteTime(@Nullable String value) { } /** - * number of delete ops + * The number of delete operations. *

* API name: {@code indexing.delete_total} */ @@ -2078,7 +2144,7 @@ public final Builder indexingDeleteTotal(@Nullable String value) { } /** - * number of current indexing ops + * The number of current indexing operations. *

* API name: {@code indexing.index_current} */ @@ -2088,7 +2154,7 @@ public final Builder indexingIndexCurrent(@Nullable String value) { } /** - * time spent in indexing + * The time spent in indexing operations. *

* API name: {@code indexing.index_time} */ @@ -2098,7 +2164,7 @@ public final Builder indexingIndexTime(@Nullable String value) { } /** - * number of indexing ops + * The number of indexing operations. *

* API name: {@code indexing.index_total} */ @@ -2108,7 +2174,7 @@ public final Builder indexingIndexTotal(@Nullable String value) { } /** - * number of failed indexing ops + * The number of failed indexing operations. *

* API name: {@code indexing.index_failed} */ @@ -2118,7 +2184,7 @@ public final Builder indexingIndexFailed(@Nullable String value) { } /** - * number of current merges + * The number of current merge operations. *

* API name: {@code merges.current} */ @@ -2128,7 +2194,7 @@ public final Builder mergesCurrent(@Nullable String value) { } /** - * number of current merging docs + * The number of current merging documents. *

* API name: {@code merges.current_docs} */ @@ -2138,7 +2204,7 @@ public final Builder mergesCurrentDocs(@Nullable String value) { } /** - * size of current merges + * The size of current merge operations. *

* API name: {@code merges.current_size} */ @@ -2148,7 +2214,7 @@ public final Builder mergesCurrentSize(@Nullable String value) { } /** - * number of completed merge ops + * The number of completed merge operations. *

* API name: {@code merges.total} */ @@ -2158,7 +2224,7 @@ public final Builder mergesTotal(@Nullable String value) { } /** - * docs merged + * The nuber of merged documents. *

* API name: {@code merges.total_docs} */ @@ -2168,7 +2234,7 @@ public final Builder mergesTotalDocs(@Nullable String value) { } /** - * size merged + * The size of current merges. *

* API name: {@code merges.total_size} */ @@ -2178,7 +2244,7 @@ public final Builder mergesTotalSize(@Nullable String value) { } /** - * time spent in merges + * The time spent merging documents. *

* API name: {@code merges.total_time} */ @@ -2188,7 +2254,7 @@ public final Builder mergesTotalTime(@Nullable String value) { } /** - * total refreshes + * The total number of refreshes. *

* API name: {@code refresh.total} */ @@ -2198,7 +2264,7 @@ public final Builder refreshTotal(@Nullable String value) { } /** - * time spent in refreshes + * The time spent in refreshes. *

* API name: {@code refresh.time} */ @@ -2208,7 +2274,7 @@ public final Builder refreshTime(@Nullable String value) { } /** - * total external refreshes + * The total nunber of external refreshes. *

* API name: {@code refresh.external_total} */ @@ -2218,7 +2284,7 @@ public final Builder refreshExternalTotal(@Nullable String value) { } /** - * time spent in external refreshes + * The time spent in external refreshes. *

* API name: {@code refresh.external_time} */ @@ -2228,7 +2294,7 @@ public final Builder refreshExternalTime(@Nullable String value) { } /** - * number of pending refresh listeners + * The number of pending refresh listeners. *

* API name: {@code refresh.listeners} */ @@ -2238,7 +2304,7 @@ public final Builder refreshListeners(@Nullable String value) { } /** - * current fetch phase ops + * The current fetch phase operations. *

* API name: {@code search.fetch_current} */ @@ -2248,7 +2314,7 @@ public final Builder searchFetchCurrent(@Nullable String value) { } /** - * time spent in fetch phase + * The time spent in fetch phase. *

* API name: {@code search.fetch_time} */ @@ -2258,7 +2324,7 @@ public final Builder searchFetchTime(@Nullable String value) { } /** - * total fetch ops + * The total number of fetch operations. *

* API name: {@code search.fetch_total} */ @@ -2268,7 +2334,7 @@ public final Builder searchFetchTotal(@Nullable String value) { } /** - * open search contexts + * The number of open search contexts. *

* API name: {@code search.open_contexts} */ @@ -2278,7 +2344,7 @@ public final Builder searchOpenContexts(@Nullable String value) { } /** - * current query phase ops + * The current query phase operations. *

* API name: {@code search.query_current} */ @@ -2288,7 +2354,7 @@ public final Builder searchQueryCurrent(@Nullable String value) { } /** - * time spent in query phase + * The time spent in query phase. *

* API name: {@code search.query_time} */ @@ -2298,7 +2364,7 @@ public final Builder searchQueryTime(@Nullable String value) { } /** - * total query phase ops + * The total number of query phase operations. *

* API name: {@code search.query_total} */ @@ -2308,7 +2374,7 @@ public final Builder searchQueryTotal(@Nullable String value) { } /** - * open scroll contexts + * The open scroll contexts. *

* API name: {@code search.scroll_current} */ @@ -2318,7 +2384,7 @@ public final Builder searchScrollCurrent(@Nullable String value) { } /** - * time scroll contexts held open + * The time scroll contexts were held open. *

* API name: {@code search.scroll_time} */ @@ -2328,7 +2394,7 @@ public final Builder searchScrollTime(@Nullable String value) { } /** - * completed scroll contexts + * The number of completed scroll contexts. *

* API name: {@code search.scroll_total} */ @@ -2338,7 +2404,7 @@ public final Builder searchScrollTotal(@Nullable String value) { } /** - * number of segments + * The number of segments. *

* API name: {@code segments.count} */ @@ -2348,7 +2414,7 @@ public final Builder segmentsCount(@Nullable String value) { } /** - * memory used by segments + * The memory used by segments. *

* API name: {@code segments.memory} */ @@ -2358,7 +2424,7 @@ public final Builder segmentsMemory(@Nullable String value) { } /** - * memory used by index writer + * The memory used by the index writer. *

* API name: {@code segments.index_writer_memory} */ @@ -2368,7 +2434,7 @@ public final Builder segmentsIndexWriterMemory(@Nullable String value) { } /** - * memory used by version map + * The memory used by the version map. *

* API name: {@code segments.version_map_memory} */ @@ -2378,8 +2444,8 @@ public final Builder segmentsVersionMapMemory(@Nullable String value) { } /** - * memory used by fixed bit sets for nested object field types and export type - * filters for types referred in _parent fields + * The memory used by fixed bit sets for nested object field types and export + * type filters for types referred in _parent fields. *

* API name: {@code segments.fixed_bitset_memory} */ @@ -2389,7 +2455,7 @@ public final Builder segmentsFixedBitsetMemory(@Nullable String value) { } /** - * max sequence number + * The maximum sequence number. *

* API name: {@code seq_no.max} */ @@ -2399,7 +2465,7 @@ public final Builder seqNoMax(@Nullable String value) { } /** - * local checkpoint + * The local checkpoint. *

* API name: {@code seq_no.local_checkpoint} */ @@ -2409,7 +2475,7 @@ public final Builder seqNoLocalCheckpoint(@Nullable String value) { } /** - * global checkpoint + * The global checkpoint. *

* API name: {@code seq_no.global_checkpoint} */ @@ -2419,7 +2485,7 @@ public final Builder seqNoGlobalCheckpoint(@Nullable String value) { } /** - * current warmer ops + * The number of current warmer operations. *

* API name: {@code warmer.current} */ @@ -2429,7 +2495,7 @@ public final Builder warmerCurrent(@Nullable String value) { } /** - * total warmer ops + * The total number of warmer operations. *

* API name: {@code warmer.total} */ @@ -2439,7 +2505,7 @@ public final Builder warmerTotal(@Nullable String value) { } /** - * time spent in warmers + * The time spent in warmer operations. *

* API name: {@code warmer.total_time} */ @@ -2449,7 +2515,7 @@ public final Builder warmerTotalTime(@Nullable String value) { } /** - * shard data path + * The shard data path. *

* API name: {@code path.data} */ @@ -2459,7 +2525,7 @@ public final Builder pathData(@Nullable String value) { } /** - * shard state path + * The shard state path. *

* API name: {@code path.state} */ @@ -2469,7 +2535,7 @@ public final Builder pathState(@Nullable String value) { } /** - * number of bulk shard ops + * The number of bulk shard operations. *

* API name: {@code bulk.total_operations} */ @@ -2479,7 +2545,7 @@ public final Builder bulkTotalOperations(@Nullable String value) { } /** - * time spend in shard bulk + * The time spent in shard bulk operations. *

* API name: {@code bulk.total_time} */ @@ -2489,7 +2555,7 @@ public final Builder bulkTotalTime(@Nullable String value) { } /** - * total size in bytes of shard bulk + * The total size in bytes of shard bulk operations. *

* API name: {@code bulk.total_size_in_bytes} */ @@ -2499,7 +2565,7 @@ public final Builder bulkTotalSizeInBytes(@Nullable String value) { } /** - * average time spend in shard bulk + * The average time spent in shard bulk operations. *

* API name: {@code bulk.avg_time} */ @@ -2509,7 +2575,7 @@ public final Builder bulkAvgTime(@Nullable String value) { } /** - * avg size in bytes of shard bulk + * The average size in bytes of shard bulk operations. *

* API name: {@code bulk.avg_size_in_bytes} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java index 0b199ee5d..f8855c030 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java @@ -115,7 +115,7 @@ public static SnapshotsRecord of(Function * API name: {@code id} */ @@ -125,7 +125,7 @@ public final String id() { } /** - * repository name + * The repository name. *

* API name: {@code repository} */ @@ -135,7 +135,12 @@ public final String repository() { } /** - * snapshot name + * The state of the snapshot process. Returned values include: + * FAILED: The snapshot process failed. INCOMPATIBLE: + * The snapshot process is incompatible with the current cluster version. + * IN_PROGRESS: The snapshot process started but has not completed. + * PARTIAL: The snapshot process completed with a partial success. + * SUCCESS: The snapshot process completed with a full success. *

* API name: {@code status} */ @@ -145,7 +150,8 @@ public final String status() { } /** - * start time in seconds since 1970-01-01 00:00:00 + * The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot + * process started. *

* API name: {@code start_epoch} */ @@ -155,7 +161,7 @@ public final Long startEpoch() { } /** - * start time in HH:MM:SS + * The time (HH:MM:SS) at which the snapshot process started. *

* API name: {@code start_time} */ @@ -165,7 +171,8 @@ public final ScheduleTimeOfDay startTime() { } /** - * end time in seconds since 1970-01-01 00:00:00 + * The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot + * process ended. *

* API name: {@code end_epoch} */ @@ -175,7 +182,7 @@ public final Long endEpoch() { } /** - * end time in HH:MM:SS + * The time (HH:MM:SS) at which the snapshot process ended. *

* API name: {@code end_time} */ @@ -185,7 +192,7 @@ public final String endTime() { } /** - * duration + * The time it took the snapshot process to complete, in time units. *

* API name: {@code duration} */ @@ -195,7 +202,7 @@ public final Time duration() { } /** - * number of indices + * The number of indices in the snapshot. *

* API name: {@code indices} */ @@ -205,7 +212,7 @@ public final String indices() { } /** - * number of successful shards + * The number of successful shards in the snapshot. *

* API name: {@code successful_shards} */ @@ -215,7 +222,7 @@ public final String successfulShards() { } /** - * number of failed shards + * The number of failed shards in the snapshot. *

* API name: {@code failed_shards} */ @@ -225,7 +232,7 @@ public final String failedShards() { } /** - * number of total shards + * The total number of shards in the snapshot. *

* API name: {@code total_shards} */ @@ -235,7 +242,7 @@ public final String totalShards() { } /** - * reason for failures + * The reason for any snapshot failures. *

* API name: {@code reason} */ @@ -375,7 +382,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String reason; /** - * unique snapshot + * The unique identifier for the snapshot. *

* API name: {@code id} */ @@ -385,7 +392,7 @@ public final Builder id(@Nullable String value) { } /** - * repository name + * The repository name. *

* API name: {@code repository} */ @@ -395,7 +402,12 @@ public final Builder repository(@Nullable String value) { } /** - * snapshot name + * The state of the snapshot process. Returned values include: + * FAILED: The snapshot process failed. INCOMPATIBLE: + * The snapshot process is incompatible with the current cluster version. + * IN_PROGRESS: The snapshot process started but has not completed. + * PARTIAL: The snapshot process completed with a partial success. + * SUCCESS: The snapshot process completed with a full success. *

* API name: {@code status} */ @@ -405,7 +417,8 @@ public final Builder status(@Nullable String value) { } /** - * start time in seconds since 1970-01-01 00:00:00 + * The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot + * process started. *

* API name: {@code start_epoch} */ @@ -415,7 +428,7 @@ public final Builder startEpoch(@Nullable Long value) { } /** - * start time in HH:MM:SS + * The time (HH:MM:SS) at which the snapshot process started. *

* API name: {@code start_time} */ @@ -425,7 +438,7 @@ public final Builder startTime(@Nullable ScheduleTimeOfDay value) { } /** - * start time in HH:MM:SS + * The time (HH:MM:SS) at which the snapshot process started. *

* API name: {@code start_time} */ @@ -434,7 +447,8 @@ public final Builder startTime(Function * API name: {@code end_epoch} */ @@ -444,7 +458,7 @@ public final Builder endEpoch(@Nullable Long value) { } /** - * end time in HH:MM:SS + * The time (HH:MM:SS) at which the snapshot process ended. *

* API name: {@code end_time} */ @@ -454,7 +468,7 @@ public final Builder endTime(@Nullable String value) { } /** - * duration + * The time it took the snapshot process to complete, in time units. *

* API name: {@code duration} */ @@ -464,7 +478,7 @@ public final Builder duration(@Nullable Time value) { } /** - * duration + * The time it took the snapshot process to complete, in time units. *

* API name: {@code duration} */ @@ -473,7 +487,7 @@ public final Builder duration(Function> fn) { } /** - * number of indices + * The number of indices in the snapshot. *

* API name: {@code indices} */ @@ -483,7 +497,7 @@ public final Builder indices(@Nullable String value) { } /** - * number of successful shards + * The number of successful shards in the snapshot. *

* API name: {@code successful_shards} */ @@ -493,7 +507,7 @@ public final Builder successfulShards(@Nullable String value) { } /** - * number of failed shards + * The number of failed shards in the snapshot. *

* API name: {@code failed_shards} */ @@ -503,7 +517,7 @@ public final Builder failedShards(@Nullable String value) { } /** - * number of total shards + * The total number of shards in the snapshot. *

* API name: {@code total_shards} */ @@ -513,7 +527,7 @@ public final Builder totalShards(@Nullable String value) { } /** - * reason for failures + * The reason for any snapshot failures. *

* API name: {@code reason} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java index 374041dcf..8c0ba174e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java @@ -123,7 +123,7 @@ public static TasksRecord of(Function> fn) { } /** - * id of the task with the node + * The identifier of the task with the node. *

* API name: {@code id} */ @@ -133,7 +133,7 @@ public final String id() { } /** - * task action + * The task action. *

* API name: {@code action} */ @@ -143,7 +143,7 @@ public final String action() { } /** - * unique task id + * The unique task identifier. *

* API name: {@code task_id} */ @@ -153,7 +153,7 @@ public final String taskId() { } /** - * parent task id + * The parent task identifier. *

* API name: {@code parent_task_id} */ @@ -163,7 +163,7 @@ public final String parentTaskId() { } /** - * task type + * The task type. *

* API name: {@code type} */ @@ -173,7 +173,7 @@ public final String type() { } /** - * start time in ms + * The start time in milliseconds. *

* API name: {@code start_time} */ @@ -183,7 +183,7 @@ public final String startTime() { } /** - * start time in HH:MM:SS + * The start time in HH:MM:SS format. *

* API name: {@code timestamp} */ @@ -193,7 +193,7 @@ public final String timestamp() { } /** - * running time ns + * The running time in nanoseconds. *

* API name: {@code running_time_ns} */ @@ -203,7 +203,7 @@ public final String runningTimeNs() { } /** - * running time + * The running time. *

* API name: {@code running_time} */ @@ -213,7 +213,7 @@ public final String runningTime() { } /** - * unique node id + * The unique node identifier. *

* API name: {@code node_id} */ @@ -223,7 +223,7 @@ public final String nodeId() { } /** - * ip address + * The IP address for the node. *

* API name: {@code ip} */ @@ -233,7 +233,7 @@ public final String ip() { } /** - * bound transport port + * The bound transport port for the node. *

* API name: {@code port} */ @@ -243,7 +243,7 @@ public final String port() { } /** - * node name + * The node name. *

* API name: {@code node} */ @@ -253,7 +253,7 @@ public final String node() { } /** - * es version + * The Elasticsearch version. *

* API name: {@code version} */ @@ -263,7 +263,7 @@ public final String version() { } /** - * X-Opaque-ID header + * The X-Opaque-ID header. *

* API name: {@code x_opaque_id} */ @@ -273,7 +273,7 @@ public final String xOpaqueId() { } /** - * task action + * The task action description. *

* API name: {@code description} */ @@ -437,7 +437,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String description; /** - * id of the task with the node + * The identifier of the task with the node. *

* API name: {@code id} */ @@ -447,7 +447,7 @@ public final Builder id(@Nullable String value) { } /** - * task action + * The task action. *

* API name: {@code action} */ @@ -457,7 +457,7 @@ public final Builder action(@Nullable String value) { } /** - * unique task id + * The unique task identifier. *

* API name: {@code task_id} */ @@ -467,7 +467,7 @@ public final Builder taskId(@Nullable String value) { } /** - * parent task id + * The parent task identifier. *

* API name: {@code parent_task_id} */ @@ -477,7 +477,7 @@ public final Builder parentTaskId(@Nullable String value) { } /** - * task type + * The task type. *

* API name: {@code type} */ @@ -487,7 +487,7 @@ public final Builder type(@Nullable String value) { } /** - * start time in ms + * The start time in milliseconds. *

* API name: {@code start_time} */ @@ -497,7 +497,7 @@ public final Builder startTime(@Nullable String value) { } /** - * start time in HH:MM:SS + * The start time in HH:MM:SS format. *

* API name: {@code timestamp} */ @@ -507,7 +507,7 @@ public final Builder timestamp(@Nullable String value) { } /** - * running time ns + * The running time in nanoseconds. *

* API name: {@code running_time_ns} */ @@ -517,7 +517,7 @@ public final Builder runningTimeNs(@Nullable String value) { } /** - * running time + * The running time. *

* API name: {@code running_time} */ @@ -527,7 +527,7 @@ public final Builder runningTime(@Nullable String value) { } /** - * unique node id + * The unique node identifier. *

* API name: {@code node_id} */ @@ -537,7 +537,7 @@ public final Builder nodeId(@Nullable String value) { } /** - * ip address + * The IP address for the node. *

* API name: {@code ip} */ @@ -547,7 +547,7 @@ public final Builder ip(@Nullable String value) { } /** - * bound transport port + * The bound transport port for the node. *

* API name: {@code port} */ @@ -557,7 +557,7 @@ public final Builder port(@Nullable String value) { } /** - * node name + * The node name. *

* API name: {@code node} */ @@ -567,7 +567,7 @@ public final Builder node(@Nullable String value) { } /** - * es version + * The Elasticsearch version. *

* API name: {@code version} */ @@ -577,7 +577,7 @@ public final Builder version(@Nullable String value) { } /** - * X-Opaque-ID header + * The X-Opaque-ID header. *

* API name: {@code x_opaque_id} */ @@ -587,7 +587,7 @@ public final Builder xOpaqueId(@Nullable String value) { } /** - * task action + * The task action description. *

* API name: {@code description} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java index 763f78d59..f9945e20e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java @@ -80,7 +80,7 @@ public static TemplatesRecord of(Function * API name: {@code name} */ @@ -90,7 +90,7 @@ public final String name() { } /** - * template index patterns + * The template index patterns. *

* API name: {@code index_patterns} */ @@ -100,7 +100,7 @@ public final String indexPatterns() { } /** - * template application order/priority number + * The template application order or priority number. *

* API name: {@code order} */ @@ -110,7 +110,7 @@ public final String order() { } /** - * version + * The template version. *

* API name: {@code version} */ @@ -120,7 +120,7 @@ public final String version() { } /** - * component templates comprising index template + * The component templates that comprise the index template. *

* API name: {@code composed_of} */ @@ -196,7 +196,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String composedOf; /** - * template name + * The template name. *

* API name: {@code name} */ @@ -206,7 +206,7 @@ public final Builder name(@Nullable String value) { } /** - * template index patterns + * The template index patterns. *

* API name: {@code index_patterns} */ @@ -216,7 +216,7 @@ public final Builder indexPatterns(@Nullable String value) { } /** - * template application order/priority number + * The template application order or priority number. *

* API name: {@code order} */ @@ -226,7 +226,7 @@ public final Builder order(@Nullable String value) { } /** - * version + * The template version. *

* API name: {@code version} */ @@ -236,7 +236,7 @@ public final Builder version(@Nullable String value) { } /** - * component templates comprising index template + * The component templates that comprise the index template. *

* API name: {@code composed_of} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java index c5a1b792e..8054d0446 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java @@ -140,7 +140,7 @@ public static ThreadPoolRecord of(Function * API name: {@code node_name} */ @@ -150,7 +150,7 @@ public final String nodeName() { } /** - * persistent node id + * The persistent node identifier. *

* API name: {@code node_id} */ @@ -160,7 +160,7 @@ public final String nodeId() { } /** - * ephemeral node id + * The ephemeral node identifier. *

* API name: {@code ephemeral_node_id} */ @@ -170,7 +170,7 @@ public final String ephemeralNodeId() { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -180,7 +180,7 @@ public final String pid() { } /** - * host name + * The host name for the current node. *

* API name: {@code host} */ @@ -190,7 +190,7 @@ public final String host() { } /** - * ip address + * The IP address for the current node. *

* API name: {@code ip} */ @@ -200,7 +200,7 @@ public final String ip() { } /** - * bound transport port + * The bound transport port for the current node. *

* API name: {@code port} */ @@ -210,7 +210,7 @@ public final String port() { } /** - * thread pool name + * The thread pool name. *

* API name: {@code name} */ @@ -220,7 +220,9 @@ public final String name() { } /** - * thread pool type + * The thread pool type. Returned values include fixed, + * fixed_auto_queue_size, direct, and + * scaling. *

* API name: {@code type} */ @@ -230,7 +232,7 @@ public final String type() { } /** - * number of active threads + * The number of active threads in the current thread pool. *

* API name: {@code active} */ @@ -240,7 +242,7 @@ public final String active() { } /** - * number of threads + * The number of threads in the current thread pool. *

* API name: {@code pool_size} */ @@ -250,7 +252,7 @@ public final String poolSize() { } /** - * number of tasks currently in queue + * The number of tasks currently in queue. *

* API name: {@code queue} */ @@ -260,7 +262,7 @@ public final String queue() { } /** - * maximum number of tasks permitted in queue + * The maximum number of tasks permitted in the queue. *

* API name: {@code queue_size} */ @@ -270,7 +272,7 @@ public final String queueSize() { } /** - * number of rejected tasks + * The number of rejected tasks. *

* API name: {@code rejected} */ @@ -280,7 +282,7 @@ public final String rejected() { } /** - * highest number of seen active threads + * The highest number of active threads in the current thread pool. *

* API name: {@code largest} */ @@ -290,7 +292,7 @@ public final String largest() { } /** - * number of completed tasks + * The number of completed tasks. *

* API name: {@code completed} */ @@ -300,7 +302,7 @@ public final String completed() { } /** - * core number of threads in a scaling thread pool + * The core number of active threads allowed in a scaling thread pool. *

* API name: {@code core} */ @@ -310,7 +312,7 @@ public final String core() { } /** - * maximum number of threads in a scaling thread pool + * The maximum number of active threads allowed in a scaling thread pool. *

* API name: {@code max} */ @@ -320,7 +322,7 @@ public final String max() { } /** - * number of threads in a fixed thread pool + * The number of active threads allowed in a fixed thread pool. *

* API name: {@code size} */ @@ -330,7 +332,7 @@ public final String size() { } /** - * thread keep alive time + * The thread keep alive time. *

* API name: {@code keep_alive} */ @@ -526,7 +528,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String keepAlive; /** - * node name + * The node name. *

* API name: {@code node_name} */ @@ -536,7 +538,7 @@ public final Builder nodeName(@Nullable String value) { } /** - * persistent node id + * The persistent node identifier. *

* API name: {@code node_id} */ @@ -546,7 +548,7 @@ public final Builder nodeId(@Nullable String value) { } /** - * ephemeral node id + * The ephemeral node identifier. *

* API name: {@code ephemeral_node_id} */ @@ -556,7 +558,7 @@ public final Builder ephemeralNodeId(@Nullable String value) { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -566,7 +568,7 @@ public final Builder pid(@Nullable String value) { } /** - * host name + * The host name for the current node. *

* API name: {@code host} */ @@ -576,7 +578,7 @@ public final Builder host(@Nullable String value) { } /** - * ip address + * The IP address for the current node. *

* API name: {@code ip} */ @@ -586,7 +588,7 @@ public final Builder ip(@Nullable String value) { } /** - * bound transport port + * The bound transport port for the current node. *

* API name: {@code port} */ @@ -596,7 +598,7 @@ public final Builder port(@Nullable String value) { } /** - * thread pool name + * The thread pool name. *

* API name: {@code name} */ @@ -606,7 +608,9 @@ public final Builder name(@Nullable String value) { } /** - * thread pool type + * The thread pool type. Returned values include fixed, + * fixed_auto_queue_size, direct, and + * scaling. *

* API name: {@code type} */ @@ -616,7 +620,7 @@ public final Builder type(@Nullable String value) { } /** - * number of active threads + * The number of active threads in the current thread pool. *

* API name: {@code active} */ @@ -626,7 +630,7 @@ public final Builder active(@Nullable String value) { } /** - * number of threads + * The number of threads in the current thread pool. *

* API name: {@code pool_size} */ @@ -636,7 +640,7 @@ public final Builder poolSize(@Nullable String value) { } /** - * number of tasks currently in queue + * The number of tasks currently in queue. *

* API name: {@code queue} */ @@ -646,7 +650,7 @@ public final Builder queue(@Nullable String value) { } /** - * maximum number of tasks permitted in queue + * The maximum number of tasks permitted in the queue. *

* API name: {@code queue_size} */ @@ -656,7 +660,7 @@ public final Builder queueSize(@Nullable String value) { } /** - * number of rejected tasks + * The number of rejected tasks. *

* API name: {@code rejected} */ @@ -666,7 +670,7 @@ public final Builder rejected(@Nullable String value) { } /** - * highest number of seen active threads + * The highest number of active threads in the current thread pool. *

* API name: {@code largest} */ @@ -676,7 +680,7 @@ public final Builder largest(@Nullable String value) { } /** - * number of completed tasks + * The number of completed tasks. *

* API name: {@code completed} */ @@ -686,7 +690,7 @@ public final Builder completed(@Nullable String value) { } /** - * core number of threads in a scaling thread pool + * The core number of active threads allowed in a scaling thread pool. *

* API name: {@code core} */ @@ -696,7 +700,7 @@ public final Builder core(@Nullable String value) { } /** - * maximum number of threads in a scaling thread pool + * The maximum number of active threads allowed in a scaling thread pool. *

* API name: {@code max} */ @@ -706,7 +710,7 @@ public final Builder max(@Nullable String value) { } /** - * number of threads in a fixed thread pool + * The number of active threads allowed in a fixed thread pool. *

* API name: {@code size} */ @@ -716,7 +720,7 @@ public final Builder size(@Nullable String value) { } /** - * thread keep alive time + * The thread keep alive time. *

* API name: {@code keep_alive} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java index edad2b8d4..02d49daf1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java @@ -192,7 +192,7 @@ public static TransformsRecord of(Function * API name: {@code id} */ @@ -202,7 +202,10 @@ public final String id() { } /** - * transform state + * The status of the transform. Returned values include: aborting: + * The transform is aborting. + * failed: The transform failed. For more information about the failure, check the reasonfield.indexing: The transform is actively processing data and creating new documents. started: The transform is running but not actively indexing data. stopped: The transform is stopped. stopping`: + * The transform is stopping. *

* API name: {@code state} */ @@ -212,7 +215,7 @@ public final String state() { } /** - * checkpoint + * The sequence number for the checkpoint. *

* API name: {@code checkpoint} */ @@ -222,7 +225,8 @@ public final String checkpoint() { } /** - * the number of documents read from source indices and processed + * The number of documents that have been processed from the source index of the + * transform. *

* API name: {@code documents_processed} */ @@ -232,7 +236,7 @@ public final String documentsProcessed() { } /** - * progress of the checkpoint + * The progress of the next checkpoint that is currently in progress. *

* API name: {@code checkpoint_progress} */ @@ -242,7 +246,8 @@ public final String checkpointProgress() { } /** - * last time transform searched for updates + * The timestamp of the last search in the source indices. This field is shown + * only if the transform is running. *

* API name: {@code last_search_time} */ @@ -252,7 +257,7 @@ public final String lastSearchTime() { } /** - * changes last detected time + * The timestamp when changes were last detected in the source indices. *

* API name: {@code changes_last_detection_time} */ @@ -262,7 +267,7 @@ public final String changesLastDetectionTime() { } /** - * transform creation time + * The time the transform was created. *

* API name: {@code create_time} */ @@ -272,7 +277,8 @@ public final String createTime() { } /** - * the version of Elasticsearch when the transform was created + * The version of Elasticsearch that existed on the node when the transform was + * created. *

* API name: {@code version} */ @@ -282,7 +288,7 @@ public final String version() { } /** - * source index + * The source indices for the transform. *

* API name: {@code source_index} */ @@ -292,7 +298,7 @@ public final String sourceIndex() { } /** - * destination index + * The destination index for the transform. *

* API name: {@code dest_index} */ @@ -302,7 +308,7 @@ public final String destIndex() { } /** - * transform pipeline + * The unique identifier for the ingest pipeline. *

* API name: {@code pipeline} */ @@ -312,7 +318,7 @@ public final String pipeline() { } /** - * description + * The description of the transform. *

* API name: {@code description} */ @@ -322,7 +328,7 @@ public final String description() { } /** - * batch or continuous transform + * The type of transform: batch or continuous. *

* API name: {@code transform_type} */ @@ -332,7 +338,8 @@ public final String transformType() { } /** - * frequency of transform + * The interval between checks for changes in the source indices when the + * transform is running continuously. *

* API name: {@code frequency} */ @@ -342,7 +349,8 @@ public final String frequency() { } /** - * max page search size + * The initial page size that is used for the composite aggregation for each + * checkpoint. *

* API name: {@code max_page_search_size} */ @@ -352,7 +360,7 @@ public final String maxPageSearchSize() { } /** - * docs per second + * The number of input documents per second. *

* API name: {@code docs_per_second} */ @@ -362,7 +370,8 @@ public final String docsPerSecond() { } /** - * reason for the current state + * If a transform has a failed state, these details describe the + * reason for failure. *

* API name: {@code reason} */ @@ -372,7 +381,7 @@ public final String reason() { } /** - * total number of search phases + * The total number of search operations on the source index for the transform. *

* API name: {@code search_total} */ @@ -382,7 +391,7 @@ public final String searchTotal() { } /** - * total number of search failures + * The total number of search failures. *

* API name: {@code search_failure} */ @@ -392,7 +401,7 @@ public final String searchFailure() { } /** - * total search time + * The total amount of search time, in milliseconds. *

* API name: {@code search_time} */ @@ -402,7 +411,7 @@ public final String searchTime() { } /** - * total number of index phases done by the transform + * The total number of index operations done by the transform. *

* API name: {@code index_total} */ @@ -412,7 +421,7 @@ public final String indexTotal() { } /** - * total number of index failures + * The total number of indexing failures. *

* API name: {@code index_failure} */ @@ -422,7 +431,7 @@ public final String indexFailure() { } /** - * total time spent indexing documents + * The total time spent indexing documents, in milliseconds. *

* API name: {@code index_time} */ @@ -432,7 +441,8 @@ public final String indexTime() { } /** - * the number of documents written to the destination index + * The number of documents that have been indexed into the destination index for + * the transform. *

* API name: {@code documents_indexed} */ @@ -442,7 +452,7 @@ public final String documentsIndexed() { } /** - * total time spent deleting documents + * The total time spent deleting documents, in milliseconds. *

* API name: {@code delete_time} */ @@ -452,7 +462,8 @@ public final String deleteTime() { } /** - * the number of documents deleted from the destination index + * The number of documents deleted from the destination index due to the + * retention policy for the transform. *

* API name: {@code documents_deleted} */ @@ -462,7 +473,10 @@ public final String documentsDeleted() { } /** - * the number of times the transform has been triggered + * The number of times the transform has been triggered by the scheduler. For + * example, the scheduler triggers the transform indexer to check for updates or + * ingest new data at an interval specified in the frequency + * property. *

* API name: {@code trigger_count} */ @@ -472,7 +486,8 @@ public final String triggerCount() { } /** - * the number of pages processed + * The number of search or bulk index operations processed. Documents are + * processed in batches instead of individually. *

* API name: {@code pages_processed} */ @@ -482,7 +497,7 @@ public final String pagesProcessed() { } /** - * the total time spent processing documents + * The total time spent processing results, in milliseconds. *

* API name: {@code processing_time} */ @@ -492,7 +507,8 @@ public final String processingTime() { } /** - * exponential average checkpoint processing time (milliseconds) + * The exponential moving average of the duration of the checkpoint, in + * milliseconds. *

* API name: {@code checkpoint_duration_time_exp_avg} */ @@ -502,7 +518,8 @@ public final String checkpointDurationTimeExpAvg() { } /** - * exponential average number of documents indexed + * The exponential moving average of the number of new documents that have been + * indexed. *

* API name: {@code indexed_documents_exp_avg} */ @@ -512,7 +529,8 @@ public final String indexedDocumentsExpAvg() { } /** - * exponential average number of documents processed + * The exponential moving average of the number of documents that have been + * processed. *

* API name: {@code processed_documents_exp_avg} */ @@ -812,7 +830,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String processedDocumentsExpAvg; /** - * the id + * The transform identifier. *

* API name: {@code id} */ @@ -822,7 +840,10 @@ public final Builder id(@Nullable String value) { } /** - * transform state + * The status of the transform. Returned values include: aborting: + * The transform is aborting. + * failed: The transform failed. For more information about the failure, check the reasonfield.indexing: The transform is actively processing data and creating new documents. started: The transform is running but not actively indexing data. stopped: The transform is stopped. stopping`: + * The transform is stopping. *

* API name: {@code state} */ @@ -832,7 +853,7 @@ public final Builder state(@Nullable String value) { } /** - * checkpoint + * The sequence number for the checkpoint. *

* API name: {@code checkpoint} */ @@ -842,7 +863,8 @@ public final Builder checkpoint(@Nullable String value) { } /** - * the number of documents read from source indices and processed + * The number of documents that have been processed from the source index of the + * transform. *

* API name: {@code documents_processed} */ @@ -852,7 +874,7 @@ public final Builder documentsProcessed(@Nullable String value) { } /** - * progress of the checkpoint + * The progress of the next checkpoint that is currently in progress. *

* API name: {@code checkpoint_progress} */ @@ -862,7 +884,8 @@ public final Builder checkpointProgress(@Nullable String value) { } /** - * last time transform searched for updates + * The timestamp of the last search in the source indices. This field is shown + * only if the transform is running. *

* API name: {@code last_search_time} */ @@ -872,7 +895,7 @@ public final Builder lastSearchTime(@Nullable String value) { } /** - * changes last detected time + * The timestamp when changes were last detected in the source indices. *

* API name: {@code changes_last_detection_time} */ @@ -882,7 +905,7 @@ public final Builder changesLastDetectionTime(@Nullable String value) { } /** - * transform creation time + * The time the transform was created. *

* API name: {@code create_time} */ @@ -892,7 +915,8 @@ public final Builder createTime(@Nullable String value) { } /** - * the version of Elasticsearch when the transform was created + * The version of Elasticsearch that existed on the node when the transform was + * created. *

* API name: {@code version} */ @@ -902,7 +926,7 @@ public final Builder version(@Nullable String value) { } /** - * source index + * The source indices for the transform. *

* API name: {@code source_index} */ @@ -912,7 +936,7 @@ public final Builder sourceIndex(@Nullable String value) { } /** - * destination index + * The destination index for the transform. *

* API name: {@code dest_index} */ @@ -922,7 +946,7 @@ public final Builder destIndex(@Nullable String value) { } /** - * transform pipeline + * The unique identifier for the ingest pipeline. *

* API name: {@code pipeline} */ @@ -932,7 +956,7 @@ public final Builder pipeline(@Nullable String value) { } /** - * description + * The description of the transform. *

* API name: {@code description} */ @@ -942,7 +966,7 @@ public final Builder description(@Nullable String value) { } /** - * batch or continuous transform + * The type of transform: batch or continuous. *

* API name: {@code transform_type} */ @@ -952,7 +976,8 @@ public final Builder transformType(@Nullable String value) { } /** - * frequency of transform + * The interval between checks for changes in the source indices when the + * transform is running continuously. *

* API name: {@code frequency} */ @@ -962,7 +987,8 @@ public final Builder frequency(@Nullable String value) { } /** - * max page search size + * The initial page size that is used for the composite aggregation for each + * checkpoint. *

* API name: {@code max_page_search_size} */ @@ -972,7 +998,7 @@ public final Builder maxPageSearchSize(@Nullable String value) { } /** - * docs per second + * The number of input documents per second. *

* API name: {@code docs_per_second} */ @@ -982,7 +1008,8 @@ public final Builder docsPerSecond(@Nullable String value) { } /** - * reason for the current state + * If a transform has a failed state, these details describe the + * reason for failure. *

* API name: {@code reason} */ @@ -992,7 +1019,7 @@ public final Builder reason(@Nullable String value) { } /** - * total number of search phases + * The total number of search operations on the source index for the transform. *

* API name: {@code search_total} */ @@ -1002,7 +1029,7 @@ public final Builder searchTotal(@Nullable String value) { } /** - * total number of search failures + * The total number of search failures. *

* API name: {@code search_failure} */ @@ -1012,7 +1039,7 @@ public final Builder searchFailure(@Nullable String value) { } /** - * total search time + * The total amount of search time, in milliseconds. *

* API name: {@code search_time} */ @@ -1022,7 +1049,7 @@ public final Builder searchTime(@Nullable String value) { } /** - * total number of index phases done by the transform + * The total number of index operations done by the transform. *

* API name: {@code index_total} */ @@ -1032,7 +1059,7 @@ public final Builder indexTotal(@Nullable String value) { } /** - * total number of index failures + * The total number of indexing failures. *

* API name: {@code index_failure} */ @@ -1042,7 +1069,7 @@ public final Builder indexFailure(@Nullable String value) { } /** - * total time spent indexing documents + * The total time spent indexing documents, in milliseconds. *

* API name: {@code index_time} */ @@ -1052,7 +1079,8 @@ public final Builder indexTime(@Nullable String value) { } /** - * the number of documents written to the destination index + * The number of documents that have been indexed into the destination index for + * the transform. *

* API name: {@code documents_indexed} */ @@ -1062,7 +1090,7 @@ public final Builder documentsIndexed(@Nullable String value) { } /** - * total time spent deleting documents + * The total time spent deleting documents, in milliseconds. *

* API name: {@code delete_time} */ @@ -1072,7 +1100,8 @@ public final Builder deleteTime(@Nullable String value) { } /** - * the number of documents deleted from the destination index + * The number of documents deleted from the destination index due to the + * retention policy for the transform. *

* API name: {@code documents_deleted} */ @@ -1082,7 +1111,10 @@ public final Builder documentsDeleted(@Nullable String value) { } /** - * the number of times the transform has been triggered + * The number of times the transform has been triggered by the scheduler. For + * example, the scheduler triggers the transform indexer to check for updates or + * ingest new data at an interval specified in the frequency + * property. *

* API name: {@code trigger_count} */ @@ -1092,7 +1124,8 @@ public final Builder triggerCount(@Nullable String value) { } /** - * the number of pages processed + * The number of search or bulk index operations processed. Documents are + * processed in batches instead of individually. *

* API name: {@code pages_processed} */ @@ -1102,7 +1135,7 @@ public final Builder pagesProcessed(@Nullable String value) { } /** - * the total time spent processing documents + * The total time spent processing results, in milliseconds. *

* API name: {@code processing_time} */ @@ -1112,7 +1145,8 @@ public final Builder processingTime(@Nullable String value) { } /** - * exponential average checkpoint processing time (milliseconds) + * The exponential moving average of the duration of the checkpoint, in + * milliseconds. *

* API name: {@code checkpoint_duration_time_exp_avg} */ @@ -1122,7 +1156,8 @@ public final Builder checkpointDurationTimeExpAvg(@Nullable String value) { } /** - * exponential average number of documents indexed + * The exponential moving average of the number of new documents that have been + * indexed. *

* API name: {@code indexed_documents_exp_avg} */ @@ -1132,7 +1167,8 @@ public final Builder indexedDocumentsExpAvg(@Nullable String value) { } /** - * exponential average number of documents processed + * The exponential moving average of the number of documents that have been + * processed. *

* API name: {@code processed_documents_exp_avg} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java index 842b31ddd..fc78f7cd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java @@ -48,7 +48,10 @@ // typedef: cluster.stats.Request /** - * Returns high-level overview of cluster statistics. + * Returns cluster statistics. It returns basic index metrics (shard numbers, + * store size, memory usage) and information about the current nodes that form + * the cluster (number, roles, os, jvm versions, memory usage, cpu and installed + * plugins). * * @see API * specification @@ -78,7 +81,7 @@ public static ClusterStatsRequest of(Functiontrue, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -100,8 +103,8 @@ public final List nodeId() { /** * Period to wait for each node to respond. If a node does not respond before * its timeout expires, the response does not include its stats. However, timed - * out nodes are included in the response’s _nodes.failed property. Defaults to - * no timeout. + * out nodes are included in the response’s _nodes.failed property. + * Defaults to no timeout. *

* API name: {@code timeout} */ @@ -129,7 +132,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -167,8 +170,8 @@ public final Builder nodeId(String value, String... values) { /** * Period to wait for each node to respond. If a node does not respond before * its timeout expires, the response does not include its stats. However, timed - * out nodes are included in the response’s _nodes.failed property. Defaults to - * no timeout. + * out nodes are included in the response’s _nodes.failed property. + * Defaults to no timeout. *

* API name: {@code timeout} */ @@ -180,8 +183,8 @@ public final Builder timeout(@Nullable Time value) { /** * Period to wait for each node to respond. If a node does not respond before * its timeout expires, the response does not include its stats. However, timed - * out nodes are included in the response’s _nodes.failed property. Defaults to - * no timeout. + * out nodes are included in the response’s _nodes.failed property. + * Defaults to no timeout. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index 29c419730..3e0663ac9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -47,7 +47,9 @@ // typedef: cluster.delete_component_template.Request /** - * Deletes a component template + * Deletes component templates. Component templates are building blocks for + * constructing index templates that specify index mappings, settings, and + * aliases. * * @see API @@ -79,7 +81,8 @@ public static DeleteComponentTemplateRequest of( } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -99,7 +102,8 @@ public final List name() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -126,7 +130,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -136,7 +141,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -171,7 +177,8 @@ public final Builder name(String value, String... values) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -181,7 +188,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java index d03fd4c53..8dbdee211 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java @@ -44,7 +44,8 @@ // typedef: cluster.get_settings.Request /** - * Returns cluster settings. + * Returns cluster-wide settings. By default, it returns only settings that have + * been explicitly defined. * * @see API * specification @@ -79,7 +80,7 @@ public static GetClusterSettingsRequest of(Functiontrue, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -89,7 +90,7 @@ public final Boolean flatSettings() { } /** - * Whether to return all default clusters setting. + * If true, returns default cluster settings from the local node. *

* API name: {@code include_defaults} */ @@ -99,7 +100,8 @@ public final Boolean includeDefaults() { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -109,7 +111,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -140,7 +143,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -150,7 +153,7 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Whether to return all default clusters setting. + * If true, returns default cluster settings from the local node. *

* API name: {@code include_defaults} */ @@ -160,7 +163,8 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -170,7 +174,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -179,7 +184,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -189,7 +195,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index ad62cffda..9c2f62a94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -45,7 +45,7 @@ // typedef: cluster.get_component_template.Request /** - * Returns one or more component templates + * Retrieves information about component templates. * * @see API @@ -85,6 +85,8 @@ public static GetComponentTemplateRequest of(Functiontrue, returns settings in flat format. + *

* API name: {@code flat_settings} */ @Nullable @@ -103,8 +105,8 @@ public final Boolean includeDefaults() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -114,7 +116,8 @@ public final Boolean local() { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -124,7 +127,8 @@ public final Time masterTimeout() { } /** - * The comma separated names of the component templates + * Comma-separated list of component template names used to limit the request. + * Wildcard (*) expressions are supported. *

* API name: {@code name} */ @@ -158,6 +162,8 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** + * If true, returns settings in flat format. + *

* API name: {@code flat_settings} */ public final Builder flatSettings(@Nullable Boolean value) { @@ -176,8 +182,8 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -187,7 +193,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -197,7 +204,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -206,7 +214,8 @@ public final Builder masterTimeout(Function> f } /** - * The comma separated names of the component templates + * Comma-separated list of component template names used to limit the request. + * Wildcard (*) expressions are supported. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index 2f16bb2f4..3d6ef81f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -44,8 +44,14 @@ // typedef: cluster.pending_tasks.Request /** - * Returns a list of any cluster-level changes (e.g. create index, update - * mapping, allocate or fail shard) which have not yet been executed. + * Returns cluster-level changes (such as create index, update mapping, allocate + * or fail shard) that have not yet been executed. NOTE: This API returns a list + * of any pending updates to the cluster state. These are distinct from the + * tasks reported by the Task Management API which include periodic tasks and + * tasks initiated by the user, such as node stats, search queries, or create + * index requests. However, if a user-initiated task such as a create index + * command causes a cluster state update, the activity of this task might be + * reported by both task api and pending cluster tasks API. * * @see API * specification @@ -72,8 +78,8 @@ public static PendingTasksRequest of(Functiontrue, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -83,7 +89,8 @@ public final Boolean local() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -108,8 +115,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time masterTimeout; /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -119,7 +126,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -129,7 +137,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index a596fa4e7..613b1a322 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -51,7 +51,27 @@ // typedef: cluster.put_component_template.Request /** - * Creates or updates a component template + * Creates or updates a component template. Component templates are building + * blocks for constructing index templates that specify index mappings, + * settings, and aliases. + *

+ * An index template can be composed of multiple component templates. To use a + * component template, specify it in an index template’s + * composed_of list. Component templates are only applied to new + * data streams and indices as part of a matching index template. + *

+ * Settings and mappings specified directly in the index template or the create + * index request override any settings or mappings specified in a component + * template. + *

+ * Component templates are only used during index creation. For data streams, + * this includes data stream creation and the creation of a stream’s backing + * indices. Changes to component templates do not affect existing indices, + * including a stream’s backing indices. + *

+ * You can use C-style /* *\/ block comments in component + * templates. You can include comments anywhere in the request body except + * before the opening curly bracket. * * @see API @@ -97,7 +117,9 @@ public static PutComponentTemplateRequest of(Function_meta, replace the template without specifying this information. *

* API name: {@code _meta} */ @@ -121,8 +143,8 @@ public final Boolean allowAutoCreate() { } /** - * Whether the index template should only be added if new or can also replace an - * existing one + * If true, this request cannot replace or update existing + * component templates. *

* API name: {@code create} */ @@ -132,7 +154,8 @@ public final Boolean create() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -142,7 +165,10 @@ public final Time masterTimeout() { } /** - * Required - The name of the template + * Required - Name of the component template to create. Elasticsearch includes + * the following built-in component templates: logs-mappings; + * 'logs-settings; metrics-mappings; metrics-settings;synthetics-mapping; synthetics-settings. Elastic Agent uses these templates to configure backing indices for its data streams. If you use Elastic Agent and want to overwrite one of these templates, set the versionfor your replacement template higher than the current version. If you don’t use Elastic Agent and want to disable all built-in component and index templates, setstack.templates.enabledtofalse` + * using the cluster update settings API. *

* API name: {@code name} */ @@ -162,7 +188,8 @@ public final IndexState template() { /** * Version number used to manage component templates externally. This number - * isn't automatically generated or incremented by Elasticsearch. + * isn't automatically generated or incremented by Elasticsearch. To unset a + * version, replace the template without specifying a version. *

* API name: {@code version} */ @@ -239,7 +266,9 @@ public static class Builder extends RequestBase.AbstractBuilder /** * Optional user metadata about the component template. May have any contents. - * This map is not automatically generated by Elasticsearch. + * This map is not automatically generated by Elasticsearch. This information is + * stored in the cluster state, so keeping it short is preferable. To unset + * _meta, replace the template without specifying this information. *

* API name: {@code _meta} *

@@ -252,7 +281,9 @@ public final Builder meta(Map map) { /** * Optional user metadata about the component template. May have any contents. - * This map is not automatically generated by Elasticsearch. + * This map is not automatically generated by Elasticsearch. This information is + * stored in the cluster state, so keeping it short is preferable. To unset + * _meta, replace the template without specifying this information. *

* API name: {@code _meta} *

@@ -279,8 +310,8 @@ public final Builder allowAutoCreate(@Nullable Boolean value) { } /** - * Whether the index template should only be added if new or can also replace an - * existing one + * If true, this request cannot replace or update existing + * component templates. *

* API name: {@code create} */ @@ -290,7 +321,8 @@ public final Builder create(@Nullable Boolean value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -300,7 +332,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -309,7 +342,10 @@ public final Builder masterTimeout(Function> f } /** - * Required - The name of the template + * Required - Name of the component template to create. Elasticsearch includes + * the following built-in component templates: logs-mappings; + * 'logs-settings; metrics-mappings; metrics-settings;synthetics-mapping; synthetics-settings. Elastic Agent uses these templates to configure backing indices for its data streams. If you use Elastic Agent and want to overwrite one of these templates, set the versionfor your replacement template higher than the current version. If you don’t use Elastic Agent and want to disable all built-in component and index templates, setstack.templates.enabledtofalse` + * using the cluster update settings API. *

* API name: {@code name} */ @@ -341,7 +377,8 @@ public final Builder template(Function * API name: {@code version} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java index 71fe76d60..753065294 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java @@ -84,34 +84,50 @@ public static PendingTask of(Function> fn) { } /** - * Required - API name: {@code executing} + * Required - Indicates whether the pending tasks are currently executing or + * not. + *

+ * API name: {@code executing} */ public final boolean executing() { return this.executing; } /** - * Required - API name: {@code insert_order} + * Required - The number that represents when the task has been inserted into + * the task queue. + *

+ * API name: {@code insert_order} */ public final int insertOrder() { return this.insertOrder; } /** - * Required - API name: {@code priority} + * Required - The priority of the pending task. The valid priorities in + * descending priority order are: IMMEDIATE > + * URGENT > HIGH > NORMAL > + * LOW > LANGUID. + *

+ * API name: {@code priority} */ public final String priority() { return this.priority; } /** - * Required - API name: {@code source} + * Required - A general description of the cluster task that may include a + * reason and origin. + *

+ * API name: {@code source} */ public final String source() { return this.source; } /** + * The time since the task is waiting for being performed. + *

* API name: {@code time_in_queue} */ @Nullable @@ -120,7 +136,10 @@ public final Time timeInQueue() { } /** - * Required - API name: {@code time_in_queue_millis} + * Required - The time expressed in milliseconds since the task is waiting for + * being performed. + *

+ * API name: {@code time_in_queue_millis} */ public final long timeInQueueMillis() { return this.timeInQueueMillis; @@ -185,7 +204,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long timeInQueueMillis; /** - * Required - API name: {@code executing} + * Required - Indicates whether the pending tasks are currently executing or + * not. + *

+ * API name: {@code executing} */ public final Builder executing(boolean value) { this.executing = value; @@ -193,7 +215,10 @@ public final Builder executing(boolean value) { } /** - * Required - API name: {@code insert_order} + * Required - The number that represents when the task has been inserted into + * the task queue. + *

+ * API name: {@code insert_order} */ public final Builder insertOrder(int value) { this.insertOrder = value; @@ -201,7 +226,12 @@ public final Builder insertOrder(int value) { } /** - * Required - API name: {@code priority} + * Required - The priority of the pending task. The valid priorities in + * descending priority order are: IMMEDIATE > + * URGENT > HIGH > NORMAL > + * LOW > LANGUID. + *

+ * API name: {@code priority} */ public final Builder priority(String value) { this.priority = value; @@ -209,7 +239,10 @@ public final Builder priority(String value) { } /** - * Required - API name: {@code source} + * Required - A general description of the cluster task that may include a + * reason and origin. + *

+ * API name: {@code source} */ public final Builder source(String value) { this.source = value; @@ -217,6 +250,8 @@ public final Builder source(String value) { } /** + * The time since the task is waiting for being performed. + *

* API name: {@code time_in_queue} */ public final Builder timeInQueue(@Nullable Time value) { @@ -225,6 +260,8 @@ public final Builder timeInQueue(@Nullable Time value) { } /** + * The time since the task is waiting for being performed. + *

* API name: {@code time_in_queue} */ public final Builder timeInQueue(Function> fn) { @@ -232,7 +269,10 @@ public final Builder timeInQueue(Function> fn) } /** - * Required - API name: {@code time_in_queue_millis} + * Required - The time expressed in milliseconds since the task is waiting for + * being performed. + *

+ * API name: {@code time_in_queue_millis} */ public final Builder timeInQueueMillis(long value) { this.timeInQueueMillis = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java index 420c8f59d..135d8389c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java @@ -49,36 +49,36 @@ */ @JsonpDeserializable public class CharFilterTypes implements JsonpSerializable { - private final List charFilterTypes; - - private final List tokenizerTypes; - - private final List filterTypes; - private final List analyzerTypes; + private final List builtInAnalyzers; + private final List builtInCharFilters; + private final List builtInFilters; + private final List builtInTokenizers; - private final List builtInFilters; + private final List charFilterTypes; - private final List builtInAnalyzers; + private final List filterTypes; + + private final List tokenizerTypes; // --------------------------------------------------------------------------------------------- private CharFilterTypes(Builder builder) { - this.charFilterTypes = ApiTypeHelper.unmodifiableRequired(builder.charFilterTypes, this, "charFilterTypes"); - this.tokenizerTypes = ApiTypeHelper.unmodifiableRequired(builder.tokenizerTypes, this, "tokenizerTypes"); - this.filterTypes = ApiTypeHelper.unmodifiableRequired(builder.filterTypes, this, "filterTypes"); this.analyzerTypes = ApiTypeHelper.unmodifiableRequired(builder.analyzerTypes, this, "analyzerTypes"); + this.builtInAnalyzers = ApiTypeHelper.unmodifiableRequired(builder.builtInAnalyzers, this, "builtInAnalyzers"); this.builtInCharFilters = ApiTypeHelper.unmodifiableRequired(builder.builtInCharFilters, this, "builtInCharFilters"); + this.builtInFilters = ApiTypeHelper.unmodifiableRequired(builder.builtInFilters, this, "builtInFilters"); this.builtInTokenizers = ApiTypeHelper.unmodifiableRequired(builder.builtInTokenizers, this, "builtInTokenizers"); - this.builtInFilters = ApiTypeHelper.unmodifiableRequired(builder.builtInFilters, this, "builtInFilters"); - this.builtInAnalyzers = ApiTypeHelper.unmodifiableRequired(builder.builtInAnalyzers, this, "builtInAnalyzers"); + this.charFilterTypes = ApiTypeHelper.unmodifiableRequired(builder.charFilterTypes, this, "charFilterTypes"); + this.filterTypes = ApiTypeHelper.unmodifiableRequired(builder.filterTypes, this, "filterTypes"); + this.tokenizerTypes = ApiTypeHelper.unmodifiableRequired(builder.tokenizerTypes, this, "tokenizerTypes"); } @@ -87,59 +87,81 @@ public static CharFilterTypes of(Function + * API name: {@code analyzer_types} */ - public final List charFilterTypes() { - return this.charFilterTypes; + public final List analyzerTypes() { + return this.analyzerTypes; } /** - * Required - API name: {@code tokenizer_types} + * Required - Contains statistics about built-in analyzers used in selected + * nodes. + *

+ * API name: {@code built_in_analyzers} */ - public final List tokenizerTypes() { - return this.tokenizerTypes; + public final List builtInAnalyzers() { + return this.builtInAnalyzers; } /** - * Required - API name: {@code filter_types} + * Required - Contains statistics about built-in character filters used in + * selected nodes. + *

+ * API name: {@code built_in_char_filters} */ - public final List filterTypes() { - return this.filterTypes; + public final List builtInCharFilters() { + return this.builtInCharFilters; } /** - * Required - API name: {@code analyzer_types} + * Required - Contains statistics about built-in token filters used in selected + * nodes. + *

+ * API name: {@code built_in_filters} */ - public final List analyzerTypes() { - return this.analyzerTypes; + public final List builtInFilters() { + return this.builtInFilters; } /** - * Required - API name: {@code built_in_char_filters} + * Required - Contains statistics about built-in tokenizers used in selected + * nodes. + *

+ * API name: {@code built_in_tokenizers} */ - public final List builtInCharFilters() { - return this.builtInCharFilters; + public final List builtInTokenizers() { + return this.builtInTokenizers; } /** - * Required - API name: {@code built_in_tokenizers} + * Required - Contains statistics about character filter types used in selected + * nodes. + *

+ * API name: {@code char_filter_types} */ - public final List builtInTokenizers() { - return this.builtInTokenizers; + public final List charFilterTypes() { + return this.charFilterTypes; } /** - * Required - API name: {@code built_in_filters} + * Required - Contains statistics about token filter types used in selected + * nodes. + *

+ * API name: {@code filter_types} */ - public final List builtInFilters() { - return this.builtInFilters; + public final List filterTypes() { + return this.filterTypes; } /** - * Required - API name: {@code built_in_analyzers} + * Required - Contains statistics about tokenizer types used in selected nodes. + *

+ * API name: {@code tokenizer_types} */ - public final List builtInAnalyzers() { - return this.builtInAnalyzers; + public final List tokenizerTypes() { + return this.tokenizerTypes; } /** @@ -153,80 +175,80 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (ApiTypeHelper.isDefined(this.charFilterTypes)) { - generator.writeKey("char_filter_types"); + if (ApiTypeHelper.isDefined(this.analyzerTypes)) { + generator.writeKey("analyzer_types"); generator.writeStartArray(); - for (FieldTypes item0 : this.charFilterTypes) { + for (FieldTypes item0 : this.analyzerTypes) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.tokenizerTypes)) { - generator.writeKey("tokenizer_types"); + if (ApiTypeHelper.isDefined(this.builtInAnalyzers)) { + generator.writeKey("built_in_analyzers"); generator.writeStartArray(); - for (FieldTypes item0 : this.tokenizerTypes) { + for (FieldTypes item0 : this.builtInAnalyzers) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.filterTypes)) { - generator.writeKey("filter_types"); + if (ApiTypeHelper.isDefined(this.builtInCharFilters)) { + generator.writeKey("built_in_char_filters"); generator.writeStartArray(); - for (FieldTypes item0 : this.filterTypes) { + for (FieldTypes item0 : this.builtInCharFilters) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.analyzerTypes)) { - generator.writeKey("analyzer_types"); + if (ApiTypeHelper.isDefined(this.builtInFilters)) { + generator.writeKey("built_in_filters"); generator.writeStartArray(); - for (FieldTypes item0 : this.analyzerTypes) { + for (FieldTypes item0 : this.builtInFilters) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.builtInCharFilters)) { - generator.writeKey("built_in_char_filters"); + if (ApiTypeHelper.isDefined(this.builtInTokenizers)) { + generator.writeKey("built_in_tokenizers"); generator.writeStartArray(); - for (FieldTypes item0 : this.builtInCharFilters) { + for (FieldTypes item0 : this.builtInTokenizers) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.builtInTokenizers)) { - generator.writeKey("built_in_tokenizers"); + if (ApiTypeHelper.isDefined(this.charFilterTypes)) { + generator.writeKey("char_filter_types"); generator.writeStartArray(); - for (FieldTypes item0 : this.builtInTokenizers) { + for (FieldTypes item0 : this.charFilterTypes) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.builtInFilters)) { - generator.writeKey("built_in_filters"); + if (ApiTypeHelper.isDefined(this.filterTypes)) { + generator.writeKey("filter_types"); generator.writeStartArray(); - for (FieldTypes item0 : this.builtInFilters) { + for (FieldTypes item0 : this.filterTypes) { item0.serialize(generator, mapper); } generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.builtInAnalyzers)) { - generator.writeKey("built_in_analyzers"); + if (ApiTypeHelper.isDefined(this.tokenizerTypes)) { + generator.writeKey("tokenizer_types"); generator.writeStartArray(); - for (FieldTypes item0 : this.builtInAnalyzers) { + for (FieldTypes item0 : this.tokenizerTypes) { item0.serialize(generator, mapper); } @@ -248,252 +270,318 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private List charFilterTypes; - - private List tokenizerTypes; - - private List filterTypes; - private List analyzerTypes; + private List builtInAnalyzers; + private List builtInCharFilters; + private List builtInFilters; + private List builtInTokenizers; - private List builtInFilters; + private List charFilterTypes; - private List builtInAnalyzers; + private List filterTypes; + + private List tokenizerTypes; /** - * Required - API name: {@code char_filter_types} + * Required - Contains statistics about analyzer types used in selected nodes. *

- * Adds all elements of list to charFilterTypes. + * API name: {@code analyzer_types} + *

+ * Adds all elements of list to analyzerTypes. */ - public final Builder charFilterTypes(List list) { - this.charFilterTypes = _listAddAll(this.charFilterTypes, list); + public final Builder analyzerTypes(List list) { + this.analyzerTypes = _listAddAll(this.analyzerTypes, list); return this; } /** - * Required - API name: {@code char_filter_types} + * Required - Contains statistics about analyzer types used in selected nodes. *

- * Adds one or more values to charFilterTypes. + * API name: {@code analyzer_types} + *

+ * Adds one or more values to analyzerTypes. */ - public final Builder charFilterTypes(FieldTypes value, FieldTypes... values) { - this.charFilterTypes = _listAdd(this.charFilterTypes, value, values); + public final Builder analyzerTypes(FieldTypes value, FieldTypes... values) { + this.analyzerTypes = _listAdd(this.analyzerTypes, value, values); return this; } /** - * Required - API name: {@code char_filter_types} + * Required - Contains statistics about analyzer types used in selected nodes. *

- * Adds a value to charFilterTypes using a builder lambda. + * API name: {@code analyzer_types} + *

+ * Adds a value to analyzerTypes using a builder lambda. */ - public final Builder charFilterTypes(Function> fn) { - return charFilterTypes(fn.apply(new FieldTypes.Builder()).build()); + public final Builder analyzerTypes(Function> fn) { + return analyzerTypes(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code tokenizer_types} + * Required - Contains statistics about built-in analyzers used in selected + * nodes. *

- * Adds all elements of list to tokenizerTypes. + * API name: {@code built_in_analyzers} + *

+ * Adds all elements of list to builtInAnalyzers. */ - public final Builder tokenizerTypes(List list) { - this.tokenizerTypes = _listAddAll(this.tokenizerTypes, list); + public final Builder builtInAnalyzers(List list) { + this.builtInAnalyzers = _listAddAll(this.builtInAnalyzers, list); return this; } /** - * Required - API name: {@code tokenizer_types} + * Required - Contains statistics about built-in analyzers used in selected + * nodes. *

- * Adds one or more values to tokenizerTypes. + * API name: {@code built_in_analyzers} + *

+ * Adds one or more values to builtInAnalyzers. */ - public final Builder tokenizerTypes(FieldTypes value, FieldTypes... values) { - this.tokenizerTypes = _listAdd(this.tokenizerTypes, value, values); + public final Builder builtInAnalyzers(FieldTypes value, FieldTypes... values) { + this.builtInAnalyzers = _listAdd(this.builtInAnalyzers, value, values); return this; } /** - * Required - API name: {@code tokenizer_types} + * Required - Contains statistics about built-in analyzers used in selected + * nodes. *

- * Adds a value to tokenizerTypes using a builder lambda. + * API name: {@code built_in_analyzers} + *

+ * Adds a value to builtInAnalyzers using a builder lambda. */ - public final Builder tokenizerTypes(Function> fn) { - return tokenizerTypes(fn.apply(new FieldTypes.Builder()).build()); + public final Builder builtInAnalyzers(Function> fn) { + return builtInAnalyzers(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code filter_types} + * Required - Contains statistics about built-in character filters used in + * selected nodes. *

- * Adds all elements of list to filterTypes. + * API name: {@code built_in_char_filters} + *

+ * Adds all elements of list to builtInCharFilters. */ - public final Builder filterTypes(List list) { - this.filterTypes = _listAddAll(this.filterTypes, list); + public final Builder builtInCharFilters(List list) { + this.builtInCharFilters = _listAddAll(this.builtInCharFilters, list); return this; } /** - * Required - API name: {@code filter_types} + * Required - Contains statistics about built-in character filters used in + * selected nodes. *

- * Adds one or more values to filterTypes. + * API name: {@code built_in_char_filters} + *

+ * Adds one or more values to builtInCharFilters. */ - public final Builder filterTypes(FieldTypes value, FieldTypes... values) { - this.filterTypes = _listAdd(this.filterTypes, value, values); + public final Builder builtInCharFilters(FieldTypes value, FieldTypes... values) { + this.builtInCharFilters = _listAdd(this.builtInCharFilters, value, values); return this; } /** - * Required - API name: {@code filter_types} + * Required - Contains statistics about built-in character filters used in + * selected nodes. *

- * Adds a value to filterTypes using a builder lambda. + * API name: {@code built_in_char_filters} + *

+ * Adds a value to builtInCharFilters using a builder lambda. */ - public final Builder filterTypes(Function> fn) { - return filterTypes(fn.apply(new FieldTypes.Builder()).build()); + public final Builder builtInCharFilters(Function> fn) { + return builtInCharFilters(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code analyzer_types} + * Required - Contains statistics about built-in token filters used in selected + * nodes. *

- * Adds all elements of list to analyzerTypes. + * API name: {@code built_in_filters} + *

+ * Adds all elements of list to builtInFilters. */ - public final Builder analyzerTypes(List list) { - this.analyzerTypes = _listAddAll(this.analyzerTypes, list); + public final Builder builtInFilters(List list) { + this.builtInFilters = _listAddAll(this.builtInFilters, list); return this; } /** - * Required - API name: {@code analyzer_types} + * Required - Contains statistics about built-in token filters used in selected + * nodes. *

- * Adds one or more values to analyzerTypes. + * API name: {@code built_in_filters} + *

+ * Adds one or more values to builtInFilters. */ - public final Builder analyzerTypes(FieldTypes value, FieldTypes... values) { - this.analyzerTypes = _listAdd(this.analyzerTypes, value, values); + public final Builder builtInFilters(FieldTypes value, FieldTypes... values) { + this.builtInFilters = _listAdd(this.builtInFilters, value, values); return this; } /** - * Required - API name: {@code analyzer_types} + * Required - Contains statistics about built-in token filters used in selected + * nodes. *

- * Adds a value to analyzerTypes using a builder lambda. + * API name: {@code built_in_filters} + *

+ * Adds a value to builtInFilters using a builder lambda. */ - public final Builder analyzerTypes(Function> fn) { - return analyzerTypes(fn.apply(new FieldTypes.Builder()).build()); + public final Builder builtInFilters(Function> fn) { + return builtInFilters(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code built_in_char_filters} + * Required - Contains statistics about built-in tokenizers used in selected + * nodes. *

- * Adds all elements of list to builtInCharFilters. + * API name: {@code built_in_tokenizers} + *

+ * Adds all elements of list to builtInTokenizers. */ - public final Builder builtInCharFilters(List list) { - this.builtInCharFilters = _listAddAll(this.builtInCharFilters, list); + public final Builder builtInTokenizers(List list) { + this.builtInTokenizers = _listAddAll(this.builtInTokenizers, list); return this; } /** - * Required - API name: {@code built_in_char_filters} + * Required - Contains statistics about built-in tokenizers used in selected + * nodes. *

- * Adds one or more values to builtInCharFilters. + * API name: {@code built_in_tokenizers} + *

+ * Adds one or more values to builtInTokenizers. */ - public final Builder builtInCharFilters(FieldTypes value, FieldTypes... values) { - this.builtInCharFilters = _listAdd(this.builtInCharFilters, value, values); + public final Builder builtInTokenizers(FieldTypes value, FieldTypes... values) { + this.builtInTokenizers = _listAdd(this.builtInTokenizers, value, values); return this; } /** - * Required - API name: {@code built_in_char_filters} + * Required - Contains statistics about built-in tokenizers used in selected + * nodes. *

- * Adds a value to builtInCharFilters using a builder lambda. + * API name: {@code built_in_tokenizers} + *

+ * Adds a value to builtInTokenizers using a builder lambda. */ - public final Builder builtInCharFilters(Function> fn) { - return builtInCharFilters(fn.apply(new FieldTypes.Builder()).build()); + public final Builder builtInTokenizers(Function> fn) { + return builtInTokenizers(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code built_in_tokenizers} + * Required - Contains statistics about character filter types used in selected + * nodes. *

- * Adds all elements of list to builtInTokenizers. + * API name: {@code char_filter_types} + *

+ * Adds all elements of list to charFilterTypes. */ - public final Builder builtInTokenizers(List list) { - this.builtInTokenizers = _listAddAll(this.builtInTokenizers, list); + public final Builder charFilterTypes(List list) { + this.charFilterTypes = _listAddAll(this.charFilterTypes, list); return this; } /** - * Required - API name: {@code built_in_tokenizers} + * Required - Contains statistics about character filter types used in selected + * nodes. *

- * Adds one or more values to builtInTokenizers. + * API name: {@code char_filter_types} + *

+ * Adds one or more values to charFilterTypes. */ - public final Builder builtInTokenizers(FieldTypes value, FieldTypes... values) { - this.builtInTokenizers = _listAdd(this.builtInTokenizers, value, values); + public final Builder charFilterTypes(FieldTypes value, FieldTypes... values) { + this.charFilterTypes = _listAdd(this.charFilterTypes, value, values); return this; } /** - * Required - API name: {@code built_in_tokenizers} + * Required - Contains statistics about character filter types used in selected + * nodes. *

- * Adds a value to builtInTokenizers using a builder lambda. + * API name: {@code char_filter_types} + *

+ * Adds a value to charFilterTypes using a builder lambda. */ - public final Builder builtInTokenizers(Function> fn) { - return builtInTokenizers(fn.apply(new FieldTypes.Builder()).build()); + public final Builder charFilterTypes(Function> fn) { + return charFilterTypes(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code built_in_filters} + * Required - Contains statistics about token filter types used in selected + * nodes. *

- * Adds all elements of list to builtInFilters. + * API name: {@code filter_types} + *

+ * Adds all elements of list to filterTypes. */ - public final Builder builtInFilters(List list) { - this.builtInFilters = _listAddAll(this.builtInFilters, list); + public final Builder filterTypes(List list) { + this.filterTypes = _listAddAll(this.filterTypes, list); return this; } /** - * Required - API name: {@code built_in_filters} + * Required - Contains statistics about token filter types used in selected + * nodes. *

- * Adds one or more values to builtInFilters. + * API name: {@code filter_types} + *

+ * Adds one or more values to filterTypes. */ - public final Builder builtInFilters(FieldTypes value, FieldTypes... values) { - this.builtInFilters = _listAdd(this.builtInFilters, value, values); + public final Builder filterTypes(FieldTypes value, FieldTypes... values) { + this.filterTypes = _listAdd(this.filterTypes, value, values); return this; } /** - * Required - API name: {@code built_in_filters} + * Required - Contains statistics about token filter types used in selected + * nodes. *

- * Adds a value to builtInFilters using a builder lambda. + * API name: {@code filter_types} + *

+ * Adds a value to filterTypes using a builder lambda. */ - public final Builder builtInFilters(Function> fn) { - return builtInFilters(fn.apply(new FieldTypes.Builder()).build()); + public final Builder filterTypes(Function> fn) { + return filterTypes(fn.apply(new FieldTypes.Builder()).build()); } /** - * Required - API name: {@code built_in_analyzers} + * Required - Contains statistics about tokenizer types used in selected nodes. *

- * Adds all elements of list to builtInAnalyzers. + * API name: {@code tokenizer_types} + *

+ * Adds all elements of list to tokenizerTypes. */ - public final Builder builtInAnalyzers(List list) { - this.builtInAnalyzers = _listAddAll(this.builtInAnalyzers, list); + public final Builder tokenizerTypes(List list) { + this.tokenizerTypes = _listAddAll(this.tokenizerTypes, list); return this; } /** - * Required - API name: {@code built_in_analyzers} + * Required - Contains statistics about tokenizer types used in selected nodes. *

- * Adds one or more values to builtInAnalyzers. + * API name: {@code tokenizer_types} + *

+ * Adds one or more values to tokenizerTypes. */ - public final Builder builtInAnalyzers(FieldTypes value, FieldTypes... values) { - this.builtInAnalyzers = _listAdd(this.builtInAnalyzers, value, values); + public final Builder tokenizerTypes(FieldTypes value, FieldTypes... values) { + this.tokenizerTypes = _listAdd(this.tokenizerTypes, value, values); return this; } /** - * Required - API name: {@code built_in_analyzers} + * Required - Contains statistics about tokenizer types used in selected nodes. *

- * Adds a value to builtInAnalyzers using a builder lambda. + * API name: {@code tokenizer_types} + *

+ * Adds a value to tokenizerTypes using a builder lambda. */ - public final Builder builtInAnalyzers(Function> fn) { - return builtInAnalyzers(fn.apply(new FieldTypes.Builder()).build()); + public final Builder tokenizerTypes(Function> fn) { + return tokenizerTypes(fn.apply(new FieldTypes.Builder()).build()); } @Override @@ -524,20 +612,20 @@ public CharFilterTypes build() { protected static void setupCharFilterTypesDeserializer(ObjectDeserializer op) { - op.add(Builder::charFilterTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), - "char_filter_types"); - op.add(Builder::tokenizerTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), - "tokenizer_types"); - op.add(Builder::filterTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), "filter_types"); op.add(Builder::analyzerTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), "analyzer_types"); + op.add(Builder::builtInAnalyzers, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), + "built_in_analyzers"); op.add(Builder::builtInCharFilters, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), "built_in_char_filters"); - op.add(Builder::builtInTokenizers, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), - "built_in_tokenizers"); op.add(Builder::builtInFilters, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), "built_in_filters"); - op.add(Builder::builtInAnalyzers, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), - "built_in_analyzers"); + op.add(Builder::builtInTokenizers, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), + "built_in_tokenizers"); + op.add(Builder::charFilterTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), + "char_filter_types"); + op.add(Builder::filterTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), "filter_types"); + op.add(Builder::tokenizerTypes, JsonpDeserializer.arrayDeserializer(FieldTypes._DESERIALIZER), + "tokenizer_types"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java index 0b24b0e13..bcc7691a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java @@ -69,21 +69,32 @@ public static ClusterFileSystem of(Functionnodes.fs.free_in_byes. This is the + * actual amount of free disk space the selected Elasticsearch nodes can use. + *

+ * API name: {@code available_in_bytes} */ public final long availableInBytes() { return this.availableInBytes; } /** - * Required - API name: {@code free_in_bytes} + * Required - Total number of unallocated bytes in file stores across all + * selected nodes. + *

+ * API name: {@code free_in_bytes} */ public final long freeInBytes() { return this.freeInBytes; } /** - * Required - API name: {@code total_in_bytes} + * Required - Total size, in bytes, of all file stores across all selected + * nodes. + *

+ * API name: {@code total_in_bytes} */ public final long totalInBytes() { return this.totalInBytes; @@ -130,7 +141,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalInBytes; /** - * Required - API name: {@code available_in_bytes} + * Required - Total number of bytes available to JVM in file stores across all + * selected nodes. Depending on operating system or process-level restrictions, + * this number may be less than nodes.fs.free_in_byes. This is the + * actual amount of free disk space the selected Elasticsearch nodes can use. + *

+ * API name: {@code available_in_bytes} */ public final Builder availableInBytes(long value) { this.availableInBytes = value; @@ -138,7 +154,10 @@ public final Builder availableInBytes(long value) { } /** - * Required - API name: {@code free_in_bytes} + * Required - Total number of unallocated bytes in file stores across all + * selected nodes. + *

+ * API name: {@code free_in_bytes} */ public final Builder freeInBytes(long value) { this.freeInBytes = value; @@ -146,7 +165,10 @@ public final Builder freeInBytes(long value) { } /** - * Required - API name: {@code total_in_bytes} + * Required - Total size, in bytes, of all file stores across all selected + * nodes. + *

+ * API name: {@code total_in_bytes} */ public final Builder totalInBytes(long value) { this.totalInBytes = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java index c05f920b5..6aa8c598b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java @@ -55,6 +55,8 @@ */ @JsonpDeserializable public class ClusterIndices implements JsonpSerializable { + private final CharFilterTypes analysis; + private final CompletionStats completion; private final long count; @@ -73,14 +75,13 @@ public class ClusterIndices implements JsonpSerializable { private final FieldTypesMappings mappings; - private final CharFilterTypes analysis; - private final List versions; // --------------------------------------------------------------------------------------------- private ClusterIndices(Builder builder) { + this.analysis = ApiTypeHelper.requireNonNull(builder.analysis, this, "analysis"); this.completion = ApiTypeHelper.requireNonNull(builder.completion, this, "completion"); this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); this.docs = ApiTypeHelper.requireNonNull(builder.docs, this, "docs"); @@ -90,7 +91,6 @@ private ClusterIndices(Builder builder) { this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); this.store = ApiTypeHelper.requireNonNull(builder.store, this, "store"); this.mappings = ApiTypeHelper.requireNonNull(builder.mappings, this, "mappings"); - this.analysis = ApiTypeHelper.requireNonNull(builder.analysis, this, "analysis"); this.versions = ApiTypeHelper.unmodifiable(builder.versions); } @@ -99,6 +99,16 @@ public static ClusterIndices of(Function> return fn.apply(new Builder()).build(); } + /** + * Required - Contains statistics about analyzers and analyzer components used + * in selected nodes. + *

+ * API name: {@code analysis} + */ + public final CharFilterTypes analysis() { + return this.analysis; + } + /** * Required - Contains statistics about memory used for completion in selected * nodes. @@ -184,16 +194,9 @@ public final FieldTypesMappings mappings() { } /** - * Required - Contains statistics about analyzers and analyzer components used - * in selected nodes. + * Contains statistics about analyzers and analyzer components used in selected + * nodes. *

- * API name: {@code analysis} - */ - public final CharFilterTypes analysis() { - return this.analysis; - } - - /** * API name: {@code versions} */ public final List versions() { @@ -211,6 +214,9 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeKey("analysis"); + this.analysis.serialize(generator, mapper); + generator.writeKey("completion"); this.completion.serialize(generator, mapper); @@ -238,9 +244,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("mappings"); this.mappings.serialize(generator, mapper); - generator.writeKey("analysis"); - this.analysis.serialize(generator, mapper); - if (ApiTypeHelper.isDefined(this.versions)) { generator.writeKey("versions"); generator.writeStartArray(); @@ -266,6 +269,8 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private CharFilterTypes analysis; + private CompletionStats completion; private Long count; @@ -284,11 +289,30 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FieldTypesMappings mappings; - private CharFilterTypes analysis; - @Nullable private List versions; + /** + * Required - Contains statistics about analyzers and analyzer components used + * in selected nodes. + *

+ * API name: {@code analysis} + */ + public final Builder analysis(CharFilterTypes value) { + this.analysis = value; + return this; + } + + /** + * Required - Contains statistics about analyzers and analyzer components used + * in selected nodes. + *

+ * API name: {@code analysis} + */ + public final Builder analysis(Function> fn) { + return this.analysis(fn.apply(new CharFilterTypes.Builder()).build()); + } + /** * Required - Contains statistics about memory used for completion in selected * nodes. @@ -458,27 +482,9 @@ public final Builder mappings(Function - * API name: {@code analysis} - */ - public final Builder analysis(CharFilterTypes value) { - this.analysis = value; - return this; - } - - /** - * Required - Contains statistics about analyzers and analyzer components used - * in selected nodes. + * Contains statistics about analyzers and analyzer components used in selected + * nodes. *

- * API name: {@code analysis} - */ - public final Builder analysis(Function> fn) { - return this.analysis(fn.apply(new CharFilterTypes.Builder()).build()); - } - - /** * API name: {@code versions} *

* Adds all elements of list to versions. @@ -489,6 +495,9 @@ public final Builder versions(List list) { } /** + * Contains statistics about analyzers and analyzer components used in selected + * nodes. + *

* API name: {@code versions} *

* Adds one or more values to versions. @@ -499,6 +508,9 @@ public final Builder versions(IndicesVersions value, IndicesVersions... values) } /** + * Contains statistics about analyzers and analyzer components used in selected + * nodes. + *

* API name: {@code versions} *

* Adds a value to versions using a builder lambda. @@ -535,6 +547,7 @@ public ClusterIndices build() { protected static void setupClusterIndicesDeserializer(ObjectDeserializer op) { + op.add(Builder::analysis, CharFilterTypes._DESERIALIZER, "analysis"); op.add(Builder::completion, CompletionStats._DESERIALIZER, "completion"); op.add(Builder::count, JsonpDeserializer.longDeserializer(), "count"); op.add(Builder::docs, DocStats._DESERIALIZER, "docs"); @@ -544,7 +557,6 @@ protected static void setupClusterIndicesDeserializer(ObjectDeserializer> fn) { } /** - * Required - API name: {@code max_uptime_in_millis} + * Required - Uptime duration, in milliseconds, since JVM last started. + *

+ * API name: {@code max_uptime_in_millis} */ public final long maxUptimeInMillis() { return this.maxUptimeInMillis; } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final ClusterJvmMemory mem() { return this.mem; } /** - * Required - API name: {@code threads} + * Required - Number of active threads in use by JVM across all selected nodes. + *

+ * API name: {@code threads} */ public final long threads() { return this.threads; } /** - * Required - API name: {@code versions} + * Required - Contains statistics about the JVM versions used by selected nodes. + *

+ * API name: {@code versions} */ public final List versions() { return this.versions; @@ -154,7 +162,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List versions; /** - * Required - API name: {@code max_uptime_in_millis} + * Required - Uptime duration, in milliseconds, since JVM last started. + *

+ * API name: {@code max_uptime_in_millis} */ public final Builder maxUptimeInMillis(long value) { this.maxUptimeInMillis = value; @@ -162,7 +172,9 @@ public final Builder maxUptimeInMillis(long value) { } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final Builder mem(ClusterJvmMemory value) { this.mem = value; @@ -170,14 +182,18 @@ public final Builder mem(ClusterJvmMemory value) { } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final Builder mem(Function> fn) { return this.mem(fn.apply(new ClusterJvmMemory.Builder()).build()); } /** - * Required - API name: {@code threads} + * Required - Number of active threads in use by JVM across all selected nodes. + *

+ * API name: {@code threads} */ public final Builder threads(long value) { this.threads = value; @@ -185,7 +201,9 @@ public final Builder threads(long value) { } /** - * Required - API name: {@code versions} + * Required - Contains statistics about the JVM versions used by selected nodes. + *

+ * API name: {@code versions} *

* Adds all elements of list to versions. */ @@ -195,7 +213,9 @@ public final Builder versions(List list) { } /** - * Required - API name: {@code versions} + * Required - Contains statistics about the JVM versions used by selected nodes. + *

+ * API name: {@code versions} *

* Adds one or more values to versions. */ @@ -205,7 +225,9 @@ public final Builder versions(ClusterJvmVersion value, ClusterJvmVersion... valu } /** - * Required - API name: {@code versions} + * Required - Contains statistics about the JVM versions used by selected nodes. + *

+ * API name: {@code versions} *

* Adds a value to versions using a builder lambda. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java index 62ad45553..850f9cdb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java @@ -66,14 +66,20 @@ public static ClusterJvmMemory of(Function + * API name: {@code heap_max_in_bytes} */ public final long heapMaxInBytes() { return this.heapMaxInBytes; } /** - * Required - API name: {@code heap_used_in_bytes} + * Required - Memory, in bytes, currently in use by the heap across all selected + * nodes. + *

+ * API name: {@code heap_used_in_bytes} */ public final long heapUsedInBytes() { return this.heapUsedInBytes; @@ -115,7 +121,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long heapUsedInBytes; /** - * Required - API name: {@code heap_max_in_bytes} + * Required - Maximum amount of memory, in bytes, available for use by the heap + * across all selected nodes. + *

+ * API name: {@code heap_max_in_bytes} */ public final Builder heapMaxInBytes(long value) { this.heapMaxInBytes = value; @@ -123,7 +132,10 @@ public final Builder heapMaxInBytes(long value) { } /** - * Required - API name: {@code heap_used_in_bytes} + * Required - Memory, in bytes, currently in use by the heap across all selected + * nodes. + *

+ * API name: {@code heap_used_in_bytes} */ public final Builder heapUsedInBytes(long value) { this.heapUsedInBytes = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java index 87c25c19c..17b945cf0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java @@ -84,49 +84,65 @@ public static ClusterJvmVersion of(Functiontrue. All distributions come with a bundled + * Java Development Kit (JDK). + *

+ * API name: {@code bundled_jdk} */ public final boolean bundledJdk() { return this.bundledJdk; } /** - * Required - API name: {@code count} + * Required - Total number of selected nodes using JVM. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code using_bundled_jdk} + * Required - If true, a bundled JDK is in use by JVM. + *

+ * API name: {@code using_bundled_jdk} */ public final boolean usingBundledJdk() { return this.usingBundledJdk; } /** - * Required - API name: {@code version} + * Required - Version of JVM used by one or more selected nodes. + *

+ * API name: {@code version} */ public final String version() { return this.version; } /** - * Required - API name: {@code vm_name} + * Required - Name of the JVM. + *

+ * API name: {@code vm_name} */ public final String vmName() { return this.vmName; } /** - * Required - API name: {@code vm_vendor} + * Required - Vendor of the JVM. + *

+ * API name: {@code vm_vendor} */ public final String vmVendor() { return this.vmVendor; } /** - * Required - API name: {@code vm_version} + * Required - Full version number of JVM. The full version number includes a + * plus sign (+) followed by the build number. + *

+ * API name: {@code vm_version} */ public final String vmVersion() { return this.vmVersion; @@ -193,7 +209,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String vmVersion; /** - * Required - API name: {@code bundled_jdk} + * Required - Always true. All distributions come with a bundled + * Java Development Kit (JDK). + *

+ * API name: {@code bundled_jdk} */ public final Builder bundledJdk(boolean value) { this.bundledJdk = value; @@ -201,7 +220,9 @@ public final Builder bundledJdk(boolean value) { } /** - * Required - API name: {@code count} + * Required - Total number of selected nodes using JVM. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -209,7 +230,9 @@ public final Builder count(int value) { } /** - * Required - API name: {@code using_bundled_jdk} + * Required - If true, a bundled JDK is in use by JVM. + *

+ * API name: {@code using_bundled_jdk} */ public final Builder usingBundledJdk(boolean value) { this.usingBundledJdk = value; @@ -217,7 +240,9 @@ public final Builder usingBundledJdk(boolean value) { } /** - * Required - API name: {@code version} + * Required - Version of JVM used by one or more selected nodes. + *

+ * API name: {@code version} */ public final Builder version(String value) { this.version = value; @@ -225,7 +250,9 @@ public final Builder version(String value) { } /** - * Required - API name: {@code vm_name} + * Required - Name of the JVM. + *

+ * API name: {@code vm_name} */ public final Builder vmName(String value) { this.vmName = value; @@ -233,7 +260,9 @@ public final Builder vmName(String value) { } /** - * Required - API name: {@code vm_vendor} + * Required - Vendor of the JVM. + *

+ * API name: {@code vm_vendor} */ public final Builder vmVendor(String value) { this.vmVendor = value; @@ -241,7 +270,10 @@ public final Builder vmVendor(String value) { } /** - * Required - API name: {@code vm_version} + * Required - Full version number of JVM. The full version number includes a + * plus sign (+) followed by the build number. + *

+ * API name: {@code vm_version} */ public final Builder vmVersion(String value) { this.vmVersion = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java index 7514650fe..0fc5e3f51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java @@ -69,14 +69,20 @@ public static ClusterNetworkTypes of(Function + * API name: {@code http_types} */ public final Map httpTypes() { return this.httpTypes; } /** - * Required - API name: {@code transport_types} + * Required - Contains statistics about the transport network types used by + * selected nodes. + *

+ * API name: {@code transport_types} */ public final Map transportTypes() { return this.transportTypes; @@ -137,7 +143,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Map transportTypes; /** - * Required - API name: {@code http_types} + * Required - Contains statistics about the HTTP network types used by selected + * nodes. + *

+ * API name: {@code http_types} *

* Adds all entries of map to httpTypes. */ @@ -147,7 +156,10 @@ public final Builder httpTypes(Map map) { } /** - * Required - API name: {@code http_types} + * Required - Contains statistics about the HTTP network types used by selected + * nodes. + *

+ * API name: {@code http_types} *

* Adds an entry to httpTypes. */ @@ -157,7 +169,10 @@ public final Builder httpTypes(String key, Integer value) { } /** - * Required - API name: {@code transport_types} + * Required - Contains statistics about the transport network types used by + * selected nodes. + *

+ * API name: {@code transport_types} *

* Adds all entries of map to transportTypes. */ @@ -167,7 +182,10 @@ public final Builder transportTypes(Map map) { } /** - * Required - API name: {@code transport_types} + * Required - Contains statistics about the transport network types used by + * selected nodes. + *

+ * API name: {@code transport_types} *

* Adds an entry to transportTypes. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java index d226c970f..8b1cb111e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java @@ -53,50 +53,50 @@ public class ClusterNodeCount implements JsonpSerializable { private final int data; - private final int ingest; - - private final int master; - - private final int total; - - private final int votingOnly; - private final int dataCold; + private final int dataContent; + @Nullable private final Integer dataFrozen; - private final int dataContent; + private final int dataHot; private final int dataWarm; - private final int dataHot; + private final int ingest; + + private final int master; private final int ml; private final int remoteClusterClient; + private final int total; + private final int transform; + private final int votingOnly; + // --------------------------------------------------------------------------------------------- private ClusterNodeCount(Builder builder) { this.coordinatingOnly = ApiTypeHelper.requireNonNull(builder.coordinatingOnly, this, "coordinatingOnly"); this.data = ApiTypeHelper.requireNonNull(builder.data, this, "data"); - this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); - this.master = ApiTypeHelper.requireNonNull(builder.master, this, "master"); - this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); - this.votingOnly = ApiTypeHelper.requireNonNull(builder.votingOnly, this, "votingOnly"); this.dataCold = ApiTypeHelper.requireNonNull(builder.dataCold, this, "dataCold"); - this.dataFrozen = builder.dataFrozen; this.dataContent = ApiTypeHelper.requireNonNull(builder.dataContent, this, "dataContent"); - this.dataWarm = ApiTypeHelper.requireNonNull(builder.dataWarm, this, "dataWarm"); + this.dataFrozen = builder.dataFrozen; this.dataHot = ApiTypeHelper.requireNonNull(builder.dataHot, this, "dataHot"); + this.dataWarm = ApiTypeHelper.requireNonNull(builder.dataWarm, this, "dataWarm"); + this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); + this.master = ApiTypeHelper.requireNonNull(builder.master, this, "master"); this.ml = ApiTypeHelper.requireNonNull(builder.ml, this, "ml"); this.remoteClusterClient = ApiTypeHelper.requireNonNull(builder.remoteClusterClient, this, "remoteClusterClient"); + this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); this.transform = ApiTypeHelper.requireNonNull(builder.transform, this, "transform"); + this.votingOnly = ApiTypeHelper.requireNonNull(builder.votingOnly, this, "votingOnly"); } @@ -119,38 +119,17 @@ public final int data() { } /** - * Required - API name: {@code ingest} - */ - public final int ingest() { - return this.ingest; - } - - /** - * Required - API name: {@code master} - */ - public final int master() { - return this.master; - } - - /** - * Required - API name: {@code total} - */ - public final int total() { - return this.total; - } - - /** - * Required - API name: {@code voting_only} + * Required - API name: {@code data_cold} */ - public final int votingOnly() { - return this.votingOnly; + public final int dataCold() { + return this.dataCold; } /** - * Required - API name: {@code data_cold} + * Required - API name: {@code data_content} */ - public final int dataCold() { - return this.dataCold; + public final int dataContent() { + return this.dataContent; } /** @@ -162,10 +141,10 @@ public final Integer dataFrozen() { } /** - * Required - API name: {@code data_content} + * Required - API name: {@code data_hot} */ - public final int dataContent() { - return this.dataContent; + public final int dataHot() { + return this.dataHot; } /** @@ -176,10 +155,17 @@ public final int dataWarm() { } /** - * Required - API name: {@code data_hot} + * Required - API name: {@code ingest} */ - public final int dataHot() { - return this.dataHot; + public final int ingest() { + return this.ingest; + } + + /** + * Required - API name: {@code master} + */ + public final int master() { + return this.master; } /** @@ -196,6 +182,13 @@ public final int remoteClusterClient() { return this.remoteClusterClient; } + /** + * Required - API name: {@code total} + */ + public final int total() { + return this.total; + } + /** * Required - API name: {@code transform} */ @@ -203,6 +196,13 @@ public final int transform() { return this.transform; } + /** + * Required - API name: {@code voting_only} + */ + public final int votingOnly() { + return this.votingOnly; + } + /** * Serialize this object to JSON. */ @@ -220,34 +220,28 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("data"); generator.write(this.data); - generator.writeKey("ingest"); - generator.write(this.ingest); - - generator.writeKey("master"); - generator.write(this.master); - - generator.writeKey("total"); - generator.write(this.total); - - generator.writeKey("voting_only"); - generator.write(this.votingOnly); - generator.writeKey("data_cold"); generator.write(this.dataCold); + generator.writeKey("data_content"); + generator.write(this.dataContent); + if (this.dataFrozen != null) { generator.writeKey("data_frozen"); generator.write(this.dataFrozen); } - generator.writeKey("data_content"); - generator.write(this.dataContent); + generator.writeKey("data_hot"); + generator.write(this.dataHot); generator.writeKey("data_warm"); generator.write(this.dataWarm); - generator.writeKey("data_hot"); - generator.write(this.dataHot); + generator.writeKey("ingest"); + generator.write(this.ingest); + + generator.writeKey("master"); + generator.write(this.master); generator.writeKey("ml"); generator.write(this.ml); @@ -255,9 +249,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("remote_cluster_client"); generator.write(this.remoteClusterClient); + generator.writeKey("total"); + generator.write(this.total); + generator.writeKey("transform"); generator.write(this.transform); + generator.writeKey("voting_only"); + generator.write(this.votingOnly); + } @Override @@ -276,31 +276,31 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer data; - private Integer ingest; - - private Integer master; - - private Integer total; - - private Integer votingOnly; - private Integer dataCold; + private Integer dataContent; + @Nullable private Integer dataFrozen; - private Integer dataContent; + private Integer dataHot; private Integer dataWarm; - private Integer dataHot; + private Integer ingest; + + private Integer master; private Integer ml; private Integer remoteClusterClient; + private Integer total; + private Integer transform; + private Integer votingOnly; + /** * Required - API name: {@code coordinating_only} */ @@ -318,42 +318,18 @@ public final Builder data(int value) { } /** - * Required - API name: {@code ingest} - */ - public final Builder ingest(int value) { - this.ingest = value; - return this; - } - - /** - * Required - API name: {@code master} - */ - public final Builder master(int value) { - this.master = value; - return this; - } - - /** - * Required - API name: {@code total} - */ - public final Builder total(int value) { - this.total = value; - return this; - } - - /** - * Required - API name: {@code voting_only} + * Required - API name: {@code data_cold} */ - public final Builder votingOnly(int value) { - this.votingOnly = value; + public final Builder dataCold(int value) { + this.dataCold = value; return this; } /** - * Required - API name: {@code data_cold} + * Required - API name: {@code data_content} */ - public final Builder dataCold(int value) { - this.dataCold = value; + public final Builder dataContent(int value) { + this.dataContent = value; return this; } @@ -366,10 +342,10 @@ public final Builder dataFrozen(@Nullable Integer value) { } /** - * Required - API name: {@code data_content} + * Required - API name: {@code data_hot} */ - public final Builder dataContent(int value) { - this.dataContent = value; + public final Builder dataHot(int value) { + this.dataHot = value; return this; } @@ -382,10 +358,18 @@ public final Builder dataWarm(int value) { } /** - * Required - API name: {@code data_hot} + * Required - API name: {@code ingest} */ - public final Builder dataHot(int value) { - this.dataHot = value; + public final Builder ingest(int value) { + this.ingest = value; + return this; + } + + /** + * Required - API name: {@code master} + */ + public final Builder master(int value) { + this.master = value; return this; } @@ -405,6 +389,14 @@ public final Builder remoteClusterClient(int value) { return this; } + /** + * Required - API name: {@code total} + */ + public final Builder total(int value) { + this.total = value; + return this; + } + /** * Required - API name: {@code transform} */ @@ -413,6 +405,14 @@ public final Builder transform(int value) { return this; } + /** + * Required - API name: {@code voting_only} + */ + public final Builder votingOnly(int value) { + this.votingOnly = value; + return this; + } + @Override protected Builder self() { return this; @@ -443,18 +443,18 @@ protected static void setupClusterNodeCountDeserializer(ObjectDeserializer versions; - private final IndexingPressure indexingPressure; - // --------------------------------------------------------------------------------------------- private ClusterNodes(Builder builder) { @@ -83,6 +83,7 @@ private ClusterNodes(Builder builder) { this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); this.discoveryTypes = ApiTypeHelper.unmodifiableRequired(builder.discoveryTypes, this, "discoveryTypes"); this.fs = ApiTypeHelper.requireNonNull(builder.fs, this, "fs"); + this.indexingPressure = ApiTypeHelper.requireNonNull(builder.indexingPressure, this, "indexingPressure"); this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); this.jvm = ApiTypeHelper.requireNonNull(builder.jvm, this, "jvm"); this.networkTypes = ApiTypeHelper.requireNonNull(builder.networkTypes, this, "networkTypes"); @@ -91,7 +92,6 @@ private ClusterNodes(Builder builder) { this.plugins = ApiTypeHelper.unmodifiableRequired(builder.plugins, this, "plugins"); this.process = ApiTypeHelper.requireNonNull(builder.process, this, "process"); this.versions = ApiTypeHelper.unmodifiableRequired(builder.versions, this, "versions"); - this.indexingPressure = ApiTypeHelper.requireNonNull(builder.indexingPressure, this, "indexingPressure"); } @@ -127,6 +127,13 @@ public final ClusterFileSystem fs() { return this.fs; } + /** + * Required - API name: {@code indexing_pressure} + */ + public final IndexingPressure indexingPressure() { + return this.indexingPressure; + } + /** * Required - API name: {@code ingest} */ @@ -176,7 +183,7 @@ public final List packagingTypes() { /** * Required - Contains statistics about installed plugins and modules by - * selected nodes. + * selected nodes. If no plugins or modules are installed, this array is empty. *

* API name: {@code plugins} */ @@ -202,13 +209,6 @@ public final List versions() { return this.versions; } - /** - * Required - API name: {@code indexing_pressure} - */ - public final IndexingPressure indexingPressure() { - return this.indexingPressure; - } - /** * Serialize this object to JSON. */ @@ -237,6 +237,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("fs"); this.fs.serialize(generator, mapper); + generator.writeKey("indexing_pressure"); + this.indexingPressure.serialize(generator, mapper); + generator.writeKey("ingest"); this.ingest.serialize(generator, mapper); @@ -282,8 +285,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - generator.writeKey("indexing_pressure"); - this.indexingPressure.serialize(generator, mapper); } @@ -305,6 +306,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ClusterFileSystem fs; + private IndexingPressure indexingPressure; + private ClusterIngest ingest; private ClusterJvm jvm; @@ -321,8 +324,6 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List versions; - private IndexingPressure indexingPressure; - /** * Required - Contains counts for nodes selected by the request’s node filters. *

@@ -387,6 +388,21 @@ public final Builder fs(Function> fn) { + return this.indexingPressure(fn.apply(new IndexingPressure.Builder()).build()); + } + /** * Required - API name: {@code ingest} */ @@ -506,7 +522,7 @@ public final Builder packagingTypes(Function * API name: {@code plugins} *

@@ -519,7 +535,7 @@ public final Builder plugins(List list) { /** * Required - Contains statistics about installed plugins and modules by - * selected nodes. + * selected nodes. If no plugins or modules are installed, this array is empty. *

* API name: {@code plugins} *

@@ -532,7 +548,7 @@ public final Builder plugins(PluginStats value, PluginStats... values) { /** * Required - Contains statistics about installed plugins and modules by - * selected nodes. + * selected nodes. If no plugins or modules are installed, this array is empty. *

* API name: {@code plugins} *

@@ -585,21 +601,6 @@ public final Builder versions(String value, String... values) { return this; } - /** - * Required - API name: {@code indexing_pressure} - */ - public final Builder indexingPressure(IndexingPressure value) { - this.indexingPressure = value; - return this; - } - - /** - * Required - API name: {@code indexing_pressure} - */ - public final Builder indexingPressure(Function> fn) { - return this.indexingPressure(fn.apply(new IndexingPressure.Builder()).build()); - } - @Override protected Builder self() { return this; @@ -632,6 +633,7 @@ protected static void setupClusterNodesDeserializer(ObjectDeserializer architectures; + private final int availableProcessors; private final OperatingSystemMemoryInfo mem; @@ -60,20 +62,18 @@ public class ClusterOperatingSystem implements JsonpSerializable { private final List prettyNames; - private final List architectures; - // --------------------------------------------------------------------------------------------- private ClusterOperatingSystem(Builder builder) { this.allocatedProcessors = ApiTypeHelper.requireNonNull(builder.allocatedProcessors, this, "allocatedProcessors"); + this.architectures = ApiTypeHelper.unmodifiable(builder.architectures); this.availableProcessors = ApiTypeHelper.requireNonNull(builder.availableProcessors, this, "availableProcessors"); this.mem = ApiTypeHelper.requireNonNull(builder.mem, this, "mem"); this.names = ApiTypeHelper.unmodifiableRequired(builder.names, this, "names"); this.prettyNames = ApiTypeHelper.unmodifiableRequired(builder.prettyNames, this, "prettyNames"); - this.architectures = ApiTypeHelper.unmodifiable(builder.architectures); } @@ -82,47 +82,65 @@ public static ClusterOperatingSystem of(Function + * API name: {@code allocated_processors} */ public final int allocatedProcessors() { return this.allocatedProcessors; } /** - * Required - API name: {@code available_processors} + * Contains statistics about processor architectures (for example, x86_64 or + * aarch64) used by selected nodes. + *

+ * API name: {@code architectures} + */ + public final List architectures() { + return this.architectures; + } + + /** + * Required - Number of processors available to JVM across all selected nodes. + *

+ * API name: {@code available_processors} */ public final int availableProcessors() { return this.availableProcessors; } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final OperatingSystemMemoryInfo mem() { return this.mem; } /** - * Required - API name: {@code names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code names} */ public final List names() { return this.names; } /** - * Required - API name: {@code pretty_names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code pretty_names} */ public final List prettyNames() { return this.prettyNames; } - /** - * API name: {@code architectures} - */ - public final List architectures() { - return this.architectures; - } - /** * Serialize this object to JSON. */ @@ -137,6 +155,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("allocated_processors"); generator.write(this.allocatedProcessors); + if (ApiTypeHelper.isDefined(this.architectures)) { + generator.writeKey("architectures"); + generator.writeStartArray(); + for (ClusterOperatingSystemArchitecture item0 : this.architectures) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } generator.writeKey("available_processors"); generator.write(this.availableProcessors); @@ -163,16 +191,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.architectures)) { - generator.writeKey("architectures"); - generator.writeStartArray(); - for (ClusterOperatingSystemArchitecture item0 : this.architectures) { - item0.serialize(generator, mapper); - - } - generator.writeEnd(); - - } } @@ -192,6 +210,9 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Integer allocatedProcessors; + @Nullable + private List architectures; + private Integer availableProcessors; private OperatingSystemMemoryInfo mem; @@ -200,11 +221,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List prettyNames; - @Nullable - private List architectures; - /** - * Required - API name: {@code allocated_processors} + * Required - Number of processors used to calculate thread pool size across all + * selected nodes. This number can be set with the processors setting of a node + * and defaults to the number of processors reported by the operating system. In + * both cases, this number will never be larger than 32. + *

+ * API name: {@code allocated_processors} */ public final Builder allocatedProcessors(int value) { this.allocatedProcessors = value; @@ -212,7 +235,49 @@ public final Builder allocatedProcessors(int value) { } /** - * Required - API name: {@code available_processors} + * Contains statistics about processor architectures (for example, x86_64 or + * aarch64) used by selected nodes. + *

+ * API name: {@code architectures} + *

+ * Adds all elements of list to architectures. + */ + public final Builder architectures(List list) { + this.architectures = _listAddAll(this.architectures, list); + return this; + } + + /** + * Contains statistics about processor architectures (for example, x86_64 or + * aarch64) used by selected nodes. + *

+ * API name: {@code architectures} + *

+ * Adds one or more values to architectures. + */ + public final Builder architectures(ClusterOperatingSystemArchitecture value, + ClusterOperatingSystemArchitecture... values) { + this.architectures = _listAdd(this.architectures, value, values); + return this; + } + + /** + * Contains statistics about processor architectures (for example, x86_64 or + * aarch64) used by selected nodes. + *

+ * API name: {@code architectures} + *

+ * Adds a value to architectures using a builder lambda. + */ + public final Builder architectures( + Function> fn) { + return architectures(fn.apply(new ClusterOperatingSystemArchitecture.Builder()).build()); + } + + /** + * Required - Number of processors available to JVM across all selected nodes. + *

+ * API name: {@code available_processors} */ public final Builder availableProcessors(int value) { this.availableProcessors = value; @@ -220,7 +285,9 @@ public final Builder availableProcessors(int value) { } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final Builder mem(OperatingSystemMemoryInfo value) { this.mem = value; @@ -228,7 +295,9 @@ public final Builder mem(OperatingSystemMemoryInfo value) { } /** - * Required - API name: {@code mem} + * Required - Contains statistics about memory used by selected nodes. + *

+ * API name: {@code mem} */ public final Builder mem( Function> fn) { @@ -236,7 +305,10 @@ public final Builder mem( } /** - * Required - API name: {@code names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code names} *

* Adds all elements of list to names. */ @@ -246,7 +318,10 @@ public final Builder names(List list) { } /** - * Required - API name: {@code names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code names} *

* Adds one or more values to names. */ @@ -256,7 +331,10 @@ public final Builder names(ClusterOperatingSystemName value, ClusterOperatingSys } /** - * Required - API name: {@code names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code names} *

* Adds a value to names using a builder lambda. */ @@ -266,7 +344,10 @@ public final Builder names( } /** - * Required - API name: {@code pretty_names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code pretty_names} *

* Adds all elements of list to prettyNames. */ @@ -276,7 +357,10 @@ public final Builder prettyNames(List list) { } /** - * Required - API name: {@code pretty_names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code pretty_names} *

* Adds one or more values to prettyNames. */ @@ -287,7 +371,10 @@ public final Builder prettyNames(ClusterOperatingSystemPrettyName value, } /** - * Required - API name: {@code pretty_names} + * Required - Contains statistics about operating systems used by selected + * nodes. + *

+ * API name: {@code pretty_names} *

* Adds a value to prettyNames using a builder lambda. */ @@ -296,37 +383,6 @@ public final Builder prettyNames( return prettyNames(fn.apply(new ClusterOperatingSystemPrettyName.Builder()).build()); } - /** - * API name: {@code architectures} - *

- * Adds all elements of list to architectures. - */ - public final Builder architectures(List list) { - this.architectures = _listAddAll(this.architectures, list); - return this; - } - - /** - * API name: {@code architectures} - *

- * Adds one or more values to architectures. - */ - public final Builder architectures(ClusterOperatingSystemArchitecture value, - ClusterOperatingSystemArchitecture... values) { - this.architectures = _listAdd(this.architectures, value, values); - return this; - } - - /** - * API name: {@code architectures} - *

- * Adds a value to architectures using a builder lambda. - */ - public final Builder architectures( - Function> fn) { - return architectures(fn.apply(new ClusterOperatingSystemArchitecture.Builder()).build()); - } - @Override protected Builder self() { return this; @@ -357,13 +413,13 @@ protected static void setupClusterOperatingSystemDeserializer( ObjectDeserializer op) { op.add(Builder::allocatedProcessors, JsonpDeserializer.integerDeserializer(), "allocated_processors"); + op.add(Builder::architectures, + JsonpDeserializer.arrayDeserializer(ClusterOperatingSystemArchitecture._DESERIALIZER), "architectures"); op.add(Builder::availableProcessors, JsonpDeserializer.integerDeserializer(), "available_processors"); op.add(Builder::mem, OperatingSystemMemoryInfo._DESERIALIZER, "mem"); op.add(Builder::names, JsonpDeserializer.arrayDeserializer(ClusterOperatingSystemName._DESERIALIZER), "names"); op.add(Builder::prettyNames, JsonpDeserializer.arrayDeserializer(ClusterOperatingSystemPrettyName._DESERIALIZER), "pretty_names"); - op.add(Builder::architectures, - JsonpDeserializer.arrayDeserializer(ClusterOperatingSystemArchitecture._DESERIALIZER), "architectures"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java index fb3a56a6c..e9b3da031 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java @@ -50,16 +50,16 @@ */ @JsonpDeserializable public class ClusterOperatingSystemArchitecture implements JsonpSerializable { - private final int count; - private final String arch; + private final int count; + // --------------------------------------------------------------------------------------------- private ClusterOperatingSystemArchitecture(Builder builder) { - this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); this.arch = ApiTypeHelper.requireNonNull(builder.arch, this, "arch"); + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); } @@ -69,17 +69,21 @@ public static ClusterOperatingSystemArchitecture of( } /** - * Required - API name: {@code count} + * Required - Name of an architecture used by one or more selected nodes. + *

+ * API name: {@code arch} */ - public final int count() { - return this.count; + public final String arch() { + return this.arch; } /** - * Required - API name: {@code arch} + * Required - Number of selected nodes using the architecture. + *

+ * API name: {@code count} */ - public final String arch() { - return this.arch; + public final int count() { + return this.count; } /** @@ -93,12 +97,12 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("count"); - generator.write(this.count); - generator.writeKey("arch"); generator.write(this.arch); + generator.writeKey("count"); + generator.write(this.count); + } @Override @@ -115,23 +119,27 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private Integer count; - private String arch; + private Integer count; + /** - * Required - API name: {@code count} + * Required - Name of an architecture used by one or more selected nodes. + *

+ * API name: {@code arch} */ - public final Builder count(int value) { - this.count = value; + public final Builder arch(String value) { + this.arch = value; return this; } /** - * Required - API name: {@code arch} + * Required - Number of selected nodes using the architecture. + *

+ * API name: {@code count} */ - public final Builder arch(String value) { - this.arch = value; + public final Builder count(int value) { + this.count = value; return this; } @@ -165,8 +173,8 @@ public ClusterOperatingSystemArchitecture build() { protected static void setupClusterOperatingSystemArchitectureDeserializer( ObjectDeserializer op) { - op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); op.add(Builder::arch, JsonpDeserializer.stringDeserializer(), "arch"); + op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java index 29a11c4c9..ecf0cec5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java @@ -68,14 +68,18 @@ public static ClusterOperatingSystemName of(Function + * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code name} + * Required - Name of an operating system used by one or more selected nodes. + *

+ * API name: {@code name} */ public final String name() { return this.name; @@ -119,7 +123,9 @@ public static class Builder extends WithJsonObjectBuilderBase private String name; /** - * Required - API name: {@code count} + * Required - Number of selected nodes using the operating system. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -127,7 +133,9 @@ public final Builder count(int value) { } /** - * Required - API name: {@code name} + * Required - Name of an operating system used by one or more selected nodes. + *

+ * API name: {@code name} */ public final Builder name(String value) { this.name = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java index 3f53808d8..2d3067fbd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java @@ -69,14 +69,19 @@ public static ClusterOperatingSystemPrettyName of( } /** - * Required - API name: {@code count} + * Required - Number of selected nodes using the operating system. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code pretty_name} + * Required - Human-readable name of an operating system used by one or more + * selected nodes. + *

+ * API name: {@code pretty_name} */ public final String prettyName() { return this.prettyName; @@ -120,7 +125,9 @@ public static class Builder extends WithJsonObjectBuilderBase private String prettyName; /** - * Required - API name: {@code count} + * Required - Number of selected nodes using the operating system. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -128,7 +135,10 @@ public final Builder count(int value) { } /** - * Required - API name: {@code pretty_name} + * Required - Human-readable name of an operating system used by one or more + * selected nodes. + *

+ * API name: {@code pretty_name} */ public final Builder prettyName(String value) { this.prettyName = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java index ec8d5b27a..0e9e69e82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java @@ -66,14 +66,18 @@ public static ClusterProcess of(Function> } /** - * Required - API name: {@code cpu} + * Required - Contains statistics about CPU used by selected nodes. + *

+ * API name: {@code cpu} */ public final ClusterProcessCpu cpu() { return this.cpu; } /** - * Required - API name: {@code open_file_descriptors} + * Required - Contains statistics about open file descriptors in selected nodes. + *

+ * API name: {@code open_file_descriptors} */ public final ClusterProcessOpenFileDescriptors openFileDescriptors() { return this.openFileDescriptors; @@ -115,7 +119,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ClusterProcessOpenFileDescriptors openFileDescriptors; /** - * Required - API name: {@code cpu} + * Required - Contains statistics about CPU used by selected nodes. + *

+ * API name: {@code cpu} */ public final Builder cpu(ClusterProcessCpu value) { this.cpu = value; @@ -123,14 +129,18 @@ public final Builder cpu(ClusterProcessCpu value) { } /** - * Required - API name: {@code cpu} + * Required - Contains statistics about CPU used by selected nodes. + *

+ * API name: {@code cpu} */ public final Builder cpu(Function> fn) { return this.cpu(fn.apply(new ClusterProcessCpu.Builder()).build()); } /** - * Required - API name: {@code open_file_descriptors} + * Required - Contains statistics about open file descriptors in selected nodes. + *

+ * API name: {@code open_file_descriptors} */ public final Builder openFileDescriptors(ClusterProcessOpenFileDescriptors value) { this.openFileDescriptors = value; @@ -138,7 +148,9 @@ public final Builder openFileDescriptors(ClusterProcessOpenFileDescriptors value } /** - * Required - API name: {@code open_file_descriptors} + * Required - Contains statistics about open file descriptors in selected nodes. + *

+ * API name: {@code open_file_descriptors} */ public final Builder openFileDescriptors( Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java index 0af50a6bf..d75ea6972 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java @@ -63,7 +63,10 @@ public static ClusterProcessCpu of(Function-1 if not supported. + *

+ * API name: {@code percent} */ public final int percent() { return this.percent; @@ -100,7 +103,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer percent; /** - * Required - API name: {@code percent} + * Required - Percentage of CPU used across all selected nodes. Returns + * -1 if not supported. + *

+ * API name: {@code percent} */ public final Builder percent(int value) { this.percent = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java index 761c70ecd..44ad87ed3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java @@ -70,21 +70,30 @@ public static ClusterProcessOpenFileDescriptors of( } /** - * Required - API name: {@code avg} + * Required - Average number of concurrently open file descriptors. Returns + * -1 if not supported. + *

+ * API name: {@code avg} */ public final long avg() { return this.avg; } /** - * Required - API name: {@code max} + * Required - Maximum number of concurrently open file descriptors allowed + * across all selected nodes. Returns -1 if not supported. + *

+ * API name: {@code max} */ public final long max() { return this.max; } /** - * Required - API name: {@code min} + * Required - Minimum number of concurrently open file descriptors across all + * selected nodes. Returns -1 if not supported. + *

+ * API name: {@code min} */ public final long min() { return this.min; @@ -133,7 +142,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Long min; /** - * Required - API name: {@code avg} + * Required - Average number of concurrently open file descriptors. Returns + * -1 if not supported. + *

+ * API name: {@code avg} */ public final Builder avg(long value) { this.avg = value; @@ -141,7 +153,10 @@ public final Builder avg(long value) { } /** - * Required - API name: {@code max} + * Required - Maximum number of concurrently open file descriptors allowed + * across all selected nodes. Returns -1 if not supported. + *

+ * API name: {@code max} */ public final Builder max(long value) { this.max = value; @@ -149,7 +164,10 @@ public final Builder max(long value) { } /** - * Required - API name: {@code min} + * Required - Minimum number of concurrently open file descriptors across all + * selected nodes. Returns -1 if not supported. + *

+ * API name: {@code min} */ public final Builder min(long value) { this.min = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java index 84cc51ff4..7de8ebd93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java @@ -69,21 +69,30 @@ public static ClusterShardMetrics of(Function + * API name: {@code avg} */ public final double avg() { return this.avg; } /** - * Required - API name: {@code max} + * Required - Maximum number of shards in an index, counting only shards + * assigned to selected nodes. + *

+ * API name: {@code max} */ public final double max() { return this.max; } /** - * Required - API name: {@code min} + * Required - Minimum number of shards in an index, counting only shards + * assigned to selected nodes. + *

+ * API name: {@code min} */ public final double min() { return this.min; @@ -132,7 +141,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Double min; /** - * Required - API name: {@code avg} + * Required - Mean number of shards in an index, counting only shards assigned + * to selected nodes. + *

+ * API name: {@code avg} */ public final Builder avg(double value) { this.avg = value; @@ -140,7 +152,10 @@ public final Builder avg(double value) { } /** - * Required - API name: {@code max} + * Required - Maximum number of shards in an index, counting only shards + * assigned to selected nodes. + *

+ * API name: {@code max} */ public final Builder max(double value) { this.max = value; @@ -148,7 +163,10 @@ public final Builder max(double value) { } /** - * Required - API name: {@code min} + * Required - Minimum number of shards in an index, counting only shards + * assigned to selected nodes. + *

+ * API name: {@code min} */ public final Builder min(double value) { this.min = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java index 667a67068..d850d408b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java @@ -87,27 +87,36 @@ public static FieldTypes of(Function> fn) { } /** - * Required - API name: {@code name} + * Required - The name for the field type in selected nodes. + *

+ * API name: {@code name} */ public final String name() { return this.name; } /** - * Required - API name: {@code count} + * Required - The number of occurrences of the field type in selected nodes. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code index_count} + * Required - The number of indices containing the field type in selected nodes. + *

+ * API name: {@code index_count} */ public final int indexCount() { return this.indexCount; } /** + * For dense_vector field types, number of indexed vector types in selected + * nodes. + *

* API name: {@code indexed_vector_count} */ @Nullable @@ -116,6 +125,9 @@ public final Long indexedVectorCount() { } /** + * For dense_vector field types, the maximum dimension of all indexed vector + * types in selected nodes. + *

* API name: {@code indexed_vector_dim_max} */ @Nullable @@ -124,6 +136,9 @@ public final Long indexedVectorDimMax() { } /** + * For dense_vector field types, the minimum dimension of all indexed vector + * types in selected nodes. + *

* API name: {@code indexed_vector_dim_min} */ @Nullable @@ -132,6 +147,8 @@ public final Long indexedVectorDimMin() { } /** + * The number of fields that declare a script. + *

* API name: {@code script_count} */ @Nullable @@ -213,7 +230,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer scriptCount; /** - * Required - API name: {@code name} + * Required - The name for the field type in selected nodes. + *

+ * API name: {@code name} */ public final Builder name(String value) { this.name = value; @@ -221,7 +240,9 @@ public final Builder name(String value) { } /** - * Required - API name: {@code count} + * Required - The number of occurrences of the field type in selected nodes. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -229,7 +250,9 @@ public final Builder count(int value) { } /** - * Required - API name: {@code index_count} + * Required - The number of indices containing the field type in selected nodes. + *

+ * API name: {@code index_count} */ public final Builder indexCount(int value) { this.indexCount = value; @@ -237,6 +260,9 @@ public final Builder indexCount(int value) { } /** + * For dense_vector field types, number of indexed vector types in selected + * nodes. + *

* API name: {@code indexed_vector_count} */ public final Builder indexedVectorCount(@Nullable Long value) { @@ -245,6 +271,9 @@ public final Builder indexedVectorCount(@Nullable Long value) { } /** + * For dense_vector field types, the maximum dimension of all indexed vector + * types in selected nodes. + *

* API name: {@code indexed_vector_dim_max} */ public final Builder indexedVectorDimMax(@Nullable Long value) { @@ -253,6 +282,9 @@ public final Builder indexedVectorDimMax(@Nullable Long value) { } /** + * For dense_vector field types, the minimum dimension of all indexed vector + * types in selected nodes. + *

* API name: {@code indexed_vector_dim_min} */ public final Builder indexedVectorDimMin(@Nullable Long value) { @@ -261,6 +293,8 @@ public final Builder indexedVectorDimMin(@Nullable Long value) { } /** + * The number of fields that declare a script. + *

* API name: {@code script_count} */ public final Builder scriptCount(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java index 1692b5e3f..11049f07b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java @@ -86,13 +86,17 @@ public static FieldTypesMappings of(Function + * API name: {@code field_types} */ public final List fieldTypes() { return this.fieldTypes; } /** + * Contains statistics about runtime field data types used in selected nodes. + *

* API name: {@code runtime_field_types} */ public final List runtimeFieldTypes() { @@ -100,6 +104,8 @@ public final List runtimeFieldTypes() { } /** + * Total number of fields in all non-system indices. + *

* API name: {@code total_field_count} */ @Nullable @@ -108,6 +114,9 @@ public final Integer totalFieldCount() { } /** + * Total number of fields in all non-system indices, accounting for mapping + * deduplication. + *

* API name: {@code total_deduplicated_field_count} */ @Nullable @@ -116,6 +125,8 @@ public final Integer totalDeduplicatedFieldCount() { } /** + * Total size of all mappings after deduplication and compression. + *

* API name: {@code total_deduplicated_mapping_size} */ @Nullable @@ -124,6 +135,8 @@ public final String totalDeduplicatedMappingSize() { } /** + * Total size of all mappings, in bytes, after deduplication and compression. + *

* API name: {@code total_deduplicated_mapping_size_in_bytes} */ @Nullable @@ -217,7 +230,9 @@ public static class Builder extends WithJsonObjectBuilderBase private Long totalDeduplicatedMappingSizeInBytes; /** - * Required - API name: {@code field_types} + * Required - Contains statistics about field data types used in selected nodes. + *

+ * API name: {@code field_types} *

* Adds all elements of list to fieldTypes. */ @@ -227,7 +242,9 @@ public final Builder fieldTypes(List list) { } /** - * Required - API name: {@code field_types} + * Required - Contains statistics about field data types used in selected nodes. + *

+ * API name: {@code field_types} *

* Adds one or more values to fieldTypes. */ @@ -237,7 +254,9 @@ public final Builder fieldTypes(FieldTypes value, FieldTypes... values) { } /** - * Required - API name: {@code field_types} + * Required - Contains statistics about field data types used in selected nodes. + *

+ * API name: {@code field_types} *

* Adds a value to fieldTypes using a builder lambda. */ @@ -246,6 +265,8 @@ public final Builder fieldTypes(Function * API name: {@code runtime_field_types} *

* Adds all elements of list to runtimeFieldTypes. @@ -256,6 +277,8 @@ public final Builder runtimeFieldTypes(List list) { } /** + * Contains statistics about runtime field data types used in selected nodes. + *

* API name: {@code runtime_field_types} *

* Adds one or more values to runtimeFieldTypes. @@ -266,6 +289,8 @@ public final Builder runtimeFieldTypes(RuntimeFieldTypes value, RuntimeFieldType } /** + * Contains statistics about runtime field data types used in selected nodes. + *

* API name: {@code runtime_field_types} *

* Adds a value to runtimeFieldTypes using a builder lambda. @@ -276,6 +301,8 @@ public final Builder runtimeFieldTypes( } /** + * Total number of fields in all non-system indices. + *

* API name: {@code total_field_count} */ public final Builder totalFieldCount(@Nullable Integer value) { @@ -284,6 +311,9 @@ public final Builder totalFieldCount(@Nullable Integer value) { } /** + * Total number of fields in all non-system indices, accounting for mapping + * deduplication. + *

* API name: {@code total_deduplicated_field_count} */ public final Builder totalDeduplicatedFieldCount(@Nullable Integer value) { @@ -292,6 +322,8 @@ public final Builder totalDeduplicatedFieldCount(@Nullable Integer value) { } /** + * Total size of all mappings after deduplication and compression. + *

* API name: {@code total_deduplicated_mapping_size} */ public final Builder totalDeduplicatedMappingSize(@Nullable String value) { @@ -300,6 +332,8 @@ public final Builder totalDeduplicatedMappingSize(@Nullable String value) { } /** + * Total size of all mappings, in bytes, after deduplication and compression. + *

* API name: {@code total_deduplicated_mapping_size_in_bytes} */ public final Builder totalDeduplicatedMappingSizeInBytes(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java index 83c2c9617..6b711179c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java @@ -49,18 +49,18 @@ */ @JsonpDeserializable public class IndexingPressureMemory implements JsonpSerializable { - private final long limitInBytes; - private final IndexingPressureMemorySummary current; + private final long limitInBytes; + private final IndexingPressureMemorySummary total; // --------------------------------------------------------------------------------------------- private IndexingPressureMemory(Builder builder) { - this.limitInBytes = ApiTypeHelper.requireNonNull(builder.limitInBytes, this, "limitInBytes"); this.current = ApiTypeHelper.requireNonNull(builder.current, this, "current"); + this.limitInBytes = ApiTypeHelper.requireNonNull(builder.limitInBytes, this, "limitInBytes"); this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); } @@ -70,17 +70,17 @@ public static IndexingPressureMemory of(Function implements ObjectBuilder { - private Long limitInBytes; - private IndexingPressureMemorySummary current; - private IndexingPressureMemorySummary total; + private Long limitInBytes; - /** - * Required - API name: {@code limit_in_bytes} - */ - public final Builder limitInBytes(long value) { - this.limitInBytes = value; - return this; - } + private IndexingPressureMemorySummary total; /** * Required - API name: {@code current} @@ -156,6 +148,14 @@ public final Builder current( return this.current(fn.apply(new IndexingPressureMemorySummary.Builder()).build()); } + /** + * Required - API name: {@code limit_in_bytes} + */ + public final Builder limitInBytes(long value) { + this.limitInBytes = value; + return this; + } + /** * Required - API name: {@code total} */ @@ -201,8 +201,8 @@ public IndexingPressureMemory build() { protected static void setupIndexingPressureMemoryDeserializer( ObjectDeserializer op) { - op.add(Builder::limitInBytes, JsonpDeserializer.longDeserializer(), "limit_in_bytes"); op.add(Builder::current, IndexingPressureMemorySummary._DESERIALIZER, "current"); + op.add(Builder::limitInBytes, JsonpDeserializer.longDeserializer(), "limit_in_bytes"); op.add(Builder::total, IndexingPressureMemorySummary._DESERIALIZER, "total"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java index 93a561e22..fb3866308 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java @@ -71,21 +71,30 @@ public static NodePackagingType of(Function + * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code flavor} + * Required - Type of Elasticsearch distribution. This is always + * default. + *

+ * API name: {@code flavor} */ public final String flavor() { return this.flavor; } /** - * Required - API name: {@code type} + * Required - File type (such as tar or zip) used for + * the distribution package. + *

+ * API name: {@code type} */ public final String type() { return this.type; @@ -132,7 +141,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; /** - * Required - API name: {@code count} + * Required - Number of selected nodes using the distribution flavor and file + * type. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -140,7 +152,10 @@ public final Builder count(int value) { } /** - * Required - API name: {@code flavor} + * Required - Type of Elasticsearch distribution. This is always + * default. + *

+ * API name: {@code flavor} */ public final Builder flavor(String value) { this.flavor = value; @@ -148,7 +163,10 @@ public final Builder flavor(String value) { } /** - * Required - API name: {@code type} + * Required - File type (such as tar or zip) used for + * the distribution package. + *

+ * API name: {@code type} */ public final Builder type(String value) { this.type = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java index d7cb657df..f9d74ee68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java @@ -50,6 +50,9 @@ */ @JsonpDeserializable public class OperatingSystemMemoryInfo implements JsonpSerializable { + @Nullable + private final Long adjustedTotalInBytes; + private final long freeInBytes; private final int freePercent; @@ -60,19 +63,16 @@ public class OperatingSystemMemoryInfo implements JsonpSerializable { private final int usedPercent; - @Nullable - private final Long adjustedTotalInBytes; - // --------------------------------------------------------------------------------------------- private OperatingSystemMemoryInfo(Builder builder) { + this.adjustedTotalInBytes = builder.adjustedTotalInBytes; this.freeInBytes = ApiTypeHelper.requireNonNull(builder.freeInBytes, this, "freeInBytes"); this.freePercent = ApiTypeHelper.requireNonNull(builder.freePercent, this, "freePercent"); this.totalInBytes = ApiTypeHelper.requireNonNull(builder.totalInBytes, this, "totalInBytes"); this.usedInBytes = ApiTypeHelper.requireNonNull(builder.usedInBytes, this, "usedInBytes"); this.usedPercent = ApiTypeHelper.requireNonNull(builder.usedPercent, this, "usedPercent"); - this.adjustedTotalInBytes = builder.adjustedTotalInBytes; } @@ -81,48 +81,66 @@ public static OperatingSystemMemoryInfo of(Functiones.total_memory_bytes system property + * instead of measured total memory for those nodes where that system property + * was set. + *

+ * API name: {@code adjusted_total_in_bytes} + */ + @Nullable + public final Long adjustedTotalInBytes() { + return this.adjustedTotalInBytes; + } + + /** + * Required - Amount, in bytes, of free physical memory across all selected + * nodes. + *

+ * API name: {@code free_in_bytes} */ public final long freeInBytes() { return this.freeInBytes; } /** - * Required - API name: {@code free_percent} + * Required - Percentage of free physical memory across all selected nodes. + *

+ * API name: {@code free_percent} */ public final int freePercent() { return this.freePercent; } /** - * Required - API name: {@code total_in_bytes} + * Required - Total amount, in bytes, of physical memory across all selected + * nodes. + *

+ * API name: {@code total_in_bytes} */ public final long totalInBytes() { return this.totalInBytes; } /** - * Required - API name: {@code used_in_bytes} + * Required - Amount, in bytes, of physical memory in use across all selected + * nodes. + *

+ * API name: {@code used_in_bytes} */ public final long usedInBytes() { return this.usedInBytes; } /** - * Required - API name: {@code used_percent} + * Required - Percentage of physical memory in use across all selected nodes. + *

+ * API name: {@code used_percent} */ public final int usedPercent() { return this.usedPercent; } - /** - * API name: {@code adjusted_total_in_bytes} - */ - @Nullable - public final Long adjustedTotalInBytes() { - return this.adjustedTotalInBytes; - } - /** * Serialize this object to JSON. */ @@ -134,6 +152,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.adjustedTotalInBytes != null) { + generator.writeKey("adjusted_total_in_bytes"); + generator.write(this.adjustedTotalInBytes); + + } generator.writeKey("free_in_bytes"); generator.write(this.freeInBytes); @@ -149,12 +172,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("used_percent"); generator.write(this.usedPercent); - if (this.adjustedTotalInBytes != null) { - generator.writeKey("adjusted_total_in_bytes"); - generator.write(this.adjustedTotalInBytes); - - } - } @Override @@ -171,6 +188,9 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Long adjustedTotalInBytes; + private Long freeInBytes; private Integer freePercent; @@ -181,11 +201,24 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer usedPercent; - @Nullable - private Long adjustedTotalInBytes; + /** + * Total amount, in bytes, of memory across all selected nodes, but using the + * value specified using the es.total_memory_bytes system property + * instead of measured total memory for those nodes where that system property + * was set. + *

+ * API name: {@code adjusted_total_in_bytes} + */ + public final Builder adjustedTotalInBytes(@Nullable Long value) { + this.adjustedTotalInBytes = value; + return this; + } /** - * Required - API name: {@code free_in_bytes} + * Required - Amount, in bytes, of free physical memory across all selected + * nodes. + *

+ * API name: {@code free_in_bytes} */ public final Builder freeInBytes(long value) { this.freeInBytes = value; @@ -193,7 +226,9 @@ public final Builder freeInBytes(long value) { } /** - * Required - API name: {@code free_percent} + * Required - Percentage of free physical memory across all selected nodes. + *

+ * API name: {@code free_percent} */ public final Builder freePercent(int value) { this.freePercent = value; @@ -201,7 +236,10 @@ public final Builder freePercent(int value) { } /** - * Required - API name: {@code total_in_bytes} + * Required - Total amount, in bytes, of physical memory across all selected + * nodes. + *

+ * API name: {@code total_in_bytes} */ public final Builder totalInBytes(long value) { this.totalInBytes = value; @@ -209,7 +247,10 @@ public final Builder totalInBytes(long value) { } /** - * Required - API name: {@code used_in_bytes} + * Required - Amount, in bytes, of physical memory in use across all selected + * nodes. + *

+ * API name: {@code used_in_bytes} */ public final Builder usedInBytes(long value) { this.usedInBytes = value; @@ -217,21 +258,15 @@ public final Builder usedInBytes(long value) { } /** - * Required - API name: {@code used_percent} + * Required - Percentage of physical memory in use across all selected nodes. + *

+ * API name: {@code used_percent} */ public final Builder usedPercent(int value) { this.usedPercent = value; return this; } - /** - * API name: {@code adjusted_total_in_bytes} - */ - public final Builder adjustedTotalInBytes(@Nullable Long value) { - this.adjustedTotalInBytes = value; - return this; - } - @Override protected Builder self() { return this; @@ -261,12 +296,12 @@ public OperatingSystemMemoryInfo build() { protected static void setupOperatingSystemMemoryInfoDeserializer( ObjectDeserializer op) { + op.add(Builder::adjustedTotalInBytes, JsonpDeserializer.longDeserializer(), "adjusted_total_in_bytes"); op.add(Builder::freeInBytes, JsonpDeserializer.longDeserializer(), "free_in_bytes"); op.add(Builder::freePercent, JsonpDeserializer.integerDeserializer(), "free_percent"); op.add(Builder::totalInBytes, JsonpDeserializer.longDeserializer(), "total_in_bytes"); op.add(Builder::usedInBytes, JsonpDeserializer.longDeserializer(), "used_in_bytes"); op.add(Builder::usedPercent, JsonpDeserializer.integerDeserializer(), "used_percent"); - op.add(Builder::adjustedTotalInBytes, JsonpDeserializer.longDeserializer(), "adjusted_total_in_bytes"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java index 82e7fd5f2..e901b0505 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java @@ -51,15 +51,17 @@ */ @JsonpDeserializable public class RuntimeFieldTypes implements JsonpSerializable { - private final String name; + private final int charsMax; + + private final int charsTotal; private final int count; - private final int indexCount; + private final int docMax; - private final int scriptlessCount; + private final int docTotal; - private final int shadowedCount; + private final int indexCount; private final List lang; @@ -67,36 +69,34 @@ public class RuntimeFieldTypes implements JsonpSerializable { private final int linesTotal; - private final int charsMax; + private final String name; - private final int charsTotal; + private final int scriptlessCount; + + private final int shadowedCount; private final int sourceMax; private final int sourceTotal; - private final int docMax; - - private final int docTotal; - // --------------------------------------------------------------------------------------------- private RuntimeFieldTypes(Builder builder) { - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.charsMax = ApiTypeHelper.requireNonNull(builder.charsMax, this, "charsMax"); + this.charsTotal = ApiTypeHelper.requireNonNull(builder.charsTotal, this, "charsTotal"); this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.docMax = ApiTypeHelper.requireNonNull(builder.docMax, this, "docMax"); + this.docTotal = ApiTypeHelper.requireNonNull(builder.docTotal, this, "docTotal"); this.indexCount = ApiTypeHelper.requireNonNull(builder.indexCount, this, "indexCount"); - this.scriptlessCount = ApiTypeHelper.requireNonNull(builder.scriptlessCount, this, "scriptlessCount"); - this.shadowedCount = ApiTypeHelper.requireNonNull(builder.shadowedCount, this, "shadowedCount"); this.lang = ApiTypeHelper.unmodifiableRequired(builder.lang, this, "lang"); this.linesMax = ApiTypeHelper.requireNonNull(builder.linesMax, this, "linesMax"); this.linesTotal = ApiTypeHelper.requireNonNull(builder.linesTotal, this, "linesTotal"); - this.charsMax = ApiTypeHelper.requireNonNull(builder.charsMax, this, "charsMax"); - this.charsTotal = ApiTypeHelper.requireNonNull(builder.charsTotal, this, "charsTotal"); + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.scriptlessCount = ApiTypeHelper.requireNonNull(builder.scriptlessCount, this, "scriptlessCount"); + this.shadowedCount = ApiTypeHelper.requireNonNull(builder.shadowedCount, this, "shadowedCount"); this.sourceMax = ApiTypeHelper.requireNonNull(builder.sourceMax, this, "sourceMax"); this.sourceTotal = ApiTypeHelper.requireNonNull(builder.sourceTotal, this, "sourceTotal"); - this.docMax = ApiTypeHelper.requireNonNull(builder.docMax, this, "docMax"); - this.docTotal = ApiTypeHelper.requireNonNull(builder.docTotal, this, "docTotal"); } @@ -105,101 +105,137 @@ public static RuntimeFieldTypes of(Function + * API name: {@code chars_max} */ - public final String name() { - return this.name; + public final int charsMax() { + return this.charsMax; } /** - * Required - API name: {@code count} + * Required - Total number of characters for the scripts that define the current + * runtime field data type. + *

+ * API name: {@code chars_total} + */ + public final int charsTotal() { + return this.charsTotal; + } + + /** + * Required - Number of runtime fields mapped to the field data type in selected + * nodes. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code index_count} + * Required - Maximum number of accesses to doc_values for a single runtime + * field script + *

+ * API name: {@code doc_max} */ - public final int indexCount() { - return this.indexCount; + public final int docMax() { + return this.docMax; } /** - * Required - API name: {@code scriptless_count} + * Required - Total number of accesses to doc_values for the scripts that define + * the current runtime field data type. + *

+ * API name: {@code doc_total} */ - public final int scriptlessCount() { - return this.scriptlessCount; + public final int docTotal() { + return this.docTotal; } /** - * Required - API name: {@code shadowed_count} + * Required - Number of indices containing a mapping of the runtime field data + * type in selected nodes. + *

+ * API name: {@code index_count} */ - public final int shadowedCount() { - return this.shadowedCount; + public final int indexCount() { + return this.indexCount; } /** - * Required - API name: {@code lang} + * Required - Script languages used for the runtime fields scripts. + *

+ * API name: {@code lang} */ public final List lang() { return this.lang; } /** - * Required - API name: {@code lines_max} + * Required - Maximum number of lines for a single runtime field script. + *

+ * API name: {@code lines_max} */ public final int linesMax() { return this.linesMax; } /** - * Required - API name: {@code lines_total} + * Required - Total number of lines for the scripts that define the current + * runtime field data type. + *

+ * API name: {@code lines_total} */ public final int linesTotal() { return this.linesTotal; } /** - * Required - API name: {@code chars_max} - */ - public final int charsMax() { - return this.charsMax; - } - - /** - * Required - API name: {@code chars_total} + * Required - Field data type used in selected nodes. + *

+ * API name: {@code name} */ - public final int charsTotal() { - return this.charsTotal; + public final String name() { + return this.name; } /** - * Required - API name: {@code source_max} + * Required - Number of runtime fields that don’t declare a script. + *

+ * API name: {@code scriptless_count} */ - public final int sourceMax() { - return this.sourceMax; + public final int scriptlessCount() { + return this.scriptlessCount; } /** - * Required - API name: {@code source_total} + * Required - Number of runtime fields that shadow an indexed field. + *

+ * API name: {@code shadowed_count} */ - public final int sourceTotal() { - return this.sourceTotal; + public final int shadowedCount() { + return this.shadowedCount; } /** - * Required - API name: {@code doc_max} + * Required - Maximum number of accesses to _source for a single runtime field + * script. + *

+ * API name: {@code source_max} */ - public final int docMax() { - return this.docMax; + public final int sourceMax() { + return this.sourceMax; } /** - * Required - API name: {@code doc_total} + * Required - Total number of accesses to _source for the scripts that define + * the current runtime field data type. + *

+ * API name: {@code source_total} */ - public final int docTotal() { - return this.docTotal; + public final int sourceTotal() { + return this.sourceTotal; } /** @@ -213,20 +249,23 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("name"); - generator.write(this.name); + generator.writeKey("chars_max"); + generator.write(this.charsMax); + + generator.writeKey("chars_total"); + generator.write(this.charsTotal); generator.writeKey("count"); generator.write(this.count); - generator.writeKey("index_count"); - generator.write(this.indexCount); + generator.writeKey("doc_max"); + generator.write(this.docMax); - generator.writeKey("scriptless_count"); - generator.write(this.scriptlessCount); + generator.writeKey("doc_total"); + generator.write(this.docTotal); - generator.writeKey("shadowed_count"); - generator.write(this.shadowedCount); + generator.writeKey("index_count"); + generator.write(this.indexCount); if (ApiTypeHelper.isDefined(this.lang)) { generator.writeKey("lang"); @@ -244,11 +283,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("lines_total"); generator.write(this.linesTotal); - generator.writeKey("chars_max"); - generator.write(this.charsMax); + generator.writeKey("name"); + generator.write(this.name); - generator.writeKey("chars_total"); - generator.write(this.charsTotal); + generator.writeKey("scriptless_count"); + generator.write(this.scriptlessCount); + + generator.writeKey("shadowed_count"); + generator.write(this.shadowedCount); generator.writeKey("source_max"); generator.write(this.sourceMax); @@ -256,12 +298,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("source_total"); generator.write(this.sourceTotal); - generator.writeKey("doc_max"); - generator.write(this.docMax); - - generator.writeKey("doc_total"); - generator.write(this.docTotal); - } @Override @@ -276,15 +312,17 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String name; + private Integer charsMax; + + private Integer charsTotal; private Integer count; - private Integer indexCount; + private Integer docMax; - private Integer scriptlessCount; + private Integer docTotal; - private Integer shadowedCount; + private Integer indexCount; private List lang; @@ -292,28 +330,42 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer linesTotal; - private Integer charsMax; + private String name; - private Integer charsTotal; + private Integer scriptlessCount; + + private Integer shadowedCount; private Integer sourceMax; private Integer sourceTotal; - private Integer docMax; - - private Integer docTotal; + /** + * Required - Maximum number of characters for a single runtime field script. + *

+ * API name: {@code chars_max} + */ + public final Builder charsMax(int value) { + this.charsMax = value; + return this; + } /** - * Required - API name: {@code name} + * Required - Total number of characters for the scripts that define the current + * runtime field data type. + *

+ * API name: {@code chars_total} */ - public final Builder name(String value) { - this.name = value; + public final Builder charsTotal(int value) { + this.charsTotal = value; return this; } /** - * Required - API name: {@code count} + * Required - Number of runtime fields mapped to the field data type in selected + * nodes. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -321,31 +373,42 @@ public final Builder count(int value) { } /** - * Required - API name: {@code index_count} + * Required - Maximum number of accesses to doc_values for a single runtime + * field script + *

+ * API name: {@code doc_max} */ - public final Builder indexCount(int value) { - this.indexCount = value; + public final Builder docMax(int value) { + this.docMax = value; return this; } /** - * Required - API name: {@code scriptless_count} + * Required - Total number of accesses to doc_values for the scripts that define + * the current runtime field data type. + *

+ * API name: {@code doc_total} */ - public final Builder scriptlessCount(int value) { - this.scriptlessCount = value; + public final Builder docTotal(int value) { + this.docTotal = value; return this; } /** - * Required - API name: {@code shadowed_count} + * Required - Number of indices containing a mapping of the runtime field data + * type in selected nodes. + *

+ * API name: {@code index_count} */ - public final Builder shadowedCount(int value) { - this.shadowedCount = value; + public final Builder indexCount(int value) { + this.indexCount = value; return this; } /** - * Required - API name: {@code lang} + * Required - Script languages used for the runtime fields scripts. + *

+ * API name: {@code lang} *

* Adds all elements of list to lang. */ @@ -355,7 +418,9 @@ public final Builder lang(List list) { } /** - * Required - API name: {@code lang} + * Required - Script languages used for the runtime fields scripts. + *

+ * API name: {@code lang} *

* Adds one or more values to lang. */ @@ -365,7 +430,9 @@ public final Builder lang(String value, String... values) { } /** - * Required - API name: {@code lines_max} + * Required - Maximum number of lines for a single runtime field script. + *

+ * API name: {@code lines_max} */ public final Builder linesMax(int value) { this.linesMax = value; @@ -373,7 +440,10 @@ public final Builder linesMax(int value) { } /** - * Required - API name: {@code lines_total} + * Required - Total number of lines for the scripts that define the current + * runtime field data type. + *

+ * API name: {@code lines_total} */ public final Builder linesTotal(int value) { this.linesTotal = value; @@ -381,50 +451,54 @@ public final Builder linesTotal(int value) { } /** - * Required - API name: {@code chars_max} - */ - public final Builder charsMax(int value) { - this.charsMax = value; - return this; - } - - /** - * Required - API name: {@code chars_total} + * Required - Field data type used in selected nodes. + *

+ * API name: {@code name} */ - public final Builder charsTotal(int value) { - this.charsTotal = value; + public final Builder name(String value) { + this.name = value; return this; } /** - * Required - API name: {@code source_max} + * Required - Number of runtime fields that don’t declare a script. + *

+ * API name: {@code scriptless_count} */ - public final Builder sourceMax(int value) { - this.sourceMax = value; + public final Builder scriptlessCount(int value) { + this.scriptlessCount = value; return this; } /** - * Required - API name: {@code source_total} + * Required - Number of runtime fields that shadow an indexed field. + *

+ * API name: {@code shadowed_count} */ - public final Builder sourceTotal(int value) { - this.sourceTotal = value; + public final Builder shadowedCount(int value) { + this.shadowedCount = value; return this; } /** - * Required - API name: {@code doc_max} + * Required - Maximum number of accesses to _source for a single runtime field + * script. + *

+ * API name: {@code source_max} */ - public final Builder docMax(int value) { - this.docMax = value; + public final Builder sourceMax(int value) { + this.sourceMax = value; return this; } /** - * Required - API name: {@code doc_total} + * Required - Total number of accesses to _source for the scripts that define + * the current runtime field data type. + *

+ * API name: {@code source_total} */ - public final Builder docTotal(int value) { - this.docTotal = value; + public final Builder sourceTotal(int value) { + this.sourceTotal = value; return this; } @@ -456,20 +530,20 @@ public RuntimeFieldTypes build() { protected static void setupRuntimeFieldTypesDeserializer(ObjectDeserializer op) { - op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::charsMax, JsonpDeserializer.integerDeserializer(), "chars_max"); + op.add(Builder::charsTotal, JsonpDeserializer.integerDeserializer(), "chars_total"); op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); + op.add(Builder::docMax, JsonpDeserializer.integerDeserializer(), "doc_max"); + op.add(Builder::docTotal, JsonpDeserializer.integerDeserializer(), "doc_total"); op.add(Builder::indexCount, JsonpDeserializer.integerDeserializer(), "index_count"); - op.add(Builder::scriptlessCount, JsonpDeserializer.integerDeserializer(), "scriptless_count"); - op.add(Builder::shadowedCount, JsonpDeserializer.integerDeserializer(), "shadowed_count"); op.add(Builder::lang, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "lang"); op.add(Builder::linesMax, JsonpDeserializer.integerDeserializer(), "lines_max"); op.add(Builder::linesTotal, JsonpDeserializer.integerDeserializer(), "lines_total"); - op.add(Builder::charsMax, JsonpDeserializer.integerDeserializer(), "chars_max"); - op.add(Builder::charsTotal, JsonpDeserializer.integerDeserializer(), "chars_total"); + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::scriptlessCount, JsonpDeserializer.integerDeserializer(), "scriptless_count"); + op.add(Builder::shadowedCount, JsonpDeserializer.integerDeserializer(), "shadowed_count"); op.add(Builder::sourceMax, JsonpDeserializer.integerDeserializer(), "source_max"); op.add(Builder::sourceTotal, JsonpDeserializer.integerDeserializer(), "source_total"); - op.add(Builder::docMax, JsonpDeserializer.integerDeserializer(), "doc_max"); - op.add(Builder::docTotal, JsonpDeserializer.integerDeserializer(), "doc_total"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java index bb827b5bc..dee3f021c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java @@ -77,7 +77,7 @@ protected StatsResponseBase(AbstractBuilder builder) { } /** - * Required - Name of the cluster, based on the Cluster name setting setting. + * Required - Name of the cluster, based on the cluster name setting. *

* API name: {@code cluster_name} */ @@ -125,7 +125,7 @@ public final HealthStatus status() { } /** - * Required - Unix timestamp, in milliseconds, of the last time the cluster + * Required - Unix timestamp, in milliseconds, for the last time the cluster * statistics were refreshed. *

* API name: {@code timestamp} @@ -172,7 +172,7 @@ public abstract static class AbstractBuilder * API name: {@code cluster_name} */ @@ -245,7 +245,7 @@ public final BuilderT status(HealthStatus value) { } /** - * Required - Unix timestamp, in milliseconds, of the last time the cluster + * Required - Unix timestamp, in milliseconds, for the last time the cluster * statistics were refreshed. *

* API name: {@code timestamp} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 80c8ac554..b7469f368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -74,7 +74,9 @@ // typedef: _global.search.Request /** - * Returns results matching a query. + * Returns search hits that match the query defined in the request. You can + * provide search queries using the q query string parameter or the + * request body. If both are specified, only the query parameter is used. * * @see API * specification @@ -309,6 +311,8 @@ public final SourceConfig source() { } /** + * Defines the aggregations that are run as part of the search request. + *

* API name: {@code aggregations} */ public final Map aggregations() { @@ -316,9 +320,12 @@ public final Map aggregations() { } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -328,8 +335,8 @@ public final Boolean allowNoIndices() { } /** - * Indicate if an error should be returned if there is a partial search failure - * or timeout + * If true, returns partial results if there are shard request timeouts or shard + * failures. If false, returns an error with no partial results. *

* API name: {@code allow_partial_search_results} */ @@ -339,8 +346,8 @@ public final Boolean allowPartialSearchResults() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This parameter can only be + * used when the q query string parameter is specified. *

* API name: {@code analyze_wildcard} */ @@ -350,7 +357,8 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -373,8 +381,8 @@ public final Long batchedReduceSize() { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips between the coordinating node and the remote + * clusters are minimized when executing cross-cluster search (CCS) requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -384,6 +392,8 @@ public final Boolean ccsMinimizeRoundtrips() { } /** + * Collapses search results the values of the specified field. + *

* API name: {@code collapse} */ @Nullable @@ -392,7 +402,8 @@ public final FieldCollapse collapse() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or OR. This parameter can + * only be used when the q query string parameter is specified. *

* API name: {@code default_operator} */ @@ -402,8 +413,9 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code df} */ @@ -413,8 +425,9 @@ public final String df() { } /** - * Array of wildcard (*) patterns. The request returns doc values for field - * names matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns doc values + * for field names matching these patterns in the hits.fields + * property of the response. *

* API name: {@code docvalue_fields} */ @@ -423,8 +436,10 @@ public final List docvalueFields() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} */ @@ -453,8 +468,9 @@ public final Map ext() { } /** - * Array of wildcard (*) patterns. The request returns values for field names - * matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns values for + * field names matching these patterns in the hits.fields property + * of the response. *

* API name: {@code fields} */ @@ -463,9 +479,10 @@ public final List fields() { } /** - * Starting document offset. By default, you cannot page through more than - * 10,000 hits using the from and size parameters. To page through more hits, - * use the search_after parameter. + * Starting document offset. Needs to be non-negative. By default, you cannot + * page through more than 10,000 hits using the from and + * size parameters. To page through more hits, use the + * search_after parameter. *

* API name: {@code from} */ @@ -475,6 +492,9 @@ public final Integer from() { } /** + * Specifies the highlighter to use for retrieving highlighted snippets from one + * or more fields in your search results. + *

* API name: {@code highlight} */ @Nullable @@ -483,8 +503,8 @@ public final Highlight highlight() { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, concrete, expanded or aliased indices will be ignored + * when frozen. *

* API name: {@code ignore_throttled} */ @@ -494,8 +514,8 @@ public final Boolean ignoreThrottled() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -505,8 +525,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -533,8 +554,9 @@ public final List knn() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. This parameter can only + * be used when the q query string parameter is specified. *

* API name: {@code lenient} */ @@ -544,9 +566,9 @@ public final Boolean lenient() { } /** - * The number of concurrent shard requests per node this search executes + * Defines the number of concurrent shard requests per node this search executes * concurrently. This value should be used to limit the impact of the search on - * the cluster in order to limit the number of concurrent shard requests + * the cluster in order to limit the number of concurrent shard requests. *

* API name: {@code max_concurrent_shard_requests} */ @@ -556,8 +578,8 @@ public final Long maxConcurrentShardRequests() { } /** - * The minimum compatible version that all shards involved in search should have - * for this request to be successful + * The minimum version of the node that can handle the request Any handling node + * with a lower version will fail the request. *

* API name: {@code min_compatible_shard_node} */ @@ -567,8 +589,8 @@ public final String minCompatibleShardNode() { } /** - * Minimum _score for matching documents. Documents with a lower _score are not - * included in the search results. + * Minimum _score for matching documents. Documents with a lower + * _score are not included in the search results. *

* API name: {@code min_score} */ @@ -579,7 +601,7 @@ public final Double minScore() { /** * Limits the search to a point in time (PIT). If you provide a PIT, you cannot - * specify an <index> in the request path. + * specify an <index> in the request path. *

* API name: {@code pit} */ @@ -589,6 +611,10 @@ public final PointInTimeReference pit() { } /** + * Use the post_filter parameter to filter search results. The + * search hits are filtered after the aggregations are calculated. A post filter + * has no impact on the aggregation results. + *

* API name: {@code post_filter} */ @Nullable @@ -597,12 +623,15 @@ public final Query postFilter() { } /** - * A threshold that enforces a pre-filter roundtrip to prefilter search shards - * based on query rewriting if the number of shards the search request expands - * to exceeds the threshold. This filter roundtrip can limit the number of - * shards significantly if for instance a shard can not match any documents - * based on its rewrite method ie. if date filters are mandatory to match but - * the shard bounds and the query are disjoint. + * Defines a threshold that enforces a pre-filter roundtrip to prefilter search + * shards based on query rewriting if the number of shards the search request + * expands to exceeds the threshold. This filter roundtrip can limit the number + * of shards significantly if for instance a shard can not match any documents + * based on its rewrite method (if date filters are mandatory to match but the + * shard bounds and the query are disjoint). When unspecified, the pre-filter + * phase is executed if any of these conditions is met: the request targets more + * than 128 shards; the request targets one or more read-only index; the primary + * sort of the query targets an indexed field. *

* API name: {@code pre_filter_shard_size} */ @@ -612,8 +641,22 @@ public final Long preFilterShardSize() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Nodes and shards used for the search. By default, Elasticsearch selects from + * eligible nodes and shards using adaptive replica selection, accounting for + * allocation awareness. Valid values are: _only_local to run the + * search only on shards on the local node; _local to, if possible, + * run the search on shards on the local node, or if not, select shards using + * the default method; _only_nodes:<node-id>,<node-id> + * to run the search on only the specified nodes IDs, where, if suitable shards + * exist on more than one selected node, use shards on those nodes using the + * default method, or if none of the specified nodes are available, select + * shards from any available node using the default method; + * _prefer_nodes:<node-id>,<node-id> to if possible, + * run the search on the specified nodes IDs, or if not, select shards using the + * default method; _shards:<shard>,<shard> to run the + * search only on the specified shards; <custom-string> (any + * string that does not start with _) to route searches with the + * same <custom-string> to the same shards in the same order. *

* API name: {@code preference} */ @@ -623,6 +666,10 @@ public final String preference() { } /** + * Set to true to return detailed timing information about the + * execution of individual components in a search request. NOTE: This is a + * debugging tool and adds significant overhead to search execution. + *

* API name: {@code profile} */ @Nullable @@ -631,7 +678,9 @@ public final Boolean profile() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax using query parameter search. Query + * parameter searches do not support the full Elasticsearch Query DSL but are + * handy for testing. *

* API name: {@code q} */ @@ -651,7 +700,7 @@ public final Query query() { } /** - * Defines the Reciprocal Rank Fusion (RRF) to use + * Defines the Reciprocal Rank Fusion (RRF) to use. *

* API name: {@code rank} */ @@ -661,8 +710,8 @@ public final Rank rank() { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the caching of search results is enabled for requests + * where size is 0. Defaults to index level settings. *

* API name: {@code request_cache} */ @@ -672,6 +721,10 @@ public final Boolean requestCache() { } /** + * Can be used to improve precision by reordering just the top (for example 100 + * - 500) documents returned by the query and + * post_filter phases. + *

* API name: {@code rescore} */ public final List rescore() { @@ -679,7 +732,7 @@ public final List rescore() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -708,8 +761,10 @@ public final Map scriptFields() { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. See Scroll search results. + * By default, this value cannot exceed 1d (24 hours). You can + * change this limit using the search.max_keep_alive cluster-level + * setting. *

* API name: {@code scroll} */ @@ -719,6 +774,9 @@ public final Time scroll() { } /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

* API name: {@code search_after} */ public final List searchAfter() { @@ -726,7 +784,7 @@ public final List searchAfter() { } /** - * Search operation type + * How distributed term frequencies are calculated for relevance scoring. *

* API name: {@code search_type} */ @@ -736,8 +794,8 @@ public final SearchType searchType() { } /** - * If true, returns sequence number and primary term of the last modification of - * each hit. See Optimistic concurrency control. + * If true, returns sequence number and primary term of the last + * modification of each hit. *

* API name: {@code seq_no_primary_term} */ @@ -748,8 +806,8 @@ public final Boolean seqNoPrimaryTerm() { /** * The number of hits to return. By default, you cannot page through more than - * 10,000 hits using the from and size parameters. To page through more hits, - * use the search_after parameter. + * 10,000 hits using the from and size parameters. To + * page through more hits, use the search_after parameter. *

* API name: {@code size} */ @@ -759,6 +817,9 @@ public final Integer size() { } /** + * Can be used to split a scrolled search into multiple slices that can be + * consumed independently. + *

* API name: {@code slice} */ @Nullable @@ -767,6 +828,8 @@ public final SlicedScroll slice() { } /** + * A comma-separated list of <field>:<direction> pairs. + *

* API name: {@code sort} */ public final List sort() { @@ -787,8 +850,9 @@ public final List stats() { /** * List of stored fields to return as part of a hit. If no fields are specified, * no stored fields are included in the response. If this field is specified, - * the _source parameter defaults to false. You can pass _source: true to return - * both source fields and stored fields in the search response. + * the _source parameter defaults to false. You can + * pass _source: true to return both source fields and stored + * fields in the search response. *

* API name: {@code stored_fields} */ @@ -797,6 +861,9 @@ public final List storedFields() { } /** + * Defines a suggester that provides similar looking terms based on a provided + * text. + *

* API name: {@code suggest} */ @Nullable @@ -807,8 +874,12 @@ public final Suggester suggest() { /** * Maximum number of documents to collect for each shard. If a query reaches * this limit, Elasticsearch terminates the query early. Elasticsearch collects - * documents before sorting. Defaults to 0, which does not terminate query - * execution early. + * documents before sorting. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. If set to 0 (default), the query does not + * terminate early. *

* API name: {@code terminate_after} */ @@ -841,10 +912,10 @@ public final Boolean trackScores() { } /** - * Number of hits matching the query to count accurately. If true, the exact - * number of hits is returned at the cost of some performance. If false, the - * response does not include the total number of hits matching the query. - * Defaults to 10,000 hits. + * Number of hits matching the query to count accurately. If true, + * the exact number of hits is returned at the cost of some performance. If + * false, the response does not include the total number of hits + * matching the query. *

* API name: {@code track_total_hits} */ @@ -1313,6 +1384,8 @@ public final Builder source(Function * API name: {@code aggregations} *

* Adds all entries of map to aggregations. @@ -1323,6 +1396,8 @@ public final Builder aggregations(Map map) { } /** + * Defines the aggregations that are run as part of the search request. + *

* API name: {@code aggregations} *

* Adds an entry to aggregations. @@ -1333,6 +1408,8 @@ public final Builder aggregations(String key, Aggregation value) { } /** + * Defines the aggregations that are run as part of the search request. + *

* API name: {@code aggregations} *

* Adds an entry to aggregations using a builder lambda. @@ -1342,9 +1419,12 @@ public final Builder aggregations(String key, Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -1354,8 +1434,8 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Indicate if an error should be returned if there is a partial search failure - * or timeout + * If true, returns partial results if there are shard request timeouts or shard + * failures. If false, returns an error with no partial results. *

* API name: {@code allow_partial_search_results} */ @@ -1365,8 +1445,8 @@ public final Builder allowPartialSearchResults(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This parameter can only be + * used when the q query string parameter is specified. *

* API name: {@code analyze_wildcard} */ @@ -1376,7 +1456,8 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -1399,8 +1480,8 @@ public final Builder batchedReduceSize(@Nullable Long value) { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips between the coordinating node and the remote + * clusters are minimized when executing cross-cluster search (CCS) requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -1410,6 +1491,8 @@ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** + * Collapses search results the values of the specified field. + *

* API name: {@code collapse} */ public final Builder collapse(@Nullable FieldCollapse value) { @@ -1418,6 +1501,8 @@ public final Builder collapse(@Nullable FieldCollapse value) { } /** + * Collapses search results the values of the specified field. + *

* API name: {@code collapse} */ public final Builder collapse(Function> fn) { @@ -1425,7 +1510,8 @@ public final Builder collapse(Functionq query string parameter is specified. *

* API name: {@code default_operator} */ @@ -1435,8 +1521,9 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code df} */ @@ -1446,8 +1533,9 @@ public final Builder df(@Nullable String value) { } /** - * Array of wildcard (*) patterns. The request returns doc values for field - * names matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns doc values + * for field names matching these patterns in the hits.fields + * property of the response. *

* API name: {@code docvalue_fields} *

@@ -1459,8 +1547,9 @@ public final Builder docvalueFields(List list) { } /** - * Array of wildcard (*) patterns. The request returns doc values for field - * names matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns doc values + * for field names matching these patterns in the hits.fields + * property of the response. *

* API name: {@code docvalue_fields} *

@@ -1472,8 +1561,9 @@ public final Builder docvalueFields(FieldAndFormat value, FieldAndFormat... valu } /** - * Array of wildcard (*) patterns. The request returns doc values for field - * names matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns doc values + * for field names matching these patterns in the hits.fields + * property of the response. *

* API name: {@code docvalue_fields} *

@@ -1484,8 +1574,10 @@ public final Builder docvalueFields(Function

* API name: {@code expand_wildcards} *

@@ -1497,8 +1589,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -1545,8 +1639,9 @@ public final Builder ext(String key, JsonData value) { } /** - * Array of wildcard (*) patterns. The request returns values for field names - * matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns values for + * field names matching these patterns in the hits.fields property + * of the response. *

* API name: {@code fields} *

@@ -1558,8 +1653,9 @@ public final Builder fields(List list) { } /** - * Array of wildcard (*) patterns. The request returns values for field names - * matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns values for + * field names matching these patterns in the hits.fields property + * of the response. *

* API name: {@code fields} *

@@ -1571,8 +1667,9 @@ public final Builder fields(FieldAndFormat value, FieldAndFormat... values) { } /** - * Array of wildcard (*) patterns. The request returns values for field names - * matching these patterns in the hits.fields property of the response. + * Array of wildcard (*) patterns. The request returns values for + * field names matching these patterns in the hits.fields property + * of the response. *

* API name: {@code fields} *

@@ -1583,9 +1680,10 @@ public final Builder fields(Functionfrom and + * size parameters. To page through more hits, use the + * search_after parameter. *

* API name: {@code from} */ @@ -1595,6 +1693,9 @@ public final Builder from(@Nullable Integer value) { } /** + * Specifies the highlighter to use for retrieving highlighted snippets from one + * or more fields in your search results. + *

* API name: {@code highlight} */ public final Builder highlight(@Nullable Highlight value) { @@ -1603,6 +1704,9 @@ public final Builder highlight(@Nullable Highlight value) { } /** + * Specifies the highlighter to use for retrieving highlighted snippets from one + * or more fields in your search results. + *

* API name: {@code highlight} */ public final Builder highlight(Function> fn) { @@ -1610,8 +1714,8 @@ public final Builder highlight(Functiontrue, concrete, expanded or aliased indices will be ignored + * when frozen. *

* API name: {@code ignore_throttled} */ @@ -1621,8 +1725,8 @@ public final Builder ignoreThrottled(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -1632,8 +1736,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -1645,8 +1750,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -1717,8 +1823,9 @@ public final Builder knn(Function> fn) } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. This parameter can only + * be used when the q query string parameter is specified. *

* API name: {@code lenient} */ @@ -1728,9 +1835,9 @@ public final Builder lenient(@Nullable Boolean value) { } /** - * The number of concurrent shard requests per node this search executes + * Defines the number of concurrent shard requests per node this search executes * concurrently. This value should be used to limit the impact of the search on - * the cluster in order to limit the number of concurrent shard requests + * the cluster in order to limit the number of concurrent shard requests. *

* API name: {@code max_concurrent_shard_requests} */ @@ -1740,8 +1847,8 @@ public final Builder maxConcurrentShardRequests(@Nullable Long value) { } /** - * The minimum compatible version that all shards involved in search should have - * for this request to be successful + * The minimum version of the node that can handle the request Any handling node + * with a lower version will fail the request. *

* API name: {@code min_compatible_shard_node} */ @@ -1751,8 +1858,8 @@ public final Builder minCompatibleShardNode(@Nullable String value) { } /** - * Minimum _score for matching documents. Documents with a lower _score are not - * included in the search results. + * Minimum _score for matching documents. Documents with a lower + * _score are not included in the search results. *

* API name: {@code min_score} */ @@ -1763,7 +1870,7 @@ public final Builder minScore(@Nullable Double value) { /** * Limits the search to a point in time (PIT). If you provide a PIT, you cannot - * specify an <index> in the request path. + * specify an <index> in the request path. *

* API name: {@code pit} */ @@ -1774,7 +1881,7 @@ public final Builder pit(@Nullable PointInTimeReference value) { /** * Limits the search to a point in time (PIT). If you provide a PIT, you cannot - * specify an <index> in the request path. + * specify an <index> in the request path. *

* API name: {@code pit} */ @@ -1783,6 +1890,10 @@ public final Builder pit(Functionpost_filter parameter to filter search results. The + * search hits are filtered after the aggregations are calculated. A post filter + * has no impact on the aggregation results. + *

* API name: {@code post_filter} */ public final Builder postFilter(@Nullable Query value) { @@ -1791,6 +1902,10 @@ public final Builder postFilter(@Nullable Query value) { } /** + * Use the post_filter parameter to filter search results. The + * search hits are filtered after the aggregations are calculated. A post filter + * has no impact on the aggregation results. + *

* API name: {@code post_filter} */ public final Builder postFilter(Function> fn) { @@ -1798,12 +1913,15 @@ public final Builder postFilter(Function> fn } /** - * A threshold that enforces a pre-filter roundtrip to prefilter search shards - * based on query rewriting if the number of shards the search request expands - * to exceeds the threshold. This filter roundtrip can limit the number of - * shards significantly if for instance a shard can not match any documents - * based on its rewrite method ie. if date filters are mandatory to match but - * the shard bounds and the query are disjoint. + * Defines a threshold that enforces a pre-filter roundtrip to prefilter search + * shards based on query rewriting if the number of shards the search request + * expands to exceeds the threshold. This filter roundtrip can limit the number + * of shards significantly if for instance a shard can not match any documents + * based on its rewrite method (if date filters are mandatory to match but the + * shard bounds and the query are disjoint). When unspecified, the pre-filter + * phase is executed if any of these conditions is met: the request targets more + * than 128 shards; the request targets one or more read-only index; the primary + * sort of the query targets an indexed field. *

* API name: {@code pre_filter_shard_size} */ @@ -1813,8 +1931,22 @@ public final Builder preFilterShardSize(@Nullable Long value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Nodes and shards used for the search. By default, Elasticsearch selects from + * eligible nodes and shards using adaptive replica selection, accounting for + * allocation awareness. Valid values are: _only_local to run the + * search only on shards on the local node; _local to, if possible, + * run the search on shards on the local node, or if not, select shards using + * the default method; _only_nodes:<node-id>,<node-id> + * to run the search on only the specified nodes IDs, where, if suitable shards + * exist on more than one selected node, use shards on those nodes using the + * default method, or if none of the specified nodes are available, select + * shards from any available node using the default method; + * _prefer_nodes:<node-id>,<node-id> to if possible, + * run the search on the specified nodes IDs, or if not, select shards using the + * default method; _shards:<shard>,<shard> to run the + * search only on the specified shards; <custom-string> (any + * string that does not start with _) to route searches with the + * same <custom-string> to the same shards in the same order. *

* API name: {@code preference} */ @@ -1824,6 +1956,10 @@ public final Builder preference(@Nullable String value) { } /** + * Set to true to return detailed timing information about the + * execution of individual components in a search request. NOTE: This is a + * debugging tool and adds significant overhead to search execution. + *

* API name: {@code profile} */ public final Builder profile(@Nullable Boolean value) { @@ -1832,7 +1968,9 @@ public final Builder profile(@Nullable Boolean value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax using query parameter search. Query + * parameter searches do not support the full Elasticsearch Query DSL but are + * handy for testing. *

* API name: {@code q} */ @@ -1861,7 +1999,7 @@ public final Builder query(Function> fn) { } /** - * Defines the Reciprocal Rank Fusion (RRF) to use + * Defines the Reciprocal Rank Fusion (RRF) to use. *

* API name: {@code rank} */ @@ -1871,7 +2009,7 @@ public final Builder rank(@Nullable Rank value) { } /** - * Defines the Reciprocal Rank Fusion (RRF) to use + * Defines the Reciprocal Rank Fusion (RRF) to use. *

* API name: {@code rank} */ @@ -1880,8 +2018,8 @@ public final Builder rank(Function> fn) { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the caching of search results is enabled for requests + * where size is 0. Defaults to index level settings. *

* API name: {@code request_cache} */ @@ -1891,6 +2029,10 @@ public final Builder requestCache(@Nullable Boolean value) { } /** + * Can be used to improve precision by reordering just the top (for example 100 + * - 500) documents returned by the query and + * post_filter phases. + *

* API name: {@code rescore} *

* Adds all elements of list to rescore. @@ -1901,6 +2043,10 @@ public final Builder rescore(List list) { } /** + * Can be used to improve precision by reordering just the top (for example 100 + * - 500) documents returned by the query and + * post_filter phases. + *

* API name: {@code rescore} *

* Adds one or more values to rescore. @@ -1911,6 +2057,10 @@ public final Builder rescore(Rescore value, Rescore... values) { } /** + * Can be used to improve precision by reordering just the top (for example 100 + * - 500) documents returned by the query and + * post_filter phases. + *

* API name: {@code rescore} *

* Adds a value to rescore using a builder lambda. @@ -1920,7 +2070,7 @@ public final Builder rescore(Function> f } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -2004,8 +2154,10 @@ public final Builder scriptFields(String key, Function1d (24 hours). You can + * change this limit using the search.max_keep_alive cluster-level + * setting. *

* API name: {@code scroll} */ @@ -2015,8 +2167,10 @@ public final Builder scroll(@Nullable Time value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. See Scroll search results. + * By default, this value cannot exceed 1d (24 hours). You can + * change this limit using the search.max_keep_alive cluster-level + * setting. *

* API name: {@code scroll} */ @@ -2025,6 +2179,9 @@ public final Builder scroll(Function> fn) { } /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

* API name: {@code search_after} *

* Adds all elements of list to searchAfter. @@ -2035,6 +2192,9 @@ public final Builder searchAfter(List list) { } /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

* API name: {@code search_after} *

* Adds one or more values to searchAfter. @@ -2045,6 +2205,9 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { } /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

* API name: {@code search_after} *

* Adds a value to searchAfter using a builder lambda. @@ -2054,7 +2217,7 @@ public final Builder searchAfter(Function * API name: {@code search_type} */ @@ -2064,8 +2227,8 @@ public final Builder searchType(@Nullable SearchType value) { } /** - * If true, returns sequence number and primary term of the last modification of - * each hit. See Optimistic concurrency control. + * If true, returns sequence number and primary term of the last + * modification of each hit. *

* API name: {@code seq_no_primary_term} */ @@ -2076,8 +2239,8 @@ public final Builder seqNoPrimaryTerm(@Nullable Boolean value) { /** * The number of hits to return. By default, you cannot page through more than - * 10,000 hits using the from and size parameters. To page through more hits, - * use the search_after parameter. + * 10,000 hits using the from and size parameters. To + * page through more hits, use the search_after parameter. *

* API name: {@code size} */ @@ -2087,6 +2250,9 @@ public final Builder size(@Nullable Integer value) { } /** + * Can be used to split a scrolled search into multiple slices that can be + * consumed independently. + *

* API name: {@code slice} */ public final Builder slice(@Nullable SlicedScroll value) { @@ -2095,6 +2261,9 @@ public final Builder slice(@Nullable SlicedScroll value) { } /** + * Can be used to split a scrolled search into multiple slices that can be + * consumed independently. + *

* API name: {@code slice} */ public final Builder slice(Function> fn) { @@ -2102,6 +2271,8 @@ public final Builder slice(Function * API name: {@code sort} *

* Adds all elements of list to sort. @@ -2112,6 +2283,8 @@ public final Builder sort(List list) { } /** + * A comma-separated list of <field>:<direction> pairs. + *

* API name: {@code sort} *

* Adds one or more values to sort. @@ -2122,6 +2295,8 @@ public final Builder sort(SortOptions value, SortOptions... values) { } /** + * A comma-separated list of <field>:<direction> pairs. + *

* API name: {@code sort} *

* Adds a value to sort using a builder lambda. @@ -2161,8 +2336,9 @@ public final Builder stats(String value, String... values) { /** * List of stored fields to return as part of a hit. If no fields are specified, * no stored fields are included in the response. If this field is specified, - * the _source parameter defaults to false. You can pass _source: true to return - * both source fields and stored fields in the search response. + * the _source parameter defaults to false. You can + * pass _source: true to return both source fields and stored + * fields in the search response. *

* API name: {@code stored_fields} *

@@ -2176,8 +2352,9 @@ public final Builder storedFields(List list) { /** * List of stored fields to return as part of a hit. If no fields are specified, * no stored fields are included in the response. If this field is specified, - * the _source parameter defaults to false. You can pass _source: true to return - * both source fields and stored fields in the search response. + * the _source parameter defaults to false. You can + * pass _source: true to return both source fields and stored + * fields in the search response. *

* API name: {@code stored_fields} *

@@ -2189,6 +2366,9 @@ public final Builder storedFields(String value, String... values) { } /** + * Defines a suggester that provides similar looking terms based on a provided + * text. + *

* API name: {@code suggest} */ public final Builder suggest(@Nullable Suggester value) { @@ -2197,6 +2377,9 @@ public final Builder suggest(@Nullable Suggester value) { } /** + * Defines a suggester that provides similar looking terms based on a provided + * text. + *

* API name: {@code suggest} */ public final Builder suggest(Function> fn) { @@ -2206,8 +2389,12 @@ public final Builder suggest(Function0 (default), the query does not + * terminate early. *

* API name: {@code terminate_after} */ @@ -2240,10 +2427,10 @@ public final Builder trackScores(@Nullable Boolean value) { } /** - * Number of hits matching the query to count accurately. If true, the exact - * number of hits is returned at the cost of some performance. If false, the - * response does not include the total number of hits matching the query. - * Defaults to 10,000 hits. + * Number of hits matching the query to count accurately. If true, + * the exact number of hits is returned at the cost of some performance. If + * false, the response does not include the total number of hits + * matching the query. *

* API name: {@code track_total_hits} */ @@ -2253,10 +2440,10 @@ public final Builder trackTotalHits(@Nullable TrackHits value) { } /** - * Number of hits matching the query to count accurately. If true, the exact - * number of hits is returned at the cost of some performance. If false, the - * response does not include the total number of hits matching the query. - * Defaults to 10,000 hits. + * Number of hits matching the query to count accurately. If true, + * the exact number of hits is returned at the cost of some performance. If + * false, the response does not include the total number of hits + * matching the query. *

* API name: {@code track_total_hits} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java index e96138923..3fb805975 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java @@ -276,4 +276,18 @@ public final BuilderT versionType(@Nullable VersionType value) { } + // --------------------------------------------------------------------------------------------- + protected static > void setupBulkOperationBaseDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::id, JsonpDeserializer.stringDeserializer(), "_id"); + op.add(AbstractBuilder::index, JsonpDeserializer.stringDeserializer(), "_index"); + op.add(AbstractBuilder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(AbstractBuilder::ifPrimaryTerm, JsonpDeserializer.longDeserializer(), "if_primary_term"); + op.add(AbstractBuilder::ifSeqNo, JsonpDeserializer.longDeserializer(), "if_seq_no"); + op.add(AbstractBuilder::version, JsonpDeserializer.longDeserializer(), "version"); + op.add(AbstractBuilder::versionType, VersionType._DESERIALIZER, "version_type"); + + } + } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java index e6d5569e8..58d41b7ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java @@ -65,6 +65,9 @@ public class Indicators implements JsonpSerializable { @Nullable private final SlmIndicator slm; + @Nullable + private final ShardsCapacityIndicator shardsCapacity; + // --------------------------------------------------------------------------------------------- private Indicators(Builder builder) { @@ -75,6 +78,7 @@ private Indicators(Builder builder) { this.repositoryIntegrity = builder.repositoryIntegrity; this.ilm = builder.ilm; this.slm = builder.slm; + this.shardsCapacity = builder.shardsCapacity; } @@ -130,6 +134,14 @@ public final SlmIndicator slm() { return this.slm; } + /** + * API name: {@code shards_capacity} + */ + @Nullable + public final ShardsCapacityIndicator shardsCapacity() { + return this.shardsCapacity; + } + /** * Serialize this object to JSON. */ @@ -171,6 +183,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.slm.serialize(generator, mapper); } + if (this.shardsCapacity != null) { + generator.writeKey("shards_capacity"); + this.shardsCapacity.serialize(generator, mapper); + + } } @@ -204,6 +221,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SlmIndicator slm; + @Nullable + private ShardsCapacityIndicator shardsCapacity; + /** * API name: {@code master_is_stable} */ @@ -297,6 +317,22 @@ public final Builder slm(Function> fn) { + return this.shardsCapacity(fn.apply(new ShardsCapacityIndicator.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -331,6 +367,7 @@ protected static void setupIndicatorsDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class ShardsCapacityIndicator extends BaseIndicator { + @Nullable + private final ShardsCapacityIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private ShardsCapacityIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static ShardsCapacityIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final ShardsCapacityIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ShardsCapacityIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private ShardsCapacityIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable ShardsCapacityIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details( + Function> fn) { + return this.details(fn.apply(new ShardsCapacityIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ShardsCapacityIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ShardsCapacityIndicator build() { + _checkSingleUse(); + + return new ShardsCapacityIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ShardsCapacityIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ShardsCapacityIndicator::setupShardsCapacityIndicatorDeserializer); + + protected static void setupShardsCapacityIndicatorDeserializer( + ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, ShardsCapacityIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java new file mode 100644 index 000000000..f480e7f89 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java @@ -0,0 +1,186 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.ShardsCapacityIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ShardsCapacityIndicatorDetails implements JsonpSerializable { + private final ShardsCapacityIndicatorTierDetail data; + + private final ShardsCapacityIndicatorTierDetail frozen; + + // --------------------------------------------------------------------------------------------- + + private ShardsCapacityIndicatorDetails(Builder builder) { + + this.data = ApiTypeHelper.requireNonNull(builder.data, this, "data"); + this.frozen = ApiTypeHelper.requireNonNull(builder.frozen, this, "frozen"); + + } + + public static ShardsCapacityIndicatorDetails of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code data} + */ + public final ShardsCapacityIndicatorTierDetail data() { + return this.data; + } + + /** + * Required - API name: {@code frozen} + */ + public final ShardsCapacityIndicatorTierDetail frozen() { + return this.frozen; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("data"); + this.data.serialize(generator, mapper); + + generator.writeKey("frozen"); + this.frozen.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ShardsCapacityIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private ShardsCapacityIndicatorTierDetail data; + + private ShardsCapacityIndicatorTierDetail frozen; + + /** + * Required - API name: {@code data} + */ + public final Builder data(ShardsCapacityIndicatorTierDetail value) { + this.data = value; + return this; + } + + /** + * Required - API name: {@code data} + */ + public final Builder data( + Function> fn) { + return this.data(fn.apply(new ShardsCapacityIndicatorTierDetail.Builder()).build()); + } + + /** + * Required - API name: {@code frozen} + */ + public final Builder frozen(ShardsCapacityIndicatorTierDetail value) { + this.frozen = value; + return this; + } + + /** + * Required - API name: {@code frozen} + */ + public final Builder frozen( + Function> fn) { + return this.frozen(fn.apply(new ShardsCapacityIndicatorTierDetail.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ShardsCapacityIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ShardsCapacityIndicatorDetails build() { + _checkSingleUse(); + + return new ShardsCapacityIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ShardsCapacityIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ShardsCapacityIndicatorDetails::setupShardsCapacityIndicatorDetailsDeserializer); + + protected static void setupShardsCapacityIndicatorDetailsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::data, ShardsCapacityIndicatorTierDetail._DESERIALIZER, "data"); + op.add(Builder::frozen, ShardsCapacityIndicatorTierDetail._DESERIALIZER, "frozen"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java new file mode 100644 index 000000000..b1f42128f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java @@ -0,0 +1,177 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.ShardsCapacityIndicatorTierDetail + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ShardsCapacityIndicatorTierDetail implements JsonpSerializable { + private final int maxShardsInCluster; + + @Nullable + private final Integer currentUsedShards; + + // --------------------------------------------------------------------------------------------- + + private ShardsCapacityIndicatorTierDetail(Builder builder) { + + this.maxShardsInCluster = ApiTypeHelper.requireNonNull(builder.maxShardsInCluster, this, "maxShardsInCluster"); + this.currentUsedShards = builder.currentUsedShards; + + } + + public static ShardsCapacityIndicatorTierDetail of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code max_shards_in_cluster} + */ + public final int maxShardsInCluster() { + return this.maxShardsInCluster; + } + + /** + * API name: {@code current_used_shards} + */ + @Nullable + public final Integer currentUsedShards() { + return this.currentUsedShards; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("max_shards_in_cluster"); + generator.write(this.maxShardsInCluster); + + if (this.currentUsedShards != null) { + generator.writeKey("current_used_shards"); + generator.write(this.currentUsedShards); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ShardsCapacityIndicatorTierDetail}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Integer maxShardsInCluster; + + @Nullable + private Integer currentUsedShards; + + /** + * Required - API name: {@code max_shards_in_cluster} + */ + public final Builder maxShardsInCluster(int value) { + this.maxShardsInCluster = value; + return this; + } + + /** + * API name: {@code current_used_shards} + */ + public final Builder currentUsedShards(@Nullable Integer value) { + this.currentUsedShards = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ShardsCapacityIndicatorTierDetail}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ShardsCapacityIndicatorTierDetail build() { + _checkSingleUse(); + + return new ShardsCapacityIndicatorTierDetail(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ShardsCapacityIndicatorTierDetail} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ShardsCapacityIndicatorTierDetail::setupShardsCapacityIndicatorTierDetailDeserializer); + + protected static void setupShardsCapacityIndicatorTierDetailDeserializer( + ObjectDeserializer op) { + + op.add(Builder::maxShardsInCluster, JsonpDeserializer.integerDeserializer(), "max_shards_in_cluster"); + op.add(Builder::currentUsedShards, JsonpDeserializer.integerDeserializer(), "current_used_shards"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java index 39a04e88d..a1fce5a5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java @@ -35,10 +35,30 @@ */ @JsonpDeserializable public enum BoundaryScanner implements JsonEnum { + /** + * Use the characters specified by boundary_chars as highlighting + * boundaries. The boundary_max_scan setting controls how far to + * scan for boundary characters. Only valid for the fvh + * highlighter. + */ Chars("chars"), + /** + * Break highlighted fragments at the next sentence boundary, as determined by + * Java’s BreakIterator. You can specify the locale to use with + * boundary_scanner_locale. When used with the unified + * highlighter, the sentence scanner splits sentences bigger than + * fragment_size at the first word boundary next to fragment_size. + * You can set fragment_size to 0 to never split any + * sentence. + */ Sentence("sentence"), + /** + * Break highlighted fragments at the next word boundary, as determined by + * Java’s BreakIterator. You can specify the locale to use with + * boundary_scanner_locale. + */ Word("word"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java index bfeeceda4..9ac16f73c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java @@ -77,13 +77,17 @@ public static FieldCollapse of(Function> f } /** - * Required - API name: {@code field} + * Required - The field to collapse the result set on + *

+ * API name: {@code field} */ public final String field() { return this.field; } /** + * The number of inner hits and their sort order + *

* API name: {@code inner_hits} */ public final List innerHits() { @@ -91,6 +95,9 @@ public final List innerHits() { } /** + * The number of concurrent requests allowed to retrieve the inner_hits per + * group + *

* API name: {@code max_concurrent_group_searches} */ @Nullable @@ -167,7 +174,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FieldCollapse collapse; /** - * Required - API name: {@code field} + * Required - The field to collapse the result set on + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; @@ -175,6 +184,8 @@ public final Builder field(String value) { } /** + * The number of inner hits and their sort order + *

* API name: {@code inner_hits} *

* Adds all elements of list to innerHits. @@ -185,6 +196,8 @@ public final Builder innerHits(List list) { } /** + * The number of inner hits and their sort order + *

* API name: {@code inner_hits} *

* Adds one or more values to innerHits. @@ -195,6 +208,8 @@ public final Builder innerHits(InnerHits value, InnerHits... values) { } /** + * The number of inner hits and their sort order + *

* API name: {@code inner_hits} *

* Adds a value to innerHits using a builder lambda. @@ -204,6 +219,9 @@ public final Builder innerHits(Function * API name: {@code max_concurrent_group_searches} */ public final Builder maxConcurrentGroupSearches(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java index df6272629..2326f41b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java @@ -152,6 +152,8 @@ public final String type() { } /** + * A string that contains each boundary character. + *

* API name: {@code boundary_chars} */ @Nullable @@ -160,6 +162,8 @@ public final String boundaryChars() { } /** + * How far to scan for boundary characters. + *

* API name: {@code boundary_max_scan} */ @Nullable @@ -168,6 +172,11 @@ public final Integer boundaryMaxScan() { } /** + * Specifies how to break the highlighted fragments: chars, sentence, or word. + * Only valid for the unified and fvh highlighters. Defaults to + * sentence for the unified highlighter. Defaults to + * chars for the fvh highlighter. + *

* API name: {@code boundary_scanner} */ @Nullable @@ -176,6 +185,11 @@ public final BoundaryScanner boundaryScanner() { } /** + * Controls which locale is used to search for sentence and word boundaries. + * This parameter takes a form of a language tag, for example: + * "en-US", "fr-FR", + * "ja-JP". + *

* API name: {@code boundary_scanner_locale} */ @Nullable @@ -185,13 +199,20 @@ public final String boundaryScannerLocale() { /** * API name: {@code force_source} + * + * @deprecated 8.8.0 */ + @Deprecated @Nullable public final Boolean forceSource() { return this.forceSource; } /** + * Specifies how text should be broken up in highlight snippets: + * simple or span. Only valid for the + * plain highlighter. + *

* API name: {@code fragmenter} */ @Nullable @@ -200,6 +221,8 @@ public final HighlighterFragmenter fragmenter() { } /** + * The size of the highlighted fragment in characters. + *

* API name: {@code fragment_size} */ @Nullable @@ -216,6 +239,10 @@ public final Boolean highlightFilter() { } /** + * Highlight matches for a query other than the search query. This is especially + * useful if you use a rescore query because those are not taken into account by + * highlighting by default. + *

* API name: {@code highlight_query} */ @Nullable @@ -232,6 +259,12 @@ public final Integer maxFragmentLength() { } /** + * If set to a non-negative value, highlighting stops at this defined maximum + * limit. The rest of the text is not processed, thus not highlighted and no + * error is returned The max_analyzed_offset query setting does not + * override the index.highlight.max_analyzed_offset setting, which + * prevails when it’s set to lower value than the query setting. + *

* API name: {@code max_analyzed_offset} */ @Nullable @@ -240,6 +273,9 @@ public final Integer maxAnalyzedOffset() { } /** + * The amount of text you want to return from the beginning of the field if + * there are no matching fragments to highlight. + *

* API name: {@code no_match_size} */ @Nullable @@ -248,6 +284,13 @@ public final Integer noMatchSize() { } /** + * The maximum number of fragments to return. If the number of fragments is set + * to 0, no fragments are returned. Instead, the entire field + * contents are highlighted and returned. This can be handy when you need to + * highlight short texts such as a title or address, but fragmentation is not + * required. If number_of_fragments is 0, + * fragment_size is ignored. + *

* API name: {@code number_of_fragments} */ @Nullable @@ -263,6 +306,12 @@ public final Map options() { } /** + * Sorts highlighted fragments by score when set to score. By + * default, fragments will be output in the order they appear in the field + * (order: none). Setting this option to score will + * output the most relevant fragments first. Each highlighter applies its own + * logic to compute relevancy scores. + *

* API name: {@code order} */ @Nullable @@ -271,6 +320,13 @@ public final HighlighterOrder order() { } /** + * Controls the number of matching phrases in a document that are considered. + * Prevents the fvh highlighter from analyzing too many phrases and + * consuming too much memory. When using matched_fields, + * phrase_limit phrases per matched field are considered. Raising + * the limit increases query time and consumes more memory. Only supported by + * the fvh highlighter. + *

* API name: {@code phrase_limit} */ @Nullable @@ -279,6 +335,10 @@ public final Integer phraseLimit() { } /** + * Use in conjunction with pre_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code post_tags} */ public final List postTags() { @@ -286,6 +346,10 @@ public final List postTags() { } /** + * Use in conjunction with post_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code pre_tags} */ public final List preTags() { @@ -293,6 +357,9 @@ public final List preTags() { } /** + * By default, only fields that contains a query match are highlighted. Set to + * false to highlight all fields. + *

* API name: {@code require_field_match} */ @Nullable @@ -301,6 +368,8 @@ public final Boolean requireFieldMatch() { } /** + * Set to styled to use the built-in tag schema. + *

* API name: {@code tags_schema} */ @Nullable @@ -527,6 +596,8 @@ public final BuilderT type(@Nullable HighlighterType value) { } /** + * A string that contains each boundary character. + *

* API name: {@code boundary_chars} */ public final BuilderT boundaryChars(@Nullable String value) { @@ -535,6 +606,8 @@ public final BuilderT boundaryChars(@Nullable String value) { } /** + * How far to scan for boundary characters. + *

* API name: {@code boundary_max_scan} */ public final BuilderT boundaryMaxScan(@Nullable Integer value) { @@ -543,6 +616,11 @@ public final BuilderT boundaryMaxScan(@Nullable Integer value) { } /** + * Specifies how to break the highlighted fragments: chars, sentence, or word. + * Only valid for the unified and fvh highlighters. Defaults to + * sentence for the unified highlighter. Defaults to + * chars for the fvh highlighter. + *

* API name: {@code boundary_scanner} */ public final BuilderT boundaryScanner(@Nullable BoundaryScanner value) { @@ -551,6 +629,11 @@ public final BuilderT boundaryScanner(@Nullable BoundaryScanner value) { } /** + * Controls which locale is used to search for sentence and word boundaries. + * This parameter takes a form of a language tag, for example: + * "en-US", "fr-FR", + * "ja-JP". + *

* API name: {@code boundary_scanner_locale} */ public final BuilderT boundaryScannerLocale(@Nullable String value) { @@ -560,13 +643,20 @@ public final BuilderT boundaryScannerLocale(@Nullable String value) { /** * API name: {@code force_source} + * + * @deprecated 8.8.0 */ + @Deprecated public final BuilderT forceSource(@Nullable Boolean value) { this.forceSource = value; return self(); } /** + * Specifies how text should be broken up in highlight snippets: + * simple or span. Only valid for the + * plain highlighter. + *

* API name: {@code fragmenter} */ public final BuilderT fragmenter(@Nullable HighlighterFragmenter value) { @@ -575,6 +665,8 @@ public final BuilderT fragmenter(@Nullable HighlighterFragmenter value) { } /** + * The size of the highlighted fragment in characters. + *

* API name: {@code fragment_size} */ public final BuilderT fragmentSize(@Nullable Integer value) { @@ -591,6 +683,10 @@ public final BuilderT highlightFilter(@Nullable Boolean value) { } /** + * Highlight matches for a query other than the search query. This is especially + * useful if you use a rescore query because those are not taken into account by + * highlighting by default. + *

* API name: {@code highlight_query} */ public final BuilderT highlightQuery(@Nullable Query value) { @@ -599,6 +695,10 @@ public final BuilderT highlightQuery(@Nullable Query value) { } /** + * Highlight matches for a query other than the search query. This is especially + * useful if you use a rescore query because those are not taken into account by + * highlighting by default. + *

* API name: {@code highlight_query} */ public final BuilderT highlightQuery(Function> fn) { @@ -614,6 +714,12 @@ public final BuilderT maxFragmentLength(@Nullable Integer value) { } /** + * If set to a non-negative value, highlighting stops at this defined maximum + * limit. The rest of the text is not processed, thus not highlighted and no + * error is returned The max_analyzed_offset query setting does not + * override the index.highlight.max_analyzed_offset setting, which + * prevails when it’s set to lower value than the query setting. + *

* API name: {@code max_analyzed_offset} */ public final BuilderT maxAnalyzedOffset(@Nullable Integer value) { @@ -622,6 +728,9 @@ public final BuilderT maxAnalyzedOffset(@Nullable Integer value) { } /** + * The amount of text you want to return from the beginning of the field if + * there are no matching fragments to highlight. + *

* API name: {@code no_match_size} */ public final BuilderT noMatchSize(@Nullable Integer value) { @@ -630,6 +739,13 @@ public final BuilderT noMatchSize(@Nullable Integer value) { } /** + * The maximum number of fragments to return. If the number of fragments is set + * to 0, no fragments are returned. Instead, the entire field + * contents are highlighted and returned. This can be handy when you need to + * highlight short texts such as a title or address, but fragmentation is not + * required. If number_of_fragments is 0, + * fragment_size is ignored. + *

* API name: {@code number_of_fragments} */ public final BuilderT numberOfFragments(@Nullable Integer value) { @@ -658,6 +774,12 @@ public final BuilderT options(String key, JsonData value) { } /** + * Sorts highlighted fragments by score when set to score. By + * default, fragments will be output in the order they appear in the field + * (order: none). Setting this option to score will + * output the most relevant fragments first. Each highlighter applies its own + * logic to compute relevancy scores. + *

* API name: {@code order} */ public final BuilderT order(@Nullable HighlighterOrder value) { @@ -666,6 +788,13 @@ public final BuilderT order(@Nullable HighlighterOrder value) { } /** + * Controls the number of matching phrases in a document that are considered. + * Prevents the fvh highlighter from analyzing too many phrases and + * consuming too much memory. When using matched_fields, + * phrase_limit phrases per matched field are considered. Raising + * the limit increases query time and consumes more memory. Only supported by + * the fvh highlighter. + *

* API name: {@code phrase_limit} */ public final BuilderT phraseLimit(@Nullable Integer value) { @@ -674,6 +803,10 @@ public final BuilderT phraseLimit(@Nullable Integer value) { } /** + * Use in conjunction with pre_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code post_tags} *

* Adds all elements of list to postTags. @@ -684,6 +817,10 @@ public final BuilderT postTags(List list) { } /** + * Use in conjunction with pre_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code post_tags} *

* Adds one or more values to postTags. @@ -694,6 +831,10 @@ public final BuilderT postTags(String value, String... values) { } /** + * Use in conjunction with post_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code pre_tags} *

* Adds all elements of list to preTags. @@ -704,6 +845,10 @@ public final BuilderT preTags(List list) { } /** + * Use in conjunction with post_tags to define the HTML tags to use + * for the highlighted text. By default, highlighted text is wrapped in + * <em> and </em> tags. + *

* API name: {@code pre_tags} *

* Adds one or more values to preTags. @@ -714,6 +859,9 @@ public final BuilderT preTags(String value, String... values) { } /** + * By default, only fields that contains a query match are highlighted. Set to + * false to highlight all fields. + *

* API name: {@code require_field_match} */ public final BuilderT requireFieldMatch(@Nullable Boolean value) { @@ -722,6 +870,8 @@ public final BuilderT requireFieldMatch(@Nullable Boolean value) { } /** + * Set to styled to use the built-in tag schema. + *

* API name: {@code tags_schema} */ public final BuilderT tagsSchema(@Nullable HighlighterTagsSchema value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterType.java index 5a7366ff7..02541b729 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterType.java @@ -35,10 +35,19 @@ */ @JsonpDeserializable public enum HighlighterType implements JsonEnum { + /** + * The plain highlighter uses the standard Lucene highlighter + */ Plain("plain"), + /** + * The fvh highlighter uses the Lucene Fast Vector highlighter. + */ FastVector("fvh"), + /** + * The unified highlighter uses the Lucene Unified Highlighter. + */ Unified("unified"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java index 400769ef7..e62bc153d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java @@ -127,6 +127,9 @@ public static InnerHits of(Function> fn) { } /** + * The name for the particular inner hit definition in the response. Useful when + * a search request contains multiple inner hits. + *

* API name: {@code name} */ @Nullable @@ -135,6 +138,8 @@ public final String name() { } /** + * The maximum number of hits to return per inner_hits. + *

* API name: {@code size} */ @Nullable @@ -143,6 +148,8 @@ public final Integer size() { } /** + * Inner hit starting document offset. + *

* API name: {@code from} */ @Nullable @@ -212,6 +219,9 @@ public final List fields() { } /** + * How the inner hits should be sorted per inner_hits. By default, + * inner hits are sorted by score. + *

* API name: {@code sort} */ public final List sort() { @@ -430,6 +440,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean version; /** + * The name for the particular inner hit definition in the response. Useful when + * a search request contains multiple inner hits. + *

* API name: {@code name} */ public final Builder name(@Nullable String value) { @@ -438,6 +451,8 @@ public final Builder name(@Nullable String value) { } /** + * The maximum number of hits to return per inner_hits. + *

* API name: {@code size} */ public final Builder size(@Nullable Integer value) { @@ -446,6 +461,8 @@ public final Builder size(@Nullable Integer value) { } /** + * Inner hit starting document offset. + *

* API name: {@code from} */ public final Builder from(@Nullable Integer value) { @@ -586,6 +603,9 @@ public final Builder fields(String value, String... values) { } /** + * How the inner hits should be sorted per inner_hits. By default, + * inner hits are sorted by score. + *

* API name: {@code sort} *

* Adds all elements of list to sort. @@ -596,6 +616,9 @@ public final Builder sort(List list) { } /** + * How the inner hits should be sorted per inner_hits. By default, + * inner hits are sorted by score. + *

* API name: {@code sort} *

* Adds one or more values to sort. @@ -606,6 +629,9 @@ public final Builder sort(SortOptions value, SortOptions... values) { } /** + * How the inner hits should be sorted per inner_hits. By default, + * inner hits are sorted by score. + *

* API name: {@code sort} *

* Adds a value to sort using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java index a3bb39dea..d8ed4b0ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java @@ -77,13 +77,19 @@ public static RescoreQuery of(Function> fn) } /** - * Required - API name: {@code rescore_query} + * Required - The query to use for rescoring. This query is only run on the + * Top-K results returned by the query and post_filter + * phases. + *

+ * API name: {@code rescore_query} */ public final Query query() { return this.query; } /** + * Relative importance of the original query versus the rescore query. + *

* API name: {@code query_weight} */ @Nullable @@ -92,6 +98,8 @@ public final Double queryWeight() { } /** + * Relative importance of the rescore query versus the original query. + *

* API name: {@code rescore_query_weight} */ @Nullable @@ -100,6 +108,8 @@ public final Double rescoreQueryWeight() { } /** + * Determines how scores are combined. + *

* API name: {@code score_mode} */ @Nullable @@ -162,7 +172,11 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ScoreMode scoreMode; /** - * Required - API name: {@code rescore_query} + * Required - The query to use for rescoring. This query is only run on the + * Top-K results returned by the query and post_filter + * phases. + *

+ * API name: {@code rescore_query} */ public final Builder query(Query value) { this.query = value; @@ -170,13 +184,19 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code rescore_query} + * Required - The query to use for rescoring. This query is only run on the + * Top-K results returned by the query and post_filter + * phases. + *

+ * API name: {@code rescore_query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** + * Relative importance of the original query versus the rescore query. + *

* API name: {@code query_weight} */ public final Builder queryWeight(@Nullable Double value) { @@ -185,6 +205,8 @@ public final Builder queryWeight(@Nullable Double value) { } /** + * Relative importance of the rescore query versus the original query. + *

* API name: {@code rescore_query_weight} */ public final Builder rescoreQueryWeight(@Nullable Double value) { @@ -193,6 +215,8 @@ public final Builder rescoreQueryWeight(@Nullable Double value) { } /** + * Determines how scores are combined. + *

* API name: {@code score_mode} */ public final Builder scoreMode(@Nullable ScoreMode value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java index 9026dfd37..f430af232 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java @@ -35,14 +35,30 @@ */ @JsonpDeserializable public enum ScoreMode implements JsonEnum { + /** + * Average the original score and the rescore query score. + */ Avg("avg"), + /** + * Take the max of original score and the rescore query score. + */ Max("max"), + /** + * Take the min of the original score and the rescore query score. + */ Min("min"), + /** + * Multiply the original score by the rescore query score. Useful for + * function query rescores. + */ Multiply("multiply"), + /** + * Add the original score and the rescore query score. + */ Total("total"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 57e2c307d..6a2b0daf0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -43,7 +43,7 @@ '_global.field_caps.Response': '_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35', '_global.get.GetResult': '_global/get/types.ts#L25-L35', '_global.get.Request': '_global/get/GetRequest.ts#L31-L86', -'_global.get.Response': '_global/get/GetResponse.ts#L22-L24', +'_global.get.Response': '_global/get/GetResponse.ts#L23-L34', '_global.get_script.Request': '_global/get_script/GetScriptRequest.ts#L24-L37', '_global.get_script.Response': '_global/get_script/GetScriptResponse.ts#L23-L29', '_global.get_script_context.Context': '_global/get_script_context/types.ts#L22-L25', @@ -56,31 +56,34 @@ '_global.get_script_languages.Response': '_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27', '_global.get_source.Request': '_global/get_source/SourceRequest.ts#L31-L86', '_global.get_source.Response': '_global/get_source/SourceResponse.ts#L20-L22', -'_global.health_report.BaseIndicator': '_global/health_report/types.ts#L41-L46', -'_global.health_report.Diagnosis': '_global/health_report/types.ts#L48-L54', -'_global.health_report.DiagnosisAffectedResources': '_global/health_report/types.ts#L56-L62', -'_global.health_report.DiskIndicator': '_global/health_report/types.ts#L120-L124', -'_global.health_report.DiskIndicatorDetails': '_global/health_report/types.ts#L125-L131', -'_global.health_report.IlmIndicator': '_global/health_report/types.ts#L144-L148', -'_global.health_report.IlmIndicatorDetails': '_global/health_report/types.ts#L149-L152', -'_global.health_report.Impact': '_global/health_report/types.ts#L64-L69', -'_global.health_report.ImpactArea': '_global/health_report/types.ts#L71-L76', +'_global.health_report.BaseIndicator': '_global/health_report/types.ts#L42-L47', +'_global.health_report.Diagnosis': '_global/health_report/types.ts#L49-L55', +'_global.health_report.DiagnosisAffectedResources': '_global/health_report/types.ts#L57-L63', +'_global.health_report.DiskIndicator': '_global/health_report/types.ts#L121-L125', +'_global.health_report.DiskIndicatorDetails': '_global/health_report/types.ts#L126-L132', +'_global.health_report.IlmIndicator': '_global/health_report/types.ts#L145-L149', +'_global.health_report.IlmIndicatorDetails': '_global/health_report/types.ts#L150-L153', +'_global.health_report.Impact': '_global/health_report/types.ts#L65-L70', +'_global.health_report.ImpactArea': '_global/health_report/types.ts#L72-L77', '_global.health_report.IndicatorHealthStatus': '_global/health_report/types.ts#L25-L30', -'_global.health_report.IndicatorNode': '_global/health_report/types.ts#L89-L92', -'_global.health_report.Indicators': '_global/health_report/types.ts#L32-L39', -'_global.health_report.MasterIsStableIndicator': '_global/health_report/types.ts#L78-L82', -'_global.health_report.MasterIsStableIndicatorClusterFormationNode': '_global/health_report/types.ts#L97-L101', -'_global.health_report.MasterIsStableIndicatorDetails': '_global/health_report/types.ts#L83-L88', -'_global.health_report.MasterIsStableIndicatorExceptionFetchingHistory': '_global/health_report/types.ts#L93-L96', -'_global.health_report.RepositoryIntegrityIndicator': '_global/health_report/types.ts#L133-L137', -'_global.health_report.RepositoryIntegrityIndicatorDetails': '_global/health_report/types.ts#L138-L142', +'_global.health_report.IndicatorNode': '_global/health_report/types.ts#L90-L93', +'_global.health_report.Indicators': '_global/health_report/types.ts#L32-L40', +'_global.health_report.MasterIsStableIndicator': '_global/health_report/types.ts#L79-L83', +'_global.health_report.MasterIsStableIndicatorClusterFormationNode': '_global/health_report/types.ts#L98-L102', +'_global.health_report.MasterIsStableIndicatorDetails': '_global/health_report/types.ts#L84-L89', +'_global.health_report.MasterIsStableIndicatorExceptionFetchingHistory': '_global/health_report/types.ts#L94-L97', +'_global.health_report.RepositoryIntegrityIndicator': '_global/health_report/types.ts#L134-L138', +'_global.health_report.RepositoryIntegrityIndicatorDetails': '_global/health_report/types.ts#L139-L143', '_global.health_report.Request': '_global/health_report/Request.ts#L24-L51', '_global.health_report.Response': '_global/health_report/Response.ts#L22-L27', -'_global.health_report.ShardsAvailabilityIndicator': '_global/health_report/types.ts#L103-L107', -'_global.health_report.ShardsAvailabilityIndicatorDetails': '_global/health_report/types.ts#L108-L118', -'_global.health_report.SlmIndicator': '_global/health_report/types.ts#L154-L158', -'_global.health_report.SlmIndicatorDetails': '_global/health_report/types.ts#L159-L163', -'_global.health_report.SlmIndicatorUnhealthyPolicies': '_global/health_report/types.ts#L165-L168', +'_global.health_report.ShardsAvailabilityIndicator': '_global/health_report/types.ts#L104-L108', +'_global.health_report.ShardsAvailabilityIndicatorDetails': '_global/health_report/types.ts#L109-L119', +'_global.health_report.ShardsCapacityIndicator': '_global/health_report/types.ts#L171-L175', +'_global.health_report.ShardsCapacityIndicatorDetails': '_global/health_report/types.ts#L177-L180', +'_global.health_report.ShardsCapacityIndicatorTierDetail': '_global/health_report/types.ts#L182-L185', +'_global.health_report.SlmIndicator': '_global/health_report/types.ts#L155-L159', +'_global.health_report.SlmIndicatorDetails': '_global/health_report/types.ts#L160-L164', +'_global.health_report.SlmIndicatorUnhealthyPolicies': '_global/health_report/types.ts#L166-L169', '_global.index.Request': '_global/index/IndexRequest.ts#L35-L60', '_global.index.Response': '_global/index/IndexResponse.ts#L22-L24', '_global.info.Request': '_global/info/RootNodeInfoRequest.ts#L22-L27', @@ -146,14 +149,14 @@ '_global.scripts_painless_execute.Response': '_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24', '_global.scroll.Request': '_global/scroll/ScrollRequest.ts#L24-L59', '_global.scroll.Response': '_global/scroll/ScrollResponse.ts#L22-L24', -'_global.search.Request': '_global/search/SearchRequest.ts#L53-L253', +'_global.search.Request': '_global/search/SearchRequest.ts#L53-L506', '_global.search.Response': '_global/search/SearchResponse.ts#L34-L36', '_global.search.ResponseBody': '_global/search/SearchResponse.ts#L38-L54', '_global.search._types.AggregationBreakdown': '_global/search/_types/profile.ts#L23-L36', '_global.search._types.AggregationProfile': '_global/search/_types/profile.ts#L77-L84', '_global.search._types.AggregationProfileDebug': '_global/search/_types/profile.ts#L39-L68', '_global.search._types.AggregationProfileDelegateDebugFilter': '_global/search/_types/profile.ts#L70-L75', -'_global.search._types.BoundaryScanner': '_global/search/_types/highlighting.ts#L27-L31', +'_global.search._types.BoundaryScanner': '_global/search/_types/highlighting.ts#L27-L46', '_global.search._types.Collector': '_global/search/_types/profile.ts#L86-L91', '_global.search._types.CompletionContext': '_global/search/_types/suggester.ts#L159-L166', '_global.search._types.CompletionSuggest': '_global/search/_types/suggester.ts#L48-L55', @@ -164,19 +167,19 @@ '_global.search._types.FetchProfile': '_global/search/_types/profile.ts#L139-L146', '_global.search._types.FetchProfileBreakdown': '_global/search/_types/profile.ts#L148-L157', '_global.search._types.FetchProfileDebug': '_global/search/_types/profile.ts#L159-L162', -'_global.search._types.FieldCollapse': '_global/search/_types/FieldCollapse.ts#L24-L29', +'_global.search._types.FieldCollapse': '_global/search/_types/FieldCollapse.ts#L24-L38', '_global.search._types.FieldSuggester': '_global/search/_types/suggester.ts#L106-L120', -'_global.search._types.Highlight': '_global/search/_types/highlighting.ts#L57-L60', -'_global.search._types.HighlightBase': '_global/search/_types/highlighting.ts#L33-L55', -'_global.search._types.HighlightField': '_global/search/_types/highlighting.ts#L88-L92', -'_global.search._types.HighlighterEncoder': '_global/search/_types/highlighting.ts#L62-L65', -'_global.search._types.HighlighterFragmenter': '_global/search/_types/highlighting.ts#L67-L70', -'_global.search._types.HighlighterOrder': '_global/search/_types/highlighting.ts#L72-L74', -'_global.search._types.HighlighterTagsSchema': '_global/search/_types/highlighting.ts#L76-L78', -'_global.search._types.HighlighterType': '_global/search/_types/highlighting.ts#L80-L86', +'_global.search._types.Highlight': '_global/search/_types/highlighting.ts#L153-L156', +'_global.search._types.HighlightBase': '_global/search/_types/highlighting.ts#L48-L151', +'_global.search._types.HighlightField': '_global/search/_types/highlighting.ts#L193-L197', +'_global.search._types.HighlighterEncoder': '_global/search/_types/highlighting.ts#L158-L161', +'_global.search._types.HighlighterFragmenter': '_global/search/_types/highlighting.ts#L163-L166', +'_global.search._types.HighlighterOrder': '_global/search/_types/highlighting.ts#L168-L170', +'_global.search._types.HighlighterTagsSchema': '_global/search/_types/highlighting.ts#L172-L174', +'_global.search._types.HighlighterType': '_global/search/_types/highlighting.ts#L176-L191', '_global.search._types.Hit': '_global/search/_types/hits.ts#L40-L64', '_global.search._types.HitsMetadata': '_global/search/_types/hits.ts#L66-L72', -'_global.search._types.InnerHits': '_global/search/_types/hits.ts#L106-L124', +'_global.search._types.InnerHits': '_global/search/_types/hits.ts#L106-L140', '_global.search._types.InnerHitsResult': '_global/search/_types/hits.ts#L84-L86', '_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L216-L218', '_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L220-L224', @@ -193,8 +196,8 @@ '_global.search._types.QueryProfile': '_global/search/_types/profile.ts#L118-L124', '_global.search._types.RegexOptions': '_global/search/_types/suggester.ts#L137-L140', '_global.search._types.Rescore': '_global/search/_types/rescoring.ts#L23-L26', -'_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L28-L34', -'_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L36-L42', +'_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L28-L50', +'_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L52-L74', '_global.search._types.SearchProfile': '_global/search/_types/profile.ts#L126-L130', '_global.search._types.ShardProfile': '_global/search/_types/profile.ts#L132-L137', '_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L228-L235', @@ -214,7 +217,7 @@ '_global.search._types.TermSuggester': '_global/search/_types/suggester.ts#L256-L269', '_global.search._types.TotalHits': '_global/search/_types/hits.ts#L94-L97', '_global.search._types.TotalHitsRelation': '_global/search/_types/hits.ts#L99-L104', -'_global.search._types.TrackHits': '_global/search/_types/hits.ts#L126-L134', +'_global.search._types.TrackHits': '_global/search/_types/hits.ts#L142-L150', '_global.search_mvt.Request': '_global/search_mvt/SearchMvtRequest.ts#L33-L187', '_global.search_mvt.Response': '_global/search_mvt/SearchMvtResponse.ts#L22-L24', '_global.search_mvt._types.GridAggregationType': '_global/search_mvt/_types/GridType.ts#L30-L33', @@ -245,234 +248,239 @@ '_types.AcknowledgedResponseBase': '_types/Base.ts#L47-L50', '_types.BulkIndexByScrollFailure': '_types/Errors.ts#L58-L64', '_types.BulkStats': '_types/Stats.ts#L47-L57', -'_types.Bytes': '_types/common.ts#L149-L167', -'_types.ClusterInfoTarget': '_types/common.ts#L343-L349', +'_types.Bytes': '_types/common.ts#L150-L168', +'_types.ClusterInfoTarget': '_types/common.ts#L344-L350', '_types.ClusterStatistics': '_types/Stats.ts#L27-L31', -'_types.CompletionStats': '_types/Stats.ts#L59-L63', -'_types.Conflicts': '_types/common.ts#L169-L172', -'_types.CoordsGeoBounds': '_types/Geo.ts#L138-L143', +'_types.CompletionStats': '_types/Stats.ts#L59-L69', +'_types.Conflicts': '_types/common.ts#L170-L173', +'_types.CoordsGeoBounds': '_types/Geo.ts#L151-L156', '_types.DFIIndependenceMeasure': '_types/Similarity.ts#L20-L24', '_types.DFRAfterEffect': '_types/Similarity.ts#L26-L30', '_types.DFRBasicModel': '_types/Similarity.ts#L32-L40', '_types.DistanceUnit': '_types/Geo.ts#L30-L49', -'_types.DocStats': '_types/Stats.ts#L70-L73', +'_types.DocStats': '_types/Stats.ts#L76-L88', '_types.ElasticsearchVersionInfo': '_types/Base.ts#L54-L64', -'_types.EmptyObject': '_types/common.ts#L140-L141', +'_types.EmptyObject': '_types/common.ts#L141-L142', '_types.ErrorCause': '_types/Errors.ts#L25-L48', '_types.ErrorResponseBase': '_types/Base.ts#L66-L75', -'_types.ExpandWildcard': '_types/common.ts#L181-L195', -'_types.FieldMemoryUsage': '_types/Stats.ts#L82-L85', -'_types.FieldSizeUsage': '_types/Stats.ts#L65-L68', +'_types.ExpandWildcard': '_types/common.ts#L182-L196', +'_types.FieldMemoryUsage': '_types/Stats.ts#L97-L100', +'_types.FieldSizeUsage': '_types/Stats.ts#L71-L74', '_types.FieldSort': '_types/sort.ts#L44-L53', '_types.FieldSortNumericType': '_types/sort.ts#L37-L42', -'_types.FielddataStats': '_types/Stats.ts#L75-L80', -'_types.FlushStats': '_types/Stats.ts#L87-L92', -'_types.GeoBounds': '_types/Geo.ts#L119-L132', +'_types.FielddataStats': '_types/Stats.ts#L90-L95', +'_types.FlushStats': '_types/Stats.ts#L102-L107', +'_types.GeoBounds': '_types/Geo.ts#L132-L145', '_types.GeoDistanceSort': '_types/sort.ts#L58-L66', '_types.GeoDistanceType': '_types/Geo.ts#L51-L54', -'_types.GeoHashLocation': '_types/Geo.ts#L115-L117', -'_types.GeoHashPrecision': '_types/Geo.ts#L76-L80', +'_types.GeoHashLocation': '_types/Geo.ts#L128-L130', +'_types.GeoHashPrecision': '_types/Geo.ts#L89-L93', '_types.GeoLine': '_types/Geo.ts#L59-L65', -'_types.GeoLocation': '_types/Geo.ts#L94-L108', -'_types.GeoShapeRelation': '_types/Geo.ts#L67-L72', -'_types.GetStats': '_types/Stats.ts#L94-L105', -'_types.HealthStatus': '_types/common.ts#L199-L219', +'_types.GeoLocation': '_types/Geo.ts#L107-L121', +'_types.GeoShapeRelation': '_types/Geo.ts#L67-L85', +'_types.GetStats': '_types/Stats.ts#L109-L120', +'_types.HealthStatus': '_types/common.ts#L200-L220', '_types.IBDistribution': '_types/Similarity.ts#L42-L45', '_types.IBLambda': '_types/Similarity.ts#L47-L50', -'_types.IndexingStats': '_types/Stats.ts#L107-L123', -'_types.IndicesOptions': '_types/common.ts#L297-L324', +'_types.IndexingStats': '_types/Stats.ts#L122-L138', +'_types.IndicesOptions': '_types/common.ts#L298-L325', '_types.IndicesResponseBase': '_types/Base.ts#L77-L79', -'_types.InlineGet': '_types/common.ts#L286-L295', -'_types.InlineScript': '_types/Scripting.ts#L45-L50', +'_types.InlineGet': '_types/common.ts#L287-L296', +'_types.InlineScript': '_types/Scripting.ts#L67-L79', '_types.KnnQuery': '_types/Knn.ts#L26-L41', -'_types.LatLonGeoLocation': '_types/Geo.ts#L110-L113', -'_types.Level': '_types/common.ts#L229-L233', +'_types.LatLonGeoLocation': '_types/Geo.ts#L123-L126', +'_types.Level': '_types/common.ts#L230-L234', '_types.LifecycleOperationMode': '_types/Lifecycle.ts#L20-L24', -'_types.MergesStats': '_types/Stats.ts#L125-L142', +'_types.MergesStats': '_types/Stats.ts#L140-L157', '_types.NestedSortValue': '_types/sort.ts#L30-L35', '_types.NodeAttributes': '_types/Node.ts#L41-L58', '_types.NodeRole': '_types/Node.ts#L77-L95', '_types.NodeShard': '_types/Node.ts#L60-L71', '_types.NodeStatistics': '_types/Node.ts#L28-L39', '_types.Normalization': '_types/Similarity.ts#L52-L58', -'_types.OpType': '_types/common.ts#L235-L238', -'_types.PluginStats': '_types/Stats.ts#L144-L154', -'_types.QueryCacheStats': '_types/Stats.ts#L156-L165', +'_types.OpType': '_types/common.ts#L236-L239', +'_types.PluginStats': '_types/Stats.ts#L159-L169', +'_types.QueryCacheStats': '_types/Stats.ts#L171-L205', '_types.QueryVectorBuilder': '_types/Knn.ts#L43-L46', '_types.RankBase': '_types/Rank.ts#L30-L30', '_types.RankContainer': '_types/Rank.ts#L22-L28', -'_types.RecoveryStats': '_types/Stats.ts#L167-L172', -'_types.Refresh': '_types/common.ts#L240-L247', -'_types.RefreshStats': '_types/Stats.ts#L174-L181', +'_types.RecoveryStats': '_types/Stats.ts#L207-L212', +'_types.Refresh': '_types/common.ts#L241-L248', +'_types.RefreshStats': '_types/Stats.ts#L214-L221', '_types.RelocationFailureInfo': '_types/Node.ts#L73-L75', '_types.RequestBase': '_types/Base.ts#L34-L34', -'_types.RequestCacheStats': '_types/Stats.ts#L183-L189', +'_types.RequestCacheStats': '_types/Stats.ts#L223-L229', '_types.Result': '_types/Result.ts#L20-L27', '_types.Retries': '_types/Retries.ts#L22-L25', '_types.RrfRank': '_types/Rank.ts#L32-L37', '_types.ScoreSort': '_types/sort.ts#L55-L57', -'_types.Script': '_types/Scripting.ts#L56-L57', -'_types.ScriptBase': '_types/Scripting.ts#L41-L43', -'_types.ScriptField': '_types/Scripting.ts#L59-L62', -'_types.ScriptLanguage': '_types/Scripting.ts#L24-L33', +'_types.Script': '_types/Scripting.ts#L88-L89', +'_types.ScriptBase': '_types/Scripting.ts#L59-L65', +'_types.ScriptField': '_types/Scripting.ts#L91-L94', +'_types.ScriptLanguage': '_types/Scripting.ts#L24-L45', '_types.ScriptSort': '_types/sort.ts#L68-L74', '_types.ScriptSortType': '_types/sort.ts#L76-L80', '_types.ScriptTransform': '_types/Transform.ts#L36-L44', -'_types.SearchStats': '_types/Stats.ts#L191-L210', +'_types.SearchStats': '_types/Stats.ts#L231-L250', '_types.SearchTransform': '_types/Transform.ts#L46-L49', -'_types.SearchType': '_types/common.ts#L249-L254', -'_types.SegmentsStats': '_types/Stats.ts#L212-L237', +'_types.SearchType': '_types/common.ts#L250-L255', +'_types.SegmentsStats': '_types/Stats.ts#L252-L345', '_types.ShardFailure': '_types/Errors.ts#L50-L56', '_types.ShardStatistics': '_types/Stats.ts#L33-L45', '_types.ShardsOperationResponseBase': '_types/Base.ts#L81-L83', '_types.SlicedScroll': '_types/SlicedScroll.ts#L23-L27', -'_types.Slices': '_types/common.ts#L326-L331', -'_types.SlicesCalculation': '_types/common.ts#L333-L341', +'_types.Slices': '_types/common.ts#L327-L332', +'_types.SlicesCalculation': '_types/common.ts#L334-L342', '_types.SortMode': '_types/sort.ts#L103-L112', '_types.SortOptions': '_types/sort.ts#L82-L91', -'_types.SortOrder': '_types/sort.ts#L114-L117', -'_types.StoreStats': '_types/Stats.ts#L239-L246', -'_types.StoredScript': '_types/Scripting.ts#L35-L39', -'_types.StoredScriptId': '_types/Scripting.ts#L52-L54', -'_types.SuggestMode': '_types/common.ts#L256-L260', +'_types.SortOrder': '_types/sort.ts#L114-L123', +'_types.StoreStats': '_types/Stats.ts#L347-L374', +'_types.StoredScript': '_types/Scripting.ts#L47-L57', +'_types.StoredScriptId': '_types/Scripting.ts#L81-L86', +'_types.SuggestMode': '_types/common.ts#L257-L261', '_types.TaskFailure': '_types/Errors.ts#L66-L71', '_types.TextEmbedding': '_types/Knn.ts#L48-L51', -'_types.ThreadType': '_types/common.ts#L262-L268', +'_types.ThreadType': '_types/common.ts#L263-L269', '_types.TimeUnit': '_types/Time.ts#L69-L84', -'_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L145-L148', -'_types.TopRightBottomLeftGeoBounds': '_types/Geo.ts#L150-L153', +'_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L158-L161', +'_types.TopRightBottomLeftGeoBounds': '_types/Geo.ts#L163-L166', '_types.TransformContainer': '_types/Transform.ts#L27-L34', -'_types.TranslogStats': '_types/Stats.ts#L248-L256', +'_types.TranslogStats': '_types/Stats.ts#L376-L384', '_types.VersionType': '_types/common.ts#L98-L103', -'_types.WaitForActiveShardOptions': '_types/common.ts#L270-L274', -'_types.WaitForActiveShards': '_types/common.ts#L122-L123', -'_types.WaitForEvents': '_types/common.ts#L276-L283', -'_types.WarmerStats': '_types/Stats.ts#L258-L263', -'_types.WktGeoBounds': '_types/Geo.ts#L134-L136', +'_types.WaitForActiveShardOptions': '_types/common.ts#L271-L275', +'_types.WaitForActiveShards': '_types/common.ts#L123-L124', +'_types.WaitForEvents': '_types/common.ts#L277-L284', +'_types.WarmerStats': '_types/Stats.ts#L386-L391', +'_types.WktGeoBounds': '_types/Geo.ts#L147-L149', '_types.WriteResponseBase': '_types/Base.ts#L36-L45', '_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L573-L575', -'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L48-L50', +'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L57-L63', '_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L577-L579', '_types.aggregations.Aggregate': '_types/aggregations/Aggregate.ts#L38-L123', '_types.aggregations.AggregateBase': '_types/aggregations/Aggregate.ts#L134-L136', '_types.aggregations.Aggregation': '_types/aggregations/Aggregation.ts#L22-L25', -'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L106-L214', -'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L298-L302', +'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L106-L309', +'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L502-L506', '_types.aggregations.ArrayPercentilesItem': '_types/aggregations/Aggregate.ts#L160-L164', '_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L356-L360', -'_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L52-L62', -'_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L48-L48', -'_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L69-L69', +'_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L65-L100', +'_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L55-L55', +'_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L78-L78', '_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L209-L210', '_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L706-L722', -'_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L50-L52', -'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L41-L46', -'_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L114-L120', -'_types.aggregations.BucketCorrelationFunction': '_types/aggregations/pipeline.ts#L122-L127', -'_types.aggregations.BucketCorrelationFunctionCountCorrelation': '_types/aggregations/pipeline.ts#L129-L132', -'_types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator': '_types/aggregations/pipeline.ts#L134-L152', -'_types.aggregations.BucketKsAggregation': '_types/aggregations/pipeline.ts#L79-L112', +'_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L57-L62', +'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L50-L55', +'_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L129-L135', +'_types.aggregations.BucketCorrelationFunction': '_types/aggregations/pipeline.ts#L137-L142', +'_types.aggregations.BucketCorrelationFunctionCountCorrelation': '_types/aggregations/pipeline.ts#L144-L147', +'_types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator': '_types/aggregations/pipeline.ts#L149-L167', +'_types.aggregations.BucketKsAggregation': '_types/aggregations/pipeline.ts#L94-L127', '_types.aggregations.BucketMetricValueAggregate': '_types/aggregations/Aggregate.ts#L233-L236', '_types.aggregations.BucketPathAggregation': '_types/aggregations/pipeline.ts#L31-L37', -'_types.aggregations.BucketScriptAggregation': '_types/aggregations/pipeline.ts#L71-L73', -'_types.aggregations.BucketSelectorAggregation': '_types/aggregations/pipeline.ts#L75-L77', -'_types.aggregations.BucketSortAggregation': '_types/aggregations/pipeline.ts#L154-L159', +'_types.aggregations.BucketScriptAggregation': '_types/aggregations/pipeline.ts#L80-L85', +'_types.aggregations.BucketSelectorAggregation': '_types/aggregations/pipeline.ts#L87-L92', +'_types.aggregations.BucketSortAggregation': '_types/aggregations/pipeline.ts#L169-L190', '_types.aggregations.Buckets': '_types/aggregations/Aggregate.ts#L316-L325', -'_types.aggregations.BucketsPath': '_types/aggregations/pipeline.ts#L44-L50', -'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L112-L129', +'_types.aggregations.BucketsPath': '_types/aggregations/pipeline.ts#L53-L59', +'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L249-L266', '_types.aggregations.CardinalityAggregate': '_types/aggregations/Aggregate.ts#L138-L141', -'_types.aggregations.CardinalityAggregation': '_types/aggregations/metric.ts#L62-L66', -'_types.aggregations.CardinalityExecutionMode': '_types/aggregations/metric.ts#L54-L60', -'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L437-L501', -'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L503-L506', -'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L322-L325', +'_types.aggregations.CardinalityAggregation': '_types/aggregations/metric.ts#L87-L99', +'_types.aggregations.CardinalityExecutionMode': '_types/aggregations/metric.ts#L64-L85', +'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L641-L705', +'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L707-L710', +'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L526-L529', '_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L776-L777', -'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L73-L75', +'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L111-L116', '_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L618-L623', -'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L79-L84', -'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L86-L91', +'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L120-L136', +'_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L157-L166', +'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L138-L155', '_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L625-L627', +'_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L174-L182', +'_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L184-L187', +'_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L170-L172', +'_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L168-L168', '_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L747-L755', -'_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L161-L161', -'_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L163-L163', -'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L508-L512', +'_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L192-L192', +'_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L194-L194', +'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L712-L716', '_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L348-L349', -'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L93-L110', +'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L189-L247', '_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L351-L354', '_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L543-L548', -'_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L131-L138', -'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L149-L153', +'_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L268-L294', +'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L305-L318', '_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L227-L231', -'_types.aggregations.DerivativeAggregation': '_types/aggregations/pipeline.ts#L165-L165', -'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L155-L161', +'_types.aggregations.DerivativeAggregation': '_types/aggregations/pipeline.ts#L196-L196', +'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L320-L341', '_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L411-L416', '_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L418-L421', -'_types.aggregations.EwmaModelSettings': '_types/aggregations/pipeline.ts#L227-L229', -'_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L212-L215', -'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L230-L233', +'_types.aggregations.EwmaModelSettings': '_types/aggregations/pipeline.ts#L261-L263', +'_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L246-L249', +'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L434-L437', '_types.aggregations.ExtendedStatsAggregate': '_types/aggregations/Aggregate.ts#L278-L296', -'_types.aggregations.ExtendedStatsAggregation': '_types/aggregations/metric.ts#L68-L70', +'_types.aggregations.ExtendedStatsAggregation': '_types/aggregations/metric.ts#L101-L106', '_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L298-L299', -'_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L167-L169', -'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L140-L147', +'_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L198-L203', +'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L296-L303', '_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L495-L496', '_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L568-L569', -'_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L169-L174', +'_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L358-L378', '_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L571-L571', -'_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L40-L42', -'_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L44-L46', +'_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L47-L49', +'_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L51-L53', '_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L639-L640', -'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L551-L575', +'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L763-L787', '_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L642-L645', -'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L545-L549', -'_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L52-L67', +'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L749-L761', +'_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L61-L76', '_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L303-L306', -'_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L72-L74', +'_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L108-L110', '_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L308-L312', -'_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L76-L79', +'_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L112-L115', '_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L550-L554', -'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L176-L182', +'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L380-L386', '_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L506-L508', -'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L184-L190', +'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L388-L394', '_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L510-L512', '_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L522-L523', '_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L525-L527', '_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L784-L791', -'_types.aggregations.GeoLineAggregation': '_types/aggregations/metric.ts#L81-L87', -'_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L93-L95', -'_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L89-L91', +'_types.aggregations.GeoLineAggregation': '_types/aggregations/metric.ts#L117-L123', +'_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L129-L131', +'_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L125-L127', '_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L514-L516', -'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L192-L198', +'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L396-L402', '_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L518-L520', -'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L200-L226', +'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L404-L430', '_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L492-L493', -'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L228-L228', -'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L327-L329', -'_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L119-L121', +'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L432-L432', +'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L531-L533', +'_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L155-L157', '_types.aggregations.HdrPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L169-L170', '_types.aggregations.HdrPercentilesAggregate': '_types/aggregations/Aggregate.ts#L166-L167', '_types.aggregations.HistogramAggregate': '_types/aggregations/Aggregate.ts#L340-L341', -'_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L235-L247', +'_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L439-L451', '_types.aggregations.HistogramBucket': '_types/aggregations/Aggregate.ts#L343-L346', -'_types.aggregations.HoltLinearModelSettings': '_types/aggregations/pipeline.ts#L231-L234', -'_types.aggregations.HoltMovingAverageAggregation': '_types/aggregations/pipeline.ts#L217-L220', -'_types.aggregations.HoltWintersModelSettings': '_types/aggregations/pipeline.ts#L235-L242', -'_types.aggregations.HoltWintersMovingAverageAggregation': '_types/aggregations/pipeline.ts#L222-L225', -'_types.aggregations.HoltWintersType': '_types/aggregations/pipeline.ts#L243-L248', +'_types.aggregations.HoltLinearModelSettings': '_types/aggregations/pipeline.ts#L265-L268', +'_types.aggregations.HoltMovingAverageAggregation': '_types/aggregations/pipeline.ts#L251-L254', +'_types.aggregations.HoltWintersModelSettings': '_types/aggregations/pipeline.ts#L269-L276', +'_types.aggregations.HoltWintersMovingAverageAggregation': '_types/aggregations/pipeline.ts#L256-L259', +'_types.aggregations.HoltWintersType': '_types/aggregations/pipeline.ts#L277-L282', '_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L659-L670', -'_types.aggregations.InferenceAggregation': '_types/aggregations/pipeline.ts#L171-L174', +'_types.aggregations.InferenceAggregation': '_types/aggregations/pipeline.ts#L205-L208', '_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L684-L687', -'_types.aggregations.InferenceConfigContainer': '_types/aggregations/pipeline.ts#L176-L182', +'_types.aggregations.InferenceConfigContainer': '_types/aggregations/pipeline.ts#L210-L216', '_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L678-L682', '_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L672-L676', '_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L629-L630', -'_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L514-L543', +'_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L718-L747', '_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L632-L637', '_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L556-L558', -'_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L249-L252', -'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L254-L258', +'_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L453-L456', +'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L458-L462', '_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L560-L564', -'_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L202-L205', +'_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L236-L239', '_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L431-L436', '_types.aggregations.LongRareTermsBucket': '_types/aggregations/Aggregate.ts#L438-L441', '_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L399-L404', @@ -482,119 +490,119 @@ '_types.aggregations.MatrixStatsAggregation': '_types/aggregations/matrix.ts#L31-L33', '_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L763-L772', '_types.aggregations.MaxAggregate': '_types/aggregations/Aggregate.ts#L200-L201', -'_types.aggregations.MaxAggregation': '_types/aggregations/metric.ts#L97-L97', -'_types.aggregations.MaxBucketAggregation': '_types/aggregations/pipeline.ts#L184-L184', +'_types.aggregations.MaxAggregation': '_types/aggregations/metric.ts#L133-L133', +'_types.aggregations.MaxBucketAggregation': '_types/aggregations/pipeline.ts#L218-L218', '_types.aggregations.MedianAbsoluteDeviationAggregate': '_types/aggregations/Aggregate.ts#L194-L195', -'_types.aggregations.MedianAbsoluteDeviationAggregation': '_types/aggregations/metric.ts#L99-L101', -'_types.aggregations.MetricAggregationBase': '_types/aggregations/metric.ts#L34-L38', +'_types.aggregations.MedianAbsoluteDeviationAggregation': '_types/aggregations/metric.ts#L135-L137', +'_types.aggregations.MetricAggregationBase': '_types/aggregations/metric.ts#L34-L45', '_types.aggregations.MinAggregate': '_types/aggregations/Aggregate.ts#L197-L198', -'_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L103-L103', -'_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L186-L186', -'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L64-L71', +'_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L139-L139', +'_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L220-L220', +'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L102-L109', '_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L483-L484', -'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L260-L263', -'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L217-L221', -'_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L188-L194', -'_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L196-L200', -'_types.aggregations.MovingFunctionAggregation': '_types/aggregations/pipeline.ts#L250-L254', -'_types.aggregations.MovingPercentilesAggregation': '_types/aggregations/pipeline.ts#L256-L260', +'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L464-L467', +'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L312-L316', +'_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L222-L228', +'_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L230-L234', +'_types.aggregations.MovingFunctionAggregation': '_types/aggregations/pipeline.ts#L284-L288', +'_types.aggregations.MovingPercentilesAggregation': '_types/aggregations/pipeline.ts#L290-L294', '_types.aggregations.MultiBucketAggregateBase': '_types/aggregations/Aggregate.ts#L327-L329', '_types.aggregations.MultiBucketBase': '_types/aggregations/Aggregate.ts#L331-L338', -'_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L276-L279', +'_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L480-L483', '_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L461-L463', -'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L265-L274', +'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L469-L478', '_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L465-L469', -'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L331-L334', +'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L535-L538', '_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L486-L487', -'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L281-L283', -'_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L262-L264', -'_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L266-L274', +'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L485-L487', +'_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L296-L298', +'_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L300-L308', '_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L779-L780', -'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L285-L287', -'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L336-L336', -'_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L105-L110', +'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L489-L491', +'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L540-L540', +'_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L141-L146', '_types.aggregations.Percentiles': '_types/aggregations/Aggregate.ts#L150-L151', '_types.aggregations.PercentilesAggregateBase': '_types/aggregations/Aggregate.ts#L146-L148', -'_types.aggregations.PercentilesAggregation': '_types/aggregations/metric.ts#L112-L117', +'_types.aggregations.PercentilesAggregation': '_types/aggregations/metric.ts#L148-L153', '_types.aggregations.PercentilesBucketAggregate': '_types/aggregations/Aggregate.ts#L178-L179', -'_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L276-L278', -'_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L42', +'_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L310-L312', +'_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L51', '_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L531-L532', -'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L289-L296', +'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L493-L500', '_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L534-L541', -'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L304-L312', +'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L508-L516', '_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L741-L745', -'_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L127-L130', -'_types.aggregations.RateMode': '_types/aggregations/metric.ts#L132-L135', +'_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L163-L166', +'_types.aggregations.RateMode': '_types/aggregations/metric.ts#L168-L171', '_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L489-L490', -'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L314-L316', +'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L518-L520', '_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L498-L499', -'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L318-L320', -'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L163-L167', -'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L338-L340', +'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L522-L524', +'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L343-L356', +'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L542-L544', '_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L649-L652', -'_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L137-L143', -'_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L280-L282', +'_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L173-L179', +'_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L314-L316', '_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L588-L590', '_types.aggregations.SignificantLongTermsBucket': '_types/aggregations/Aggregate.ts#L597-L600', '_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L602-L604', '_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L606-L608', '_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L581-L586', -'_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L342-L358', +'_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L546-L562', '_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L592-L595', -'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L360-L378', -'_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L207-L210', +'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L564-L582', +'_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L241-L244', '_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L224-L225', '_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L473-L481', '_types.aggregations.SingleMetricAggregateBase': '_types/aggregations/Aggregate.ts#L183-L192', '_types.aggregations.StandardDeviationBounds': '_types/aggregations/Aggregate.ts#L260-L267', '_types.aggregations.StandardDeviationBoundsAsString': '_types/aggregations/Aggregate.ts#L269-L276', '_types.aggregations.StatsAggregate': '_types/aggregations/Aggregate.ts#L240-L255', -'_types.aggregations.StatsAggregation': '_types/aggregations/metric.ts#L145-L145', +'_types.aggregations.StatsAggregation': '_types/aggregations/metric.ts#L181-L181', '_types.aggregations.StatsBucketAggregate': '_types/aggregations/Aggregate.ts#L257-L258', -'_types.aggregations.StatsBucketAggregation': '_types/aggregations/pipeline.ts#L284-L284', +'_types.aggregations.StatsBucketAggregation': '_types/aggregations/pipeline.ts#L318-L318', '_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L443-L447', '_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L449-L451', '_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L693-L704', -'_types.aggregations.StringStatsAggregation': '_types/aggregations/metric.ts#L147-L149', +'_types.aggregations.StringStatsAggregation': '_types/aggregations/metric.ts#L183-L185', '_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L384-L389', '_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L395-L397', '_types.aggregations.SumAggregate': '_types/aggregations/Aggregate.ts#L203-L207', -'_types.aggregations.SumAggregation': '_types/aggregations/metric.ts#L151-L151', -'_types.aggregations.SumBucketAggregation': '_types/aggregations/pipeline.ts#L286-L286', -'_types.aggregations.TDigest': '_types/aggregations/metric.ts#L123-L125', +'_types.aggregations.SumAggregation': '_types/aggregations/metric.ts#L187-L187', +'_types.aggregations.SumBucketAggregation': '_types/aggregations/pipeline.ts#L320-L320', +'_types.aggregations.TDigest': '_types/aggregations/metric.ts#L159-L161', '_types.aggregations.TDigestPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L175-L176', '_types.aggregations.TDigestPercentilesAggregate': '_types/aggregations/Aggregate.ts#L172-L173', '_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L735-L739', -'_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L153-L157', -'_types.aggregations.TTestType': '_types/aggregations/metric.ts#L165-L169', +'_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L189-L193', +'_types.aggregations.TTestType': '_types/aggregations/metric.ts#L201-L205', '_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L377-L382', -'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L380-L397', -'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L407-L410', -'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L412-L417', +'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L584-L601', +'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L611-L614', +'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L616-L621', '_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L391-L393', -'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L422-L423', -'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L419-L420', -'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L425-L428', -'_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L159-L163', +'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L626-L627', +'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L623-L624', +'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L629-L632', +'_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L195-L199', '_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L654-L657', -'_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L171-L184', +'_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L207-L220', '_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L729-L733', '_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L724-L727', -'_types.aggregations.TopMetricsAggregation': '_types/aggregations/metric.ts#L186-L190', -'_types.aggregations.TopMetricsValue': '_types/aggregations/metric.ts#L192-L194', +'_types.aggregations.TopMetricsAggregation': '_types/aggregations/metric.ts#L222-L226', +'_types.aggregations.TopMetricsValue': '_types/aggregations/metric.ts#L228-L230', '_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L453-L459', '_types.aggregations.UnmappedSamplerAggregate': '_types/aggregations/Aggregate.ts#L501-L502', '_types.aggregations.UnmappedSignificantTermsAggregate': '_types/aggregations/Aggregate.ts#L610-L616', '_types.aggregations.UnmappedTermsAggregate': '_types/aggregations/Aggregate.ts#L423-L429', '_types.aggregations.ValueCountAggregate': '_types/aggregations/Aggregate.ts#L218-L222', -'_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L196-L196', -'_types.aggregations.ValueType': '_types/aggregations/metric.ts#L198-L209', +'_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L232-L232', +'_types.aggregations.ValueType': '_types/aggregations/metric.ts#L234-L245', '_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L362-L364', -'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L430-L435', +'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L634-L639', '_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L366-L373', -'_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L211-L216', -'_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L218-L222', +'_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L247-L252', +'_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L254-L258', '_types.aggregations.WeightedAvgAggregate': '_types/aggregations/Aggregate.ts#L212-L216', '_types.analysis.Analyzer': '_types/analysis/analyzers.ts#L113-L131', '_types.analysis.AsciiFoldingTokenFilter': '_types/analysis/token_filters.ts#L168-L171', @@ -768,9 +776,9 @@ '_types.mapping.RankFeatureProperty': '_types/mapping/core.ts#L184-L187', '_types.mapping.RankFeaturesProperty': '_types/mapping/core.ts#L189-L191', '_types.mapping.RoutingField': '_types/mapping/meta-fields.ts#L50-L52', -'_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L38', -'_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L40-L44', -'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L46-L55', +'_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L48', +'_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L50-L54', +'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L56-L65', '_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L174-L178', '_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L193-L203', '_types.mapping.ShapeProperty': '_types/mapping/geo.ts#L69-L81', @@ -788,110 +796,111 @@ '_types.mapping.UnsignedLongNumberProperty': '_types/mapping/core.ts#L169-L172', '_types.mapping.VersionProperty': '_types/mapping/core.ts#L268-L270', '_types.mapping.WildcardProperty': '_types/mapping/core.ts#L272-L279', -'_types.query_dsl.BoolQuery': '_types/query_dsl/compound.ts#L28-L34', -'_types.query_dsl.BoostingQuery': '_types/query_dsl/compound.ts#L36-L40', +'_types.query_dsl.BoolQuery': '_types/query_dsl/compound.ts#L28-L52', +'_types.query_dsl.BoostingQuery': '_types/query_dsl/compound.ts#L54-L67', '_types.query_dsl.ChildScoreMode': '_types/query_dsl/joining.ts#L25-L39', -'_types.query_dsl.CombinedFieldsOperator': '_types/query_dsl/abstractions.ts#L211-L214', -'_types.query_dsl.CombinedFieldsQuery': '_types/query_dsl/abstractions.ts#L190-L204', -'_types.query_dsl.CombinedFieldsZeroTerms': '_types/query_dsl/abstractions.ts#L216-L219', +'_types.query_dsl.CombinedFieldsOperator': '_types/query_dsl/abstractions.ts#L473-L476', +'_types.query_dsl.CombinedFieldsQuery': '_types/query_dsl/abstractions.ts#L429-L463', +'_types.query_dsl.CombinedFieldsZeroTerms': '_types/query_dsl/abstractions.ts#L478-L487', '_types.query_dsl.CommonTermsQuery': '_types/query_dsl/fulltext.ts#L33-L43', -'_types.query_dsl.ConstantScoreQuery': '_types/query_dsl/compound.ts#L42-L44', -'_types.query_dsl.DecayFunction': '_types/query_dsl/compound.ts#L100-L105', -'_types.query_dsl.DecayFunctionBase': '_types/query_dsl/compound.ts#L84-L86', -'_types.query_dsl.DecayPlacement': '_types/query_dsl/compound.ts#L77-L82', -'_types.query_dsl.DisMaxQuery': '_types/query_dsl/compound.ts#L46-L50', -'_types.query_dsl.DistanceFeatureQuery': '_types/query_dsl/specialized.ts#L40-L44', -'_types.query_dsl.ExistsQuery': '_types/query_dsl/term.ts#L36-L38', -'_types.query_dsl.FieldAndFormat': '_types/query_dsl/abstractions.ts#L221-L235', -'_types.query_dsl.FieldLookup': '_types/query_dsl/abstractions.ts#L173-L178', -'_types.query_dsl.FieldValueFactorModifier': '_types/query_dsl/compound.ts#L147-L158', -'_types.query_dsl.FieldValueFactorScoreFunction': '_types/query_dsl/compound.ts#L70-L75', -'_types.query_dsl.FunctionBoostMode': '_types/query_dsl/compound.ts#L138-L145', -'_types.query_dsl.FunctionScoreContainer': '_types/query_dsl/compound.ts#L107-L127', -'_types.query_dsl.FunctionScoreMode': '_types/query_dsl/compound.ts#L129-L136', -'_types.query_dsl.FunctionScoreQuery': '_types/query_dsl/compound.ts#L52-L59', -'_types.query_dsl.FuzzyQuery': '_types/query_dsl/term.ts#L40-L51', -'_types.query_dsl.GeoBoundingBoxQuery': '_types/query_dsl/geo.ts#L32-L41', -'_types.query_dsl.GeoDistanceQuery': '_types/query_dsl/geo.ts#L48-L57', -'_types.query_dsl.GeoExecution': '_types/query_dsl/geo.ts#L43-L46', -'_types.query_dsl.GeoPolygonPoints': '_types/query_dsl/geo.ts#L59-L61', -'_types.query_dsl.GeoPolygonQuery': '_types/query_dsl/geo.ts#L63-L71', -'_types.query_dsl.GeoShapeFieldQuery': '_types/query_dsl/geo.ts#L78-L82', -'_types.query_dsl.GeoShapeQuery': '_types/query_dsl/geo.ts#L86-L91', -'_types.query_dsl.GeoValidationMethod': '_types/query_dsl/geo.ts#L107-L111', -'_types.query_dsl.HasChildQuery': '_types/query_dsl/joining.ts#L41-L51', -'_types.query_dsl.HasParentQuery': '_types/query_dsl/joining.ts#L53-L61', -'_types.query_dsl.IdsQuery': '_types/query_dsl/term.ts#L53-L55', -'_types.query_dsl.IntervalsAllOf': '_types/query_dsl/fulltext.ts#L49-L56', -'_types.query_dsl.IntervalsAnyOf': '_types/query_dsl/fulltext.ts#L58-L61', -'_types.query_dsl.IntervalsContainer': '_types/query_dsl/fulltext.ts#L63-L72', -'_types.query_dsl.IntervalsFilter': '_types/query_dsl/fulltext.ts#L74-L86', -'_types.query_dsl.IntervalsFuzzy': '_types/query_dsl/fulltext.ts#L88-L97', -'_types.query_dsl.IntervalsMatch': '_types/query_dsl/fulltext.ts#L99-L108', -'_types.query_dsl.IntervalsPrefix': '_types/query_dsl/fulltext.ts#L110-L114', -'_types.query_dsl.IntervalsQuery': '_types/query_dsl/fulltext.ts#L116-L125', -'_types.query_dsl.IntervalsWildcard': '_types/query_dsl/fulltext.ts#L127-L131', -'_types.query_dsl.Like': '_types/query_dsl/specialized.ts#L103-L108', -'_types.query_dsl.LikeDocument': '_types/query_dsl/specialized.ts#L91-L101', +'_types.query_dsl.ConstantScoreQuery': '_types/query_dsl/compound.ts#L69-L76', +'_types.query_dsl.DecayFunction': '_types/query_dsl/compound.ts#L194-L199', +'_types.query_dsl.DecayFunctionBase': '_types/query_dsl/compound.ts#L174-L180', +'_types.query_dsl.DecayPlacement': '_types/query_dsl/compound.ts#L153-L172', +'_types.query_dsl.DisMaxQuery': '_types/query_dsl/compound.ts#L78-L90', +'_types.query_dsl.DistanceFeatureQuery': '_types/query_dsl/specialized.ts#L40-L60', +'_types.query_dsl.ExistsQuery': '_types/query_dsl/term.ts#L36-L41', +'_types.query_dsl.FieldAndFormat': '_types/query_dsl/abstractions.ts#L489-L503', +'_types.query_dsl.FieldLookup': '_types/query_dsl/abstractions.ts#L393-L410', +'_types.query_dsl.FieldValueFactorModifier': '_types/query_dsl/compound.ts#L298-L341', +'_types.query_dsl.FieldValueFactorScoreFunction': '_types/query_dsl/compound.ts#L132-L151', +'_types.query_dsl.FunctionBoostMode': '_types/query_dsl/compound.ts#L270-L296', +'_types.query_dsl.FunctionScoreContainer': '_types/query_dsl/compound.ts#L201-L241', +'_types.query_dsl.FunctionScoreMode': '_types/query_dsl/compound.ts#L243-L268', +'_types.query_dsl.FunctionScoreQuery': '_types/query_dsl/compound.ts#L92-L118', +'_types.query_dsl.FuzzyQuery': '_types/query_dsl/term.ts#L43-L78', +'_types.query_dsl.GeoBoundingBoxQuery': '_types/query_dsl/geo.ts#L32-L50', +'_types.query_dsl.GeoDistanceQuery': '_types/query_dsl/geo.ts#L57-L79', +'_types.query_dsl.GeoExecution': '_types/query_dsl/geo.ts#L52-L55', +'_types.query_dsl.GeoPolygonPoints': '_types/query_dsl/geo.ts#L81-L83', +'_types.query_dsl.GeoPolygonQuery': '_types/query_dsl/geo.ts#L85-L93', +'_types.query_dsl.GeoShapeFieldQuery': '_types/query_dsl/geo.ts#L100-L111', +'_types.query_dsl.GeoShapeQuery': '_types/query_dsl/geo.ts#L115-L125', +'_types.query_dsl.GeoValidationMethod': '_types/query_dsl/geo.ts#L141-L151', +'_types.query_dsl.HasChildQuery': '_types/query_dsl/joining.ts#L41-L76', +'_types.query_dsl.HasParentQuery': '_types/query_dsl/joining.ts#L78-L104', +'_types.query_dsl.IdsQuery': '_types/query_dsl/term.ts#L80-L85', +'_types.query_dsl.IntervalsAllOf': '_types/query_dsl/fulltext.ts#L49-L69', +'_types.query_dsl.IntervalsAnyOf': '_types/query_dsl/fulltext.ts#L71-L80', +'_types.query_dsl.IntervalsContainer': '_types/query_dsl/fulltext.ts#L82-L109', +'_types.query_dsl.IntervalsFilter': '_types/query_dsl/fulltext.ts#L111-L151', +'_types.query_dsl.IntervalsFuzzy': '_types/query_dsl/fulltext.ts#L153-L183', +'_types.query_dsl.IntervalsMatch': '_types/query_dsl/fulltext.ts#L185-L215', +'_types.query_dsl.IntervalsPrefix': '_types/query_dsl/fulltext.ts#L217-L232', +'_types.query_dsl.IntervalsQuery': '_types/query_dsl/fulltext.ts#L234-L262', +'_types.query_dsl.IntervalsWildcard': '_types/query_dsl/fulltext.ts#L264-L279', +'_types.query_dsl.Like': '_types/query_dsl/specialized.ts#L186-L191', +'_types.query_dsl.LikeDocument': '_types/query_dsl/specialized.ts#L165-L184', '_types.query_dsl.MatchAllQuery': '_types/query_dsl/MatchAllQuery.ts#L22-L22', -'_types.query_dsl.MatchBoolPrefixQuery': '_types/query_dsl/fulltext.ts#L160-L171', +'_types.query_dsl.MatchBoolPrefixQuery': '_types/query_dsl/fulltext.ts#L348-L402', '_types.query_dsl.MatchNoneQuery': '_types/query_dsl/MatchNoneQuery.ts#L22-L22', -'_types.query_dsl.MatchPhrasePrefixQuery': '_types/query_dsl/fulltext.ts#L182-L189', -'_types.query_dsl.MatchPhraseQuery': '_types/query_dsl/fulltext.ts#L173-L180', -'_types.query_dsl.MatchQuery': '_types/query_dsl/fulltext.ts#L133-L158', -'_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L62-L89', -'_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L191-L217', -'_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L160-L165', -'_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L63-L71', +'_types.query_dsl.MatchPhrasePrefixQuery': '_types/query_dsl/fulltext.ts#L427-L453', +'_types.query_dsl.MatchPhraseQuery': '_types/query_dsl/fulltext.ts#L404-L425', +'_types.query_dsl.MatchQuery': '_types/query_dsl/fulltext.ts#L281-L346', +'_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L78-L163', +'_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L455-L538', +'_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L343-L360', +'_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L106-L130', '_types.query_dsl.Operator': '_types/query_dsl/Operator.ts#L22-L27', -'_types.query_dsl.ParentIdQuery': '_types/query_dsl/joining.ts#L73-L78', -'_types.query_dsl.PercolateQuery': '_types/query_dsl/specialized.ts#L110-L120', -'_types.query_dsl.PinnedDoc': '_types/query_dsl/specialized.ts#L132-L135', -'_types.query_dsl.PinnedQuery': '_types/query_dsl/specialized.ts#L122-L130', -'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L57-L67', -'_types.query_dsl.QueryBase': '_types/query_dsl/abstractions.ts#L184-L188', -'_types.query_dsl.QueryContainer': '_types/query_dsl/abstractions.ts#L97-L171', -'_types.query_dsl.QueryStringQuery': '_types/query_dsl/fulltext.ts#L233-L269', -'_types.query_dsl.RandomScoreFunction': '_types/query_dsl/compound.ts#L65-L68', -'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L73-L82', -'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L69-L71', -'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L97-L101', -'_types.query_dsl.RankFeatureFunction': '_types/query_dsl/specialized.ts#L137-L137', -'_types.query_dsl.RankFeatureFunctionLinear': '_types/query_dsl/specialized.ts#L139-L139', -'_types.query_dsl.RankFeatureFunctionLogarithm': '_types/query_dsl/specialized.ts#L141-L143', -'_types.query_dsl.RankFeatureFunctionSaturation': '_types/query_dsl/specialized.ts#L145-L147', -'_types.query_dsl.RankFeatureFunctionSigmoid': '_types/query_dsl/specialized.ts#L149-L152', -'_types.query_dsl.RankFeatureQuery': '_types/query_dsl/specialized.ts#L154-L162', -'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L103-L116', -'_types.query_dsl.ScriptQuery': '_types/query_dsl/specialized.ts#L164-L166', -'_types.query_dsl.ScriptScoreFunction': '_types/query_dsl/compound.ts#L61-L63', -'_types.query_dsl.ScriptScoreQuery': '_types/query_dsl/specialized.ts#L168-L172', -'_types.query_dsl.ShapeFieldQuery': '_types/query_dsl/specialized.ts#L183-L187', -'_types.query_dsl.ShapeQuery': '_types/query_dsl/specialized.ts#L176-L181', -'_types.query_dsl.SimpleQueryStringFlag': '_types/query_dsl/fulltext.ts#L278-L292', -'_types.query_dsl.SimpleQueryStringFlags': '_types/query_dsl/fulltext.ts#L271-L276', -'_types.query_dsl.SimpleQueryStringQuery': '_types/query_dsl/fulltext.ts#L294-L312', -'_types.query_dsl.SpanContainingQuery': '_types/query_dsl/span.ts#L25-L28', -'_types.query_dsl.SpanFieldMaskingQuery': '_types/query_dsl/span.ts#L30-L33', -'_types.query_dsl.SpanFirstQuery': '_types/query_dsl/span.ts#L35-L38', -'_types.query_dsl.SpanMultiTermQuery': '_types/query_dsl/span.ts#L44-L47', -'_types.query_dsl.SpanNearQuery': '_types/query_dsl/span.ts#L49-L53', -'_types.query_dsl.SpanNotQuery': '_types/query_dsl/span.ts#L55-L63', -'_types.query_dsl.SpanOrQuery': '_types/query_dsl/span.ts#L65-L67', -'_types.query_dsl.SpanQuery': '_types/query_dsl/span.ts#L79-L91', -'_types.query_dsl.SpanTermQuery': '_types/query_dsl/span.ts#L69-L72', -'_types.query_dsl.SpanWithinQuery': '_types/query_dsl/span.ts#L74-L77', -'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L118-L126', -'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L137-L142', -'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L128-L130', -'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L132-L135', -'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L144-L148', -'_types.query_dsl.TextExpansionQuery': '_types/query_dsl/TextExpansionQuery.ts#L23-L31', -'_types.query_dsl.TextQueryType': '_types/query_dsl/fulltext.ts#L219-L226', -'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L150-L152', -'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L154-L168', -'_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L206-L209', -'_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L228-L231', +'_types.query_dsl.ParentIdQuery': '_types/query_dsl/joining.ts#L132-L146', +'_types.query_dsl.PercolateQuery': '_types/query_dsl/specialized.ts#L193-L230', +'_types.query_dsl.PinnedDoc': '_types/query_dsl/specialized.ts#L253-L262', +'_types.query_dsl.PinnedQuery': '_types/query_dsl/specialized.ts#L232-L251', +'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L87-L106', +'_types.query_dsl.QueryBase': '_types/query_dsl/abstractions.ts#L416-L427', +'_types.query_dsl.QueryContainer': '_types/query_dsl/abstractions.ts#L98-L391', +'_types.query_dsl.QueryStringQuery': '_types/query_dsl/fulltext.ts#L579-L699', +'_types.query_dsl.RandomScoreFunction': '_types/query_dsl/compound.ts#L127-L130', +'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L116-L143', +'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L108-L114', +'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L170-L183', +'_types.query_dsl.RankFeatureFunction': '_types/query_dsl/specialized.ts#L264-L264', +'_types.query_dsl.RankFeatureFunctionLinear': '_types/query_dsl/specialized.ts#L266-L266', +'_types.query_dsl.RankFeatureFunctionLogarithm': '_types/query_dsl/specialized.ts#L268-L273', +'_types.query_dsl.RankFeatureFunctionSaturation': '_types/query_dsl/specialized.ts#L275-L280', +'_types.query_dsl.RankFeatureFunctionSigmoid': '_types/query_dsl/specialized.ts#L282-L291', +'_types.query_dsl.RankFeatureQuery': '_types/query_dsl/specialized.ts#L293-L316', +'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L185-L215', +'_types.query_dsl.RuleQuery': '_types/query_dsl/specialized.ts#L369-L373', +'_types.query_dsl.ScriptQuery': '_types/query_dsl/specialized.ts#L318-L324', +'_types.query_dsl.ScriptScoreFunction': '_types/query_dsl/compound.ts#L120-L125', +'_types.query_dsl.ScriptScoreQuery': '_types/query_dsl/specialized.ts#L326-L340', +'_types.query_dsl.ShapeFieldQuery': '_types/query_dsl/specialized.ts#L354-L367', +'_types.query_dsl.ShapeQuery': '_types/query_dsl/specialized.ts#L344-L352', +'_types.query_dsl.SimpleQueryStringFlag': '_types/query_dsl/fulltext.ts#L708-L763', +'_types.query_dsl.SimpleQueryStringFlags': '_types/query_dsl/fulltext.ts#L701-L706', +'_types.query_dsl.SimpleQueryStringQuery': '_types/query_dsl/fulltext.ts#L765-L830', +'_types.query_dsl.SpanContainingQuery': '_types/query_dsl/span.ts#L25-L36', +'_types.query_dsl.SpanFieldMaskingQuery': '_types/query_dsl/span.ts#L38-L41', +'_types.query_dsl.SpanFirstQuery': '_types/query_dsl/span.ts#L43-L52', +'_types.query_dsl.SpanMultiTermQuery': '_types/query_dsl/span.ts#L58-L63', +'_types.query_dsl.SpanNearQuery': '_types/query_dsl/span.ts#L65-L78', +'_types.query_dsl.SpanNotQuery': '_types/query_dsl/span.ts#L80-L104', +'_types.query_dsl.SpanOrQuery': '_types/query_dsl/span.ts#L106-L111', +'_types.query_dsl.SpanQuery': '_types/query_dsl/span.ts#L131-L170', +'_types.query_dsl.SpanTermQuery': '_types/query_dsl/span.ts#L113-L116', +'_types.query_dsl.SpanWithinQuery': '_types/query_dsl/span.ts#L118-L129', +'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L217-L231', +'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L242-L247', +'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L233-L235', +'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L237-L240', +'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L249-L262', +'_types.query_dsl.TextExpansionQuery': '_types/query_dsl/TextExpansionQuery.ts#L22-L27', +'_types.query_dsl.TextQueryType': '_types/query_dsl/fulltext.ts#L540-L566', +'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L264-L266', +'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L268-L285', +'_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L465-L471', +'_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L568-L577', 'async_search._types.AsyncSearch': 'async_search/_types/AsyncSearch.ts#L30-L56', 'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L44-L48', 'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L43', @@ -954,19 +963,19 @@ 'cat.ml_data_frame_analytics.DataFrameAnalyticsRecord': 'cat/ml_data_frame_analytics/types.ts#L22-L102', 'cat.ml_data_frame_analytics.Request': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L24-L58', 'cat.ml_data_frame_analytics.Response': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24', -'cat.ml_datafeeds.DatafeedsRecord': 'cat/ml_datafeeds/types.ts#L22-L83', +'cat.ml_datafeeds.DatafeedsRecord': 'cat/ml_datafeeds/types.ts#L22-L87', 'cat.ml_datafeeds.Request': 'cat/ml_datafeeds/CatDatafeedsRequest.ts#L24-L73', 'cat.ml_datafeeds.Response': 'cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24', -'cat.ml_jobs.JobsRecord': 'cat/ml_jobs/types.ts#L24-L325', +'cat.ml_jobs.JobsRecord': 'cat/ml_jobs/types.ts#L24-L347', 'cat.ml_jobs.Request': 'cat/ml_jobs/CatJobsRequest.ts#L24-L77', 'cat.ml_jobs.Response': 'cat/ml_jobs/CatJobsResponse.ts#L22-L24', -'cat.ml_trained_models.Request': 'cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L48', +'cat.ml_trained_models.Request': 'cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L63', 'cat.ml_trained_models.Response': 'cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24', -'cat.ml_trained_models.TrainedModelsRecord': 'cat/ml_trained_models/types.ts#L23-L114', +'cat.ml_trained_models.TrainedModelsRecord': 'cat/ml_trained_models/types.ts#L23-L115', 'cat.nodeattrs.NodeAttributesRecord': 'cat/nodeattrs/types.ts#L20-L55', 'cat.nodeattrs.Request': 'cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L31', 'cat.nodeattrs.Response': 'cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24', -'cat.nodes.NodesRecord': 'cat/nodes/types.ts#L23-L543', +'cat.nodes.NodesRecord': 'cat/nodes/types.ts#L23-L542', 'cat.nodes.Request': 'cat/nodes/CatNodesRequest.ts#L23-L49', 'cat.nodes.Response': 'cat/nodes/CatNodesResponse.ts#L22-L24', 'cat.pending_tasks.PendingTasksRecord': 'cat/pending_tasks/types.ts#L20-L41', @@ -981,27 +990,27 @@ 'cat.repositories.RepositoriesRecord': 'cat/repositories/types.ts#L20-L31', 'cat.repositories.Request': 'cat/repositories/CatRepositoriesRequest.ts#L22-L30', 'cat.repositories.Response': 'cat/repositories/CatRepositoriesResponse.ts#L22-L24', -'cat.segments.Request': 'cat/segments/CatSegmentsRequest.ts#L23-L36', +'cat.segments.Request': 'cat/segments/CatSegmentsRequest.ts#L23-L49', 'cat.segments.Response': 'cat/segments/CatSegmentsResponse.ts#L22-L24', -'cat.segments.SegmentsRecord': 'cat/segments/types.ts#L22-L96', -'cat.shards.Request': 'cat/shards/CatShardsRequest.ts#L23-L36', +'cat.segments.SegmentsRecord': 'cat/segments/types.ts#L22-L107', +'cat.shards.Request': 'cat/shards/CatShardsRequest.ts#L23-L49', 'cat.shards.Response': 'cat/shards/CatShardsResponse.ts#L22-L24', -'cat.shards.ShardsRecord': 'cat/shards/types.ts#L20-L396', -'cat.snapshots.Request': 'cat/snapshots/CatSnapshotsRequest.ts#L23-L36', +'cat.shards.ShardsRecord': 'cat/shards/types.ts#L20-L421', +'cat.snapshots.Request': 'cat/snapshots/CatSnapshotsRequest.ts#L23-L50', 'cat.snapshots.Response': 'cat/snapshots/CatSnapshotsResponse.ts#L22-L24', -'cat.snapshots.SnapshotsRecord': 'cat/snapshots/types.ts#L24-L90', -'cat.tasks.Request': 'cat/tasks/CatTasksRequest.ts#L23-L36', +'cat.snapshots.SnapshotsRecord': 'cat/snapshots/types.ts#L24-L96', +'cat.tasks.Request': 'cat/tasks/CatTasksRequest.ts#L23-L48', 'cat.tasks.Response': 'cat/tasks/CatTasksResponse.ts#L22-L24', 'cat.tasks.TasksRecord': 'cat/tasks/types.ts#L22-L101', -'cat.templates.Request': 'cat/templates/CatTemplatesRequest.ts#L23-L33', +'cat.templates.Request': 'cat/templates/CatTemplatesRequest.ts#L23-L41', 'cat.templates.Response': 'cat/templates/CatTemplatesResponse.ts#L22-L24', 'cat.templates.TemplatesRecord': 'cat/templates/types.ts#L22-L48', -'cat.thread_pool.Request': 'cat/thread_pool/CatThreadPoolRequest.ts#L24-L43', +'cat.thread_pool.Request': 'cat/thread_pool/CatThreadPoolRequest.ts#L24-L48', 'cat.thread_pool.Response': 'cat/thread_pool/CatThreadPoolResponse.ts#L22-L24', -'cat.thread_pool.ThreadPoolRecord': 'cat/thread_pool/types.ts#L22-L123', -'cat.transforms.Request': 'cat/transforms/CatTransformsRequest.ts#L25-L59', +'cat.thread_pool.ThreadPoolRecord': 'cat/thread_pool/types.ts#L22-L124', +'cat.transforms.Request': 'cat/transforms/CatTransformsRequest.ts#L25-L77', 'cat.transforms.Response': 'cat/transforms/CatTransformsResponse.ts#L22-L24', -'cat.transforms.TransformsRecord': 'cat/transforms/types.ts#L22-L187', +'cat.transforms.TransformsRecord': 'cat/transforms/types.ts#L22-L197', 'ccr._types.FollowIndexStats': 'ccr/_types/FollowIndexStats.ts#L30-L33', 'ccr._types.ReadException': 'ccr/_types/FollowIndexStats.ts#L71-L75', 'ccr._types.ShardStats': 'ccr/_types/FollowIndexStats.ts#L35-L69', @@ -1056,13 +1065,13 @@ 'cluster.allocation_explain.Response': 'cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64', 'cluster.allocation_explain.UnassignedInformation': 'cluster/allocation_explain/types.ts#L117-L125', 'cluster.allocation_explain.UnassignedInformationReason': 'cluster/allocation_explain/types.ts#L127-L146', -'cluster.delete_component_template.Request': 'cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L44', +'cluster.delete_component_template.Request': 'cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L54', 'cluster.delete_component_template.Response': 'cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24', 'cluster.delete_voting_config_exclusions.Request': 'cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L22-L40', 'cluster.exists_component_template.Request': 'cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L53', -'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L48', +'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L65', 'cluster.get_component_template.Response': 'cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24', -'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L36', +'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L57', 'cluster.get_settings.Response': 'cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29', 'cluster.health.HealthResponseBody': 'cluster/health/ClusterHealthResponse.ts#L39-L72', 'cluster.health.IndexHealthStats': 'cluster/health/types.ts#L24-L34', @@ -1071,11 +1080,11 @@ 'cluster.health.ShardHealthStats': 'cluster/health/types.ts#L36-L43', 'cluster.info.Request': 'cluster/info/ClusterInfoRequest.ts#L23-L34', 'cluster.info.Response': 'cluster/info/ClusterInfoResponse.ts#L26-L34', -'cluster.pending_tasks.PendingTask': 'cluster/pending_tasks/types.ts#L23-L30', -'cluster.pending_tasks.Request': 'cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L35', +'cluster.pending_tasks.PendingTask': 'cluster/pending_tasks/types.ts#L23-L47', +'cluster.pending_tasks.Request': 'cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L48', 'cluster.pending_tasks.Response': 'cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24', 'cluster.post_voting_config_exclusions.Request': 'cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L50', -'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L69', +'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L99', 'cluster.put_component_template.Response': 'cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24', 'cluster.put_settings.Request': 'cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43', 'cluster.put_settings.Response': 'cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29', @@ -1096,39 +1105,39 @@ 'cluster.reroute.Response': 'cluster/reroute/ClusterRerouteResponse.ts#L23-L34', 'cluster.state.Request': 'cluster/state/ClusterStateRequest.ts#L29-L56', 'cluster.state.Response': 'cluster/state/ClusterStateResponse.ts#L22-L29', -'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L136-L145', -'cluster.stats.ClusterFileSystem': 'cluster/stats/types.ts#L34-L38', -'cluster.stats.ClusterIndices': 'cluster/stats/types.ts#L63-L94', -'cluster.stats.ClusterIndicesShards': 'cluster/stats/types.ts#L49-L61', -'cluster.stats.ClusterIndicesShardsIndex': 'cluster/stats/types.ts#L40-L47', -'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L154-L157', -'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L159-L164', -'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L166-L169', -'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L171-L179', -'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L181-L184', -'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L186-L205', -'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L207-L237', -'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L244-L251', -'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L239-L242', -'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L253-L256', -'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L258-L261', -'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L263-L266', -'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L268-L270', -'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L272-L276', -'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L278-L284', -'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L286-L290', -'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L105-L117', -'cluster.stats.FieldTypesMappings': 'cluster/stats/types.ts#L96-L103', -'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L311-L313', -'cluster.stats.IndexingPressureMemory': 'cluster/stats/types.ts#L315-L319', -'cluster.stats.IndexingPressureMemorySummary': 'cluster/stats/types.ts#L321-L330', -'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L147-L152', -'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L292-L296', -'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L298-L309', -'cluster.stats.Request': 'cluster/stats/ClusterStatsRequest.ts#L24-L40', -'cluster.stats.Response': 'cluster/stats/ClusterStatsResponse.ts#L55-L57', -'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L119-L134', -'cluster.stats.StatsResponseBase': 'cluster/stats/ClusterStatsResponse.ts#L25-L53', +'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L228-L261', +'cluster.stats.ClusterFileSystem': 'cluster/stats/types.ts#L34-L49', +'cluster.stats.ClusterIndices': 'cluster/stats/types.ts#L74-L107', +'cluster.stats.ClusterIndicesShards': 'cluster/stats/types.ts#L60-L72', +'cluster.stats.ClusterIndicesShardsIndex': 'cluster/stats/types.ts#L51-L58', +'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L270-L273', +'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L275-L292', +'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L294-L303', +'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L305-L335', +'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L337-L346', +'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L348-L367', +'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L369-L402', +'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L415-L442', +'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L404-L413', +'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L444-L453', +'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L455-L464', +'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L466-L475', +'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L477-L483', +'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L485-L501', +'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L503-L509', +'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L511-L524', +'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L136-L167', +'cluster.stats.FieldTypesMappings': 'cluster/stats/types.ts#L109-L134', +'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L570-L572', +'cluster.stats.IndexingPressureMemory': 'cluster/stats/types.ts#L574-L578', +'cluster.stats.IndexingPressureMemorySummary': 'cluster/stats/types.ts#L580-L589', +'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L263-L268', +'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L526-L539', +'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L541-L568', +'cluster.stats.Request': 'cluster/stats/ClusterStatsRequest.ts#L24-L50', +'cluster.stats.Response': 'cluster/stats/ClusterStatsResponse.ts#L53-L55', +'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L169-L226', +'cluster.stats.StatsResponseBase': 'cluster/stats/ClusterStatsResponse.ts#L25-L51', 'dangling_indices.delete_dangling_index.Request': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L37', 'dangling_indices.delete_dangling_index.Response': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24', 'dangling_indices.import_dangling_index.Request': 'dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L37', @@ -1139,30 +1148,30 @@ 'enrich._types.Policy': 'enrich/_types/Policy.ts#L33-L40', 'enrich._types.PolicyType': 'enrich/_types/Policy.ts#L27-L31', 'enrich._types.Summary': 'enrich/_types/Policy.ts#L23-L25', -'enrich.delete_policy.Request': 'enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L32', +'enrich.delete_policy.Request': 'enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L36', 'enrich.delete_policy.Response': 'enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24', 'enrich.execute_policy.EnrichPolicyPhase': 'enrich/execute_policy/types.ts#L24-L29', 'enrich.execute_policy.ExecuteEnrichPolicyStatus': 'enrich/execute_policy/types.ts#L20-L22', -'enrich.execute_policy.Request': 'enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L35', +'enrich.execute_policy.Request': 'enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L44', 'enrich.execute_policy.Response': 'enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28', -'enrich.get_policy.Request': 'enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L32', +'enrich.get_policy.Request': 'enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L37', 'enrich.get_policy.Response': 'enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24', -'enrich.put_policy.Request': 'enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L38', +'enrich.put_policy.Request': 'enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52', 'enrich.put_policy.Response': 'enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24', 'enrich.stats.CacheStats': 'enrich/stats/types.ts#L37-L43', 'enrich.stats.CoordinatorStats': 'enrich/stats/types.ts#L29-L35', 'enrich.stats.ExecutingPolicy': 'enrich/stats/types.ts#L24-L27', -'enrich.stats.Request': 'enrich/stats/EnrichStatsRequest.ts#L22-L27', -'enrich.stats.Response': 'enrich/stats/EnrichStatsResponse.ts#L22-L32', +'enrich.stats.Request': 'enrich/stats/EnrichStatsRequest.ts#L22-L28', +'enrich.stats.Response': 'enrich/stats/EnrichStatsResponse.ts#L22-L39', 'eql._types.EqlHits': 'eql/_types/EqlHits.ts#L25-L39', 'eql._types.EqlSearchResponseBase': 'eql/_types/EqlSearchResponseBase.ts#L25-L50', 'eql._types.HitsEvent': 'eql/_types/EqlHits.ts#L41-L49', 'eql._types.HitsSequence': 'eql/_types/EqlHits.ts#L51-L59', -'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L32', +'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L38', 'eql.delete.Response': 'eql/delete/EqlDeleteResponse.ts#L22-L24', -'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L45', +'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L49', 'eql.get.Response': 'eql/get/EqlGetResponse.ts#L22-L24', -'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L32', +'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L34', 'eql.get_status.Response': 'eql/get_status/EqlGetStatusResponse.ts#L24-L51', 'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L28-L117', 'eql.search.Response': 'eql/search/EqlSearchResponse.ts#L22-L24', @@ -1175,13 +1184,13 @@ 'fleet.search.Request': 'fleet/search/SearchRequest.ts#L55-L260', 'fleet.search.Response': 'fleet/search/SearchResponse.ts#L33-L50', 'graph._types.Connection': 'graph/_types/Connection.ts#L22-L27', -'graph._types.ExploreControls': 'graph/_types/ExploreControls.ts#L24-L29', -'graph._types.Hop': 'graph/_types/Hop.ts#L23-L27', -'graph._types.SampleDiversity': 'graph/_types/ExploreControls.ts#L31-L34', +'graph._types.ExploreControls': 'graph/_types/ExploreControls.ts#L24-L49', +'graph._types.Hop': 'graph/_types/Hop.ts#L23-L36', +'graph._types.SampleDiversity': 'graph/_types/ExploreControls.ts#L51-L54', 'graph._types.Vertex': 'graph/_types/Vertex.ts#L23-L28', -'graph._types.VertexDefinition': 'graph/_types/Vertex.ts#L30-L37', -'graph._types.VertexInclude': 'graph/_types/Vertex.ts#L39-L42', -'graph.explore.Request': 'graph/explore/GraphExploreRequest.ts#L28-L47', +'graph._types.VertexDefinition': 'graph/_types/Vertex.ts#L30-L59', +'graph._types.VertexInclude': 'graph/_types/Vertex.ts#L61-L64', +'graph.explore.Request': 'graph/explore/GraphExploreRequest.ts#L28-L72', 'graph.explore.Response': 'graph/explore/GraphExploreResponse.ts#L25-L33', 'ilm._types.Configurations': 'ilm/_types/Phase.ts#L50-L54', 'ilm._types.ForceMergeConfiguration': 'ilm/_types/Phase.ts#L56-L58', @@ -1217,17 +1226,17 @@ 'ilm.start.Response': 'ilm/start/StartIlmResponse.ts#L22-L24', 'ilm.stop.Request': 'ilm/stop/StopIlmRequest.ts#L23-L32', 'ilm.stop.Response': 'ilm/stop/StopIlmResponse.ts#L22-L24', -'indices._types.Alias': 'indices/_types/Alias.ts#L23-L30', -'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L33', +'indices._types.Alias': 'indices/_types/Alias.ts#L23-L53', +'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L54', 'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L398-L400', 'indices._types.DataLifecycle': 'indices/_types/DataLifecycle.ts#L24-L29', -'indices._types.DataLifecycleWithRollover': 'indices/_types/DataLifecycle.ts#L31-L38', -'indices._types.DataStream': 'indices/_types/DataStream.ts#L32-L55', -'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L61-L64', -'indices._types.DataStreamTimestampField': 'indices/_types/DataStream.ts#L57-L59', -'indices._types.DataStreamVisibility': 'indices/_types/DataStream.ts#L66-L68', -'indices._types.DlmRolloverConditions': 'indices/_types/DataLifecycle.ts#L40-L52', -'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L24', +'indices._types.DataLifecycleWithRollover': 'indices/_types/DataLifecycle.ts#L31-L48', +'indices._types.DataStream': 'indices/_types/DataStream.ts#L32-L96', +'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L105-L114', +'indices._types.DataStreamTimestampField': 'indices/_types/DataStream.ts#L98-L103', +'indices._types.DataStreamVisibility': 'indices/_types/DataStream.ts#L116-L118', +'indices._types.DlmRolloverConditions': 'indices/_types/DataLifecycle.ts#L50-L62', +'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L27', 'indices._types.FielddataFrequencyFilter': 'indices/_types/FielddataFrequencyFilter.ts#L22-L26', 'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L253-L260', 'indices._types.IndexRouting': 'indices/_types/IndexRouting.ts#L22-L25', @@ -1246,12 +1255,14 @@ 'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L302-L308', 'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L318-L321', 'indices._types.IndexState': 'indices/_types/IndexState.ts#L27-L40', -'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L31-L41', -'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L43-L54', -'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L56-L65', +'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L31-L70', +'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L72-L83', +'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L85-L107', 'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L262-L265', -'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L540-L542', -'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L544-L551', +'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L534-L536', +'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L538-L545', +'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L547-L552', +'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L554-L561', 'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L402-L415', 'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L427-L434', 'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L464-L470', @@ -1282,11 +1293,11 @@ 'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L211-L214', 'indices._types.SettingsSimilarityScriptedTfidf': 'indices/_types/IndexSettings.ts#L216-L219', 'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L472-L477', -'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L490-L495', -'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L479-L488', +'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L484-L489', +'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L479-L482', 'indices._types.SoftDeletes': 'indices/_types/IndexSettings.ts#L50-L63', -'indices._types.Storage': 'indices/_types/IndexSettings.ts#L497-L506', -'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L508-L538', +'indices._types.Storage': 'indices/_types/IndexSettings.ts#L491-L500', +'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L502-L532', 'indices._types.TemplateMapping': 'indices/_types/TemplateMapping.ts#L27-L34', 'indices._types.Translog': 'indices/_types/IndexSettings.ts#L332-L354', 'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L356-L371', @@ -1300,42 +1311,42 @@ 'indices.analyze.AnalyzerDetail': 'indices/analyze/types.ts#L32-L35', 'indices.analyze.CharFilterDetail': 'indices/analyze/types.ts#L46-L49', 'indices.analyze.ExplainAnalyzeToken': 'indices/analyze/types.ts#L52-L64', -'indices.analyze.Request': 'indices/analyze/IndicesAnalyzeRequest.ts#L27-L47', +'indices.analyze.Request': 'indices/analyze/IndicesAnalyzeRequest.ts#L27-L92', 'indices.analyze.Response': 'indices/analyze/IndicesAnalyzeResponse.ts#L22-L27', 'indices.analyze.TokenDetail': 'indices/analyze/types.ts#L68-L71', -'indices.clear_cache.Request': 'indices/clear_cache/IndicesIndicesClearCacheRequest.ts#L23-L40', +'indices.clear_cache.Request': 'indices/clear_cache/IndicesIndicesClearCacheRequest.ts#L23-L76', 'indices.clear_cache.Response': 'indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24', -'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L45', +'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L75', 'indices.clone.Response': 'indices/clone/IndicesCloneResponse.ts#L22-L28', 'indices.close.CloseIndexResult': 'indices/close/CloseIndexResponse.ts#L32-L35', 'indices.close.CloseShardResult': 'indices/close/CloseIndexResponse.ts#L37-L39', -'indices.close.Request': 'indices/close/CloseIndexRequest.ts#L24-L41', +'indices.close.Request': 'indices/close/CloseIndexRequest.ts#L24-L77', 'indices.close.Response': 'indices/close/CloseIndexResponse.ts#L24-L30', -'indices.create.Request': 'indices/create/IndicesCreateRequest.ts#L28-L56', +'indices.create.Request': 'indices/create/IndicesCreateRequest.ts#L28-L81', 'indices.create.Response': 'indices/create/IndicesCreateResponse.ts#L22-L28', -'indices.create_data_stream.Request': 'indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L23-L32', +'indices.create_data_stream.Request': 'indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L23-L43', 'indices.create_data_stream.Response': 'indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24', -'indices.data_streams_stats.DataStreamsStatsItem': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L36-L42', -'indices.data_streams_stats.Request': 'indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L35', -'indices.data_streams_stats.Response': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L34', -'indices.delete.Request': 'indices/delete/IndicesDeleteRequest.ts#L24-L40', +'indices.data_streams_stats.DataStreamsStatsItem': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65', +'indices.data_streams_stats.Request': 'indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L47', +'indices.data_streams_stats.Response': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43', +'indices.delete.Request': 'indices/delete/IndicesDeleteRequest.ts#L24-L73', 'indices.delete.Response': 'indices/delete/IndicesDeleteResponse.ts#L22-L24', -'indices.delete_alias.Request': 'indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L38', +'indices.delete_alias.Request': 'indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L57', 'indices.delete_alias.Response': 'indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24', 'indices.delete_data_lifecycle.Request': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L39', 'indices.delete_data_lifecycle.Response': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24', -'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L35', +'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L44', 'indices.delete_data_stream.Response': 'indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24', 'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L52', 'indices.delete_index_template.Response': 'indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24', -'indices.delete_template.Request': 'indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L37', +'indices.delete_template.Request': 'indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L53', 'indices.delete_template.Response': 'indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24', -'indices.disk_usage.Request': 'indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L62', +'indices.disk_usage.Request': 'indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L71', 'indices.disk_usage.Response': 'indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L24', -'indices.downsample.Request': 'indices/downsample/Request.ts#L24-L36', +'indices.downsample.Request': 'indices/downsample/Request.ts#L24-L44', 'indices.downsample.Response': 'indices/downsample/Response.ts#L22-L24', -'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L40', -'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L39', +'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L72', +'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L67', 'indices.exists_index_template.Request': 'indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L41', 'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L38', 'indices.explain_data_lifecycle.DataLifecycleExplain': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41', @@ -1349,7 +1360,7 @@ 'indices.field_usage_stats.ShardsStats': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L49-L52', 'indices.field_usage_stats.UsageStatsIndex': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L38-L40', 'indices.field_usage_stats.UsageStatsShards': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L47', -'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L38', +'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L70', 'indices.flush.Response': 'indices/flush/IndicesFlushResponse.ts#L22-L24', 'indices.forcemerge.Request': 'indices/forcemerge/IndicesForceMergeRequest.ts#L24-L41', 'indices.forcemerge.Response': 'indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24', @@ -1358,48 +1369,48 @@ 'indices.get.Request': 'indices/get/IndicesGetRequest.ts#L24-L88', 'indices.get.Response': 'indices/get/IndicesGetResponse.ts#L24-L26', 'indices.get_alias.IndexAliases': 'indices/get_alias/IndicesGetAliasResponse.ts#L36-L38', -'indices.get_alias.Request': 'indices/get_alias/IndicesGetAliasRequest.ts#L23-L39', +'indices.get_alias.Request': 'indices/get_alias/IndicesGetAliasRequest.ts#L23-L70', 'indices.get_alias.Response': 'indices/get_alias/IndicesGetAliasResponse.ts#L26-L34', 'indices.get_data_lifecycle.DataStreamLifecycle': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30', -'indices.get_data_lifecycle.Request': 'indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L23-L37', +'indices.get_data_lifecycle.Request': 'indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L23-L52', 'indices.get_data_lifecycle.Response': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25', -'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L42', +'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L53', 'indices.get_data_stream.Response': 'indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24', -'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L39', +'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L73', 'indices.get_field_mapping.Response': 'indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L26', 'indices.get_field_mapping.TypeFieldMappings': 'indices/get_field_mapping/types.ts#L24-L26', 'indices.get_index_template.IndexTemplateItem': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32', 'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L60', 'indices.get_index_template.Response': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27', 'indices.get_mapping.IndexMappingRecord': 'indices/get_mapping/IndicesGetMappingResponse.ts#L28-L31', -'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L40', +'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L72', 'indices.get_mapping.Response': 'indices/get_mapping/IndicesGetMappingResponse.ts#L24-L26', -'indices.get_settings.Request': 'indices/get_settings/IndicesGetSettingsRequest.ts#L24-L43', +'indices.get_settings.Request': 'indices/get_settings/IndicesGetSettingsRequest.ts#L24-L91', 'indices.get_settings.Response': 'indices/get_settings/IndicesGetSettingsResponse.ts#L24-L26', -'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L38', +'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L57', 'indices.get_template.Response': 'indices/get_template/IndicesGetTemplateResponse.ts#L23-L25', -'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L23-L32', +'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L23-L44', 'indices.migrate_to_data_stream.Response': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24', -'indices.modify_data_stream.Action': 'indices/modify_data_stream/types.ts#L22-L26', -'indices.modify_data_stream.IndexAndDataStreamAction': 'indices/modify_data_stream/types.ts#L28-L31', -'indices.modify_data_stream.Request': 'indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L35', +'indices.modify_data_stream.Action': 'indices/modify_data_stream/types.ts#L22-L37', +'indices.modify_data_stream.IndexAndDataStreamAction': 'indices/modify_data_stream/types.ts#L39-L44', +'indices.modify_data_stream.Request': 'indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36', 'indices.modify_data_stream.Response': 'indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24', -'indices.open.Request': 'indices/open/IndicesOpenRequest.ts#L24-L41', +'indices.open.Request': 'indices/open/IndicesOpenRequest.ts#L24-L82', 'indices.open.Response': 'indices/open/IndicesOpenResponse.ts#L20-L25', 'indices.promote_data_stream.Request': 'indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L23-L31', 'indices.promote_data_stream.Response': 'indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L24', -'indices.put_alias.Request': 'indices/put_alias/IndicesPutAliasRequest.ts#L25-L46', +'indices.put_alias.Request': 'indices/put_alias/IndicesPutAliasRequest.ts#L25-L91', 'indices.put_alias.Response': 'indices/put_alias/IndicesPutAliasResponse.ts#L22-L24', -'indices.put_data_lifecycle.Request': 'indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L24-L42', +'indices.put_data_lifecycle.Request': 'indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L24-L69', 'indices.put_data_lifecycle.Response': 'indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24', -'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L61-L70', -'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L36-L59', +'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L97-L119', +'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L36-L95', 'indices.put_index_template.Response': 'indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24', -'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L116', +'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149', 'indices.put_mapping.Response': 'indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24', -'indices.put_settings.Request': 'indices/put_settings/IndicesPutSettingsRequest.ts#L25-L45', +'indices.put_settings.Request': 'indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92', 'indices.put_settings.Response': 'indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24', -'indices.put_template.Request': 'indices/put_template/IndicesPutTemplateRequest.ts#L29-L93', +'indices.put_template.Request': 'indices/put_template/IndicesPutTemplateRequest.ts#L29-L105', 'indices.put_template.Response': 'indices/put_template/IndicesPutTemplateResponse.ts#L22-L24', 'indices.recovery.FileDetails': 'indices/recovery/types.ts#L50-L54', 'indices.recovery.RecoveryBytes': 'indices/recovery/types.ts#L38-L48', @@ -1408,32 +1419,33 @@ 'indices.recovery.RecoveryOrigin': 'indices/recovery/types.ts#L76-L89', 'indices.recovery.RecoveryStartStatus': 'indices/recovery/types.ts#L91-L96', 'indices.recovery.RecoveryStatus': 'indices/recovery/types.ts#L98-L100', -'indices.recovery.Request': 'indices/recovery/IndicesRecoveryRequest.ts#L23-L36', +'indices.recovery.Request': 'indices/recovery/IndicesRecoveryRequest.ts#L23-L51', 'indices.recovery.Response': 'indices/recovery/IndicesRecoveryResponse.ts#L24-L26', 'indices.recovery.ShardRecovery': 'indices/recovery/types.ts#L118-L135', 'indices.recovery.TranslogStatus': 'indices/recovery/types.ts#L102-L109', 'indices.recovery.VerifyIndex': 'indices/recovery/types.ts#L111-L116', -'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L36', +'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L59', 'indices.refresh.Response': 'indices/refresh/IndicesRefreshResponse.ts#L22-L24', -'indices.reload_search_analyzers.ReloadDetails': 'indices/reload_search_analyzers/types.ts#L20-L24', +'indices.reload_search_analyzers.ReloadDetails': 'indices/reload_search_analyzers/types.ts#L27-L31', +'indices.reload_search_analyzers.ReloadResult': 'indices/reload_search_analyzers/types.ts#L22-L25', 'indices.reload_search_analyzers.Request': 'indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L36', -'indices.reload_search_analyzers.Response': 'indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L23-L25', -'indices.resolve_index.Request': 'indices/resolve_index/ResolveIndexRequest.ts#L23-L35', +'indices.reload_search_analyzers.Response': 'indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24', +'indices.resolve_index.Request': 'indices/resolve_index/ResolveIndexRequest.ts#L23-L48', 'indices.resolve_index.ResolveIndexAliasItem': 'indices/resolve_index/ResolveIndexResponse.ts#L37-L40', 'indices.resolve_index.ResolveIndexDataStreamsItem': 'indices/resolve_index/ResolveIndexResponse.ts#L42-L46', 'indices.resolve_index.ResolveIndexItem': 'indices/resolve_index/ResolveIndexResponse.ts#L30-L35', 'indices.resolve_index.Response': 'indices/resolve_index/ResolveIndexResponse.ts#L22-L28', -'indices.rollover.Request': 'indices/rollover/IndicesRolloverRequest.ts#L29-L51', +'indices.rollover.Request': 'indices/rollover/IndicesRolloverRequest.ts#L29-L99', 'indices.rollover.Response': 'indices/rollover/IndicesRolloverResponse.ts#L22-L32', 'indices.rollover.RolloverConditions': 'indices/rollover/types.ts#L24-L40', 'indices.segments.IndexSegment': 'indices/segments/types.ts#L24-L26', -'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L37', +'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L63', 'indices.segments.Response': 'indices/segments/IndicesSegmentsResponse.ts#L24-L29', 'indices.segments.Segment': 'indices/segments/types.ts#L28-L38', 'indices.segments.ShardSegmentRouting': 'indices/segments/types.ts#L40-L44', 'indices.segments.ShardsSegment': 'indices/segments/types.ts#L46-L51', 'indices.shard_stores.IndicesShardStores': 'indices/shard_stores/types.ts#L26-L28', -'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L58', +'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L60', 'indices.shard_stores.Response': 'indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26', 'indices.shard_stores.ShardStore': 'indices/shard_stores/types.ts#L30-L34', 'indices.shard_stores.ShardStoreAllocation': 'indices/shard_stores/types.ts#L45-L49', @@ -1441,21 +1453,21 @@ 'indices.shard_stores.ShardStoreNode': 'indices/shard_stores/types.ts#L36-L43', 'indices.shard_stores.ShardStoreStatus': 'indices/shard_stores/types.ts#L60-L69', 'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L56-L58', -'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L45', +'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L75', 'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28', -'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L78', +'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L115', 'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L20-L22', 'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42', 'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L61', 'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31', 'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37', -'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L45', +'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L74', 'indices.split.Response': 'indices/split/IndicesSplitResponse.ts#L22-L28', 'indices.stats.IndexMetadataState': 'indices/stats/types.ts#L225-L232', 'indices.stats.IndexStats': 'indices/stats/types.ts#L52-L93', 'indices.stats.IndicesStats': 'indices/stats/types.ts#L95-L110', 'indices.stats.MappingStats': 'indices/stats/types.ts#L186-L190', -'indices.stats.Request': 'indices/stats/IndicesStatsRequest.ts#L29-L83', +'indices.stats.Request': 'indices/stats/IndicesStatsRequest.ts#L29-L85', 'indices.stats.Response': 'indices/stats/IndicesStatsResponse.ts#L24-L30', 'indices.stats.ShardCommit': 'indices/stats/types.ts#L112-L117', 'indices.stats.ShardFileSizeInfo': 'indices/stats/types.ts#L124-L131', @@ -1468,16 +1480,16 @@ 'indices.stats.ShardSequenceNumber': 'indices/stats/types.ts#L176-L180', 'indices.stats.ShardStats': 'indices/stats/types.ts#L192-L223', 'indices.stats.ShardsTotalStats': 'indices/stats/types.ts#L182-L184', -'indices.unfreeze.Request': 'indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L40', +'indices.unfreeze.Request': 'indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L75', 'indices.unfreeze.Response': 'indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25', -'indices.update_aliases.Action': 'indices/update_aliases/types.ts#L23-L28', -'indices.update_aliases.AddAction': 'indices/update_aliases/types.ts#L30-L44', -'indices.update_aliases.RemoveAction': 'indices/update_aliases/types.ts#L46-L53', -'indices.update_aliases.RemoveIndexAction': 'indices/update_aliases/types.ts#L55-L60', -'indices.update_aliases.Request': 'indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L37', +'indices.update_aliases.Action': 'indices/update_aliases/types.ts#L23-L39', +'indices.update_aliases.AddAction': 'indices/update_aliases/types.ts#L41-L95', +'indices.update_aliases.RemoveAction': 'indices/update_aliases/types.ts#L97-L122', +'indices.update_aliases.RemoveIndexAction': 'indices/update_aliases/types.ts#L124-L139', +'indices.update_aliases.Request': 'indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51', 'indices.update_aliases.Response': 'indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24', 'indices.validate_query.IndicesValidationExplanation': 'indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37', -'indices.validate_query.Request': 'indices/validate_query/IndicesValidateQueryRequest.ts#L25-L51', +'indices.validate_query.Request': 'indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111', 'indices.validate_query.Response': 'indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30', 'ingest._types.AppendProcessor': 'ingest/_types/Processors.ts#L90-L94', 'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L96-L104', @@ -1593,21 +1605,21 @@ 'ml._types.CalendarEvent': 'ml/_types/CalendarEvent.ts#L23-L33', 'ml._types.CategorizationAnalyzer': 'ml/_types/Analysis.ts#L124-L125', 'ml._types.CategorizationAnalyzerDefinition': 'ml/_types/Analysis.ts#L127-L140', -'ml._types.CategorizationStatus': 'ml/_types/Model.ts#L80-L83', +'ml._types.CategorizationStatus': 'ml/_types/Model.ts#L83-L86', 'ml._types.Category': 'ml/_types/Category.ts#L23-L49', -'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L177-L190', -'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L171-L175', +'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L180-L193', +'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L174-L178', 'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L93-L108', 'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79', -'ml._types.DataCounts': 'ml/_types/Job.ts#L129-L149', -'ml._types.DataDescription': 'ml/_types/Job.ts#L151-L167', +'ml._types.DataCounts': 'ml/_types/Job.ts#L142-L162', +'ml._types.DataDescription': 'ml/_types/Job.ts#L164-L180', 'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L37-L58', 'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L43', 'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L60-L117', -'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L158-L162', +'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L161-L165', 'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L133-L138', -'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L140-L147', -'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L149-L156', +'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L140-L150', +'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L152-L159', 'ml._types.DataframeAnalysis': 'ml/_types/DataframeAnalytics.ts#L134-L213', 'ml._types.DataframeAnalysisAnalyzedFields': 'ml/_types/DataframeAnalytics.ts#L238-L244', 'ml._types.DataframeAnalysisClassification': 'ml/_types/DataframeAnalytics.ts#L227-L236', @@ -1620,18 +1632,18 @@ 'ml._types.DataframeAnalysisFeatureProcessorTargetMeanEncoding': 'ml/_types/DataframeAnalytics.ts#L295-L304', 'ml._types.DataframeAnalysisOutlierDetection': 'ml/_types/DataframeAnalytics.ts#L103-L132', 'ml._types.DataframeAnalysisRegression': 'ml/_types/DataframeAnalytics.ts#L215-L225', -'ml._types.DataframeAnalytics': 'ml/_types/DataframeAnalytics.ts#L324-L341', +'ml._types.DataframeAnalytics': 'ml/_types/DataframeAnalytics.ts#L324-L344', 'ml._types.DataframeAnalyticsAuthorization': 'ml/_types/Authorization.ts#L45-L57', 'ml._types.DataframeAnalyticsDestination': 'ml/_types/DataframeAnalytics.ts#L77-L82', 'ml._types.DataframeAnalyticsFieldSelection': 'ml/_types/DataframeAnalytics.ts#L55-L68', 'ml._types.DataframeAnalyticsMemoryEstimation': 'ml/_types/DataframeAnalytics.ts#L70-L75', 'ml._types.DataframeAnalyticsSource': 'ml/_types/DataframeAnalytics.ts#L39-L53', -'ml._types.DataframeAnalyticsStatsContainer': 'ml/_types/DataframeAnalytics.ts#L370-L378', -'ml._types.DataframeAnalyticsStatsDataCounts': 'ml/_types/DataframeAnalytics.ts#L361-L368', -'ml._types.DataframeAnalyticsStatsHyperparameters': 'ml/_types/DataframeAnalytics.ts#L380-L387', -'ml._types.DataframeAnalyticsStatsMemoryUsage': 'ml/_types/DataframeAnalytics.ts#L350-L359', -'ml._types.DataframeAnalyticsStatsOutlierDetection': 'ml/_types/DataframeAnalytics.ts#L389-L393', -'ml._types.DataframeAnalyticsStatsProgress': 'ml/_types/DataframeAnalytics.ts#L343-L348', +'ml._types.DataframeAnalyticsStatsContainer': 'ml/_types/DataframeAnalytics.ts#L373-L381', +'ml._types.DataframeAnalyticsStatsDataCounts': 'ml/_types/DataframeAnalytics.ts#L364-L371', +'ml._types.DataframeAnalyticsStatsHyperparameters': 'ml/_types/DataframeAnalytics.ts#L383-L390', +'ml._types.DataframeAnalyticsStatsMemoryUsage': 'ml/_types/DataframeAnalytics.ts#L353-L362', +'ml._types.DataframeAnalyticsStatsOutlierDetection': 'ml/_types/DataframeAnalytics.ts#L392-L396', +'ml._types.DataframeAnalyticsStatsProgress': 'ml/_types/DataframeAnalytics.ts#L346-L351', 'ml._types.DataframeAnalyticsSummary': 'ml/_types/DataframeAnalytics.ts#L306-L322', 'ml._types.DataframeEvaluationClassification': 'ml/_types/DataframeEvaluation.ts#L35-L44', 'ml._types.DataframeEvaluationClassificationMetrics': 'ml/_types/DataframeEvaluation.ts#L73-L78', @@ -1646,99 +1658,99 @@ 'ml._types.DataframeEvaluationRegressionMetricsMsle': 'ml/_types/DataframeEvaluation.ts#L112-L115', 'ml._types.DataframeState': 'ml/_types/Dataframe.ts#L20-L26', 'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L119-L130', -'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L282-L295', -'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L297-L302', -'ml._types.DeploymentState': 'ml/_types/TrainedModel.ts#L267-L280', +'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L288-L301', +'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L303-L308', +'ml._types.DeploymentState': 'ml/_types/TrainedModel.ts#L273-L286', 'ml._types.DetectionRule': 'ml/_types/Rule.ts#L25-L39', 'ml._types.Detector': 'ml/_types/Detector.ts#L25-L67', 'ml._types.DetectorRead': 'ml/_types/Detector.ts#L69-L80', 'ml._types.DiscoveryNode': 'ml/_types/DiscoveryNode.ts#L24-L30', 'ml._types.ExcludeFrequent': 'ml/_types/Detector.ts#L82-L87', -'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L266-L274', -'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L405-L412', +'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L266-L280', +'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L411-L418', 'ml._types.Filter': 'ml/_types/Filter.ts#L22-L29', 'ml._types.FilterRef': 'ml/_types/Filter.ts#L31-L41', 'ml._types.FilterType': 'ml/_types/Filter.ts#L43-L46', 'ml._types.GeoResults': 'ml/_types/Anomaly.ts#L145-L154', -'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L210-L224', -'ml._types.Hyperparameters': 'ml/_types/DataframeAnalytics.ts#L395-L410', +'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L216-L230', +'ml._types.Hyperparameters': 'ml/_types/DataframeAnalytics.ts#L398-L413', 'ml._types.Include': 'ml/_types/Include.ts#L20-L47', 'ml._types.InferenceConfigCreateContainer': 'ml/_types/inference.ts#L23-L80', -'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L290-L312', -'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L453-L500', +'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L296-L318', +'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L459-L506', 'ml._types.Influence': 'ml/_types/Anomaly.ts#L140-L143', 'ml._types.Influencer': 'ml/_types/Influencer.ts#L31-L83', -'ml._types.Job': 'ml/_types/Job.ts#L51-L75', -'ml._types.JobBlocked': 'ml/_types/Job.ts#L169-L172', -'ml._types.JobBlockedReason': 'ml/_types/Job.ts#L174-L178', -'ml._types.JobConfig': 'ml/_types/Job.ts#L77-L95', -'ml._types.JobForecastStatistics': 'ml/_types/Job.ts#L120-L127', -'ml._types.JobState': 'ml/_types/Job.ts#L36-L42', -'ml._types.JobStatistics': 'ml/_types/Job.ts#L44-L49', -'ml._types.JobStats': 'ml/_types/Job.ts#L96-L107', -'ml._types.JobTimingStats': 'ml/_types/Job.ts#L109-L118', -'ml._types.MemoryStatus': 'ml/_types/Model.ts#L85-L89', +'ml._types.Job': 'ml/_types/Job.ts#L61-L85', +'ml._types.JobBlocked': 'ml/_types/Job.ts#L182-L185', +'ml._types.JobBlockedReason': 'ml/_types/Job.ts#L187-L191', +'ml._types.JobConfig': 'ml/_types/Job.ts#L87-L105', +'ml._types.JobForecastStatistics': 'ml/_types/Job.ts#L133-L140', +'ml._types.JobState': 'ml/_types/Job.ts#L36-L52', +'ml._types.JobStatistics': 'ml/_types/Job.ts#L54-L59', +'ml._types.JobStats': 'ml/_types/Job.ts#L106-L120', +'ml._types.JobTimingStats': 'ml/_types/Job.ts#L122-L131', +'ml._types.MemoryStatus': 'ml/_types/Model.ts#L88-L92', 'ml._types.ModelPlotConfig': 'ml/_types/ModelPlot.ts#L23-L42', -'ml._types.ModelSizeStats': 'ml/_types/Model.ts#L56-L78', +'ml._types.ModelSizeStats': 'ml/_types/Model.ts#L59-L81', 'ml._types.ModelSnapshot': 'ml/_types/Model.ts#L25-L46', -'ml._types.ModelSnapshotUpgrade': 'ml/_types/Model.ts#L48-L54', +'ml._types.ModelSnapshotUpgrade': 'ml/_types/Model.ts#L48-L57', 'ml._types.NerInferenceOptions': 'ml/_types/inference.ts#L255-L264', -'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L398-L403', +'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L404-L409', 'ml._types.NlpBertTokenizationConfig': 'ml/_types/inference.ts#L131-L158', 'ml._types.NlpRobertaTokenizationConfig': 'ml/_types/inference.ts#L160-L187', -'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L350-L355', -'ml._types.OutlierDetectionParameters': 'ml/_types/DataframeAnalytics.ts#L412-L419', +'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L356-L361', +'ml._types.OutlierDetectionParameters': 'ml/_types/DataframeAnalytics.ts#L415-L422', 'ml._types.OverallBucket': 'ml/_types/Bucket.ts#L130-L145', 'ml._types.OverallBucketJob': 'ml/_types/Bucket.ts#L146-L149', 'ml._types.Page': 'ml/_types/Page.ts#L22-L33', 'ml._types.PassThroughInferenceOptions': 'ml/_types/inference.ts#L224-L231', -'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L379-L384', +'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L385-L390', 'ml._types.PerPartitionCategorization': 'ml/_types/Analysis.ts#L93-L102', -'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L276-L286', -'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L414-L425', +'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L282-L292', +'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L420-L431', 'ml._types.RegressionInferenceOptions': 'ml/_types/inference.ts#L82-L91', -'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L344-L365', +'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L350-L371', 'ml._types.RuleAction': 'ml/_types/Rule.ts#L41-L50', 'ml._types.RuleCondition': 'ml/_types/Rule.ts#L52-L65', -'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L164-L169', -'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L91-L96', +'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L167-L172', +'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L94-L99', 'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L189-L199', -'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L357-L366', +'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L363-L372', 'ml._types.TextEmbeddingInferenceOptions': 'ml/_types/inference.ts#L237-L245', -'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L386-L390', +'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L392-L396', 'ml._types.TextExpansionInferenceOptions': 'ml/_types/inference.ts#L247-L253', -'ml._types.TextExpansionInferenceUpdateOptions': 'ml/_types/inference.ts#L392-L396', -'ml._types.TimingStats': 'ml/_types/DataframeAnalytics.ts#L421-L426', +'ml._types.TextExpansionInferenceUpdateOptions': 'ml/_types/inference.ts#L398-L402', +'ml._types.TimingStats': 'ml/_types/DataframeAnalytics.ts#L424-L429', 'ml._types.TokenizationConfigContainer': 'ml/_types/inference.ts#L110-L129', -'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L344-L348', -'ml._types.TopClassEntry': 'ml/_types/inference.ts#L434-L438', -'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L226-L233', -'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L235-L240', -'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L242-L249', -'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L396-L411', -'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L367-L385', -'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L309-L342', -'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L159-L193', -'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L195-L198', -'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L200-L208', -'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L387-L394', -'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L130-L157', -'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L99', -'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L427-L433', -'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L440-L443', -'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L445-L449', -'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L101-L121', -'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L413-L415', -'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L417-L419', -'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L123-L128', +'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L350-L354', +'ml._types.TopClassEntry': 'ml/_types/inference.ts#L440-L444', +'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L232-L239', +'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L241-L246', +'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L248-L255', +'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L402-L417', +'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L373-L391', +'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L315-L348', +'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L165-L199', +'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L201-L204', +'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L206-L214', +'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L393-L400', +'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L133-L163', +'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L102', +'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L433-L439', +'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L446-L449', +'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L451-L455', +'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L104-L124', +'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L419-L421', +'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L423-L425', +'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L126-L131', 'ml._types.TrainedModelStats': 'ml/_types/TrainedModel.ts#L42-L60', -'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L251-L265', -'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L304-L307', +'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L257-L271', +'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L310-L313', 'ml._types.TransformAuthorization': 'ml/_types/Authorization.ts#L59-L71', -'ml._types.ValidationLoss': 'ml/_types/DataframeAnalytics.ts#L428-L433', +'ml._types.ValidationLoss': 'ml/_types/DataframeAnalytics.ts#L431-L436', 'ml._types.Vocabulary': 'ml/_types/inference.ts#L233-L235', 'ml._types.ZeroShotClassificationInferenceOptions': 'ml/_types/inference.ts#L201-L222', -'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L368-L377', +'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L374-L383', 'ml.clear_trained_model_deployment_cache.Request': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L25-L42', 'ml.clear_trained_model_deployment_cache.Response': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24', 'ml.close_job.Request': 'ml/close_job/MlCloseJobRequest.ts#L24-L77', @@ -1844,10 +1856,10 @@ 'ml.info.Request': 'ml/info/MlInfoRequest.ts#L22-L35', 'ml.info.Response': 'ml/info/MlInfoResponse.ts#L22-L29', 'ml.open_job.Request': 'ml/open_job/MlOpenJobRequest.ts#L24-L59', -'ml.open_job.Response': 'ml/open_job/MlOpenJobResponse.ts#L22-L27', +'ml.open_job.Response': 'ml/open_job/MlOpenJobResponse.ts#L22-L31', 'ml.post_calendar_events.Request': 'ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40', 'ml.post_calendar_events.Response': 'ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24', -'ml.post_data.Request': 'ml/post_data/MlPostJobDataRequest.ts#L24-L69', +'ml.post_data.Request': 'ml/post_data/MlPostJobDataRequest.ts#L24-L68', 'ml.post_data.Response': 'ml/post_data/MlPostJobDataResponse.ts#L23-L41', 'ml.preview_data_frame_analytics.DataframePreviewConfig': 'ml/preview_data_frame_analytics/types.ts#L27-L33', 'ml.preview_data_frame_analytics.Request': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47', @@ -1873,7 +1885,7 @@ 'ml.put_trained_model.Input': 'ml/put_trained_model/types.ts#L56-L58', 'ml.put_trained_model.OneHotEncodingPreprocessor': 'ml/put_trained_model/types.ts#L44-L47', 'ml.put_trained_model.Preprocessor': 'ml/put_trained_model/types.ts#L31-L36', -'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L28-L95', +'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L28-L96', 'ml.put_trained_model.Response': 'ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24', 'ml.put_trained_model.TargetMeanEncodingPreprocessor': 'ml/put_trained_model/types.ts#L49-L54', 'ml.put_trained_model.TrainedModel': 'ml/put_trained_model/types.ts#L60-L72', @@ -1893,7 +1905,7 @@ 'ml.set_upgrade_mode.Request': 'ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L23-L56', 'ml.set_upgrade_mode.Response': 'ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24', 'ml.start_data_frame_analytics.Request': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L60', -'ml.start_data_frame_analytics.Response': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L28', +'ml.start_data_frame_analytics.Response': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34', 'ml.start_datafeed.Request': 'ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91', 'ml.start_datafeed.Response': 'ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34', 'ml.start_trained_model_deployment.Request': 'ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L29-L87', @@ -1915,7 +1927,7 @@ 'ml.update_model_snapshot.Request': 'ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54', 'ml.update_model_snapshot.Response': 'ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27', 'ml.upgrade_job_snapshot.Request': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L63', -'ml.upgrade_job_snapshot.Response': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L29', +'ml.upgrade_job_snapshot.Response': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31', 'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L44', 'ml.validate.Response': 'ml/validate/MlValidateJobResponse.ts#L22-L24', 'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31', @@ -2047,6 +2059,21 @@ 'nodes.usage.Request': 'nodes/usage/NodesUsageRequest.ts#L24-L38', 'nodes.usage.Response': 'nodes/usage/NodesUsageResponse.ts#L30-L32', 'nodes.usage.ResponseBase': 'nodes/usage/NodesUsageResponse.ts#L25-L28', +'query_ruleset._types.QueryRule': 'query_ruleset/_types/QueryRuleset.ts#L37-L42', +'query_ruleset._types.QueryRuleActions': 'query_ruleset/_types/QueryRuleset.ts#L67-L70', +'query_ruleset._types.QueryRuleCriteria': 'query_ruleset/_types/QueryRuleset.ts#L48-L52', +'query_ruleset._types.QueryRuleCriteriaType': 'query_ruleset/_types/QueryRuleset.ts#L54-L65', +'query_ruleset._types.QueryRuleType': 'query_ruleset/_types/QueryRuleset.ts#L44-L46', +'query_ruleset._types.QueryRuleset': 'query_ruleset/_types/QueryRuleset.ts#L26-L35', +'query_ruleset.delete.Request': 'query_ruleset/delete/QueryRulesetDeleteRequest.ts#L22-L35', +'query_ruleset.delete.Response': 'query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24', +'query_ruleset.get.Request': 'query_ruleset/get/QueryRulesetGetRequest.ts#L22-L35', +'query_ruleset.get.Response': 'query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24', +'query_ruleset.list.QueryRulesetListItem': 'query_ruleset/list/types.ts#L22-L31', +'query_ruleset.list.Request': 'query_ruleset/list/QueryRulesetListRequest.ts#L22-L39', +'query_ruleset.list.Response': 'query_ruleset/list/QueryRulesetListResponse.ts#L23-L28', +'query_ruleset.put.Request': 'query_ruleset/put/QueryRulesetPutRequest.ts#L23-L41', +'query_ruleset.put.Response': 'query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26', 'rollup._types.DateHistogramGrouping': 'rollup/_types/Groupings.ts#L30-L38', 'rollup._types.FieldMetric': 'rollup/_types/Metric.ts#L30-L35', 'rollup._types.Groupings': 'rollup/_types/Groupings.ts#L24-L28', @@ -2114,21 +2141,23 @@ 'searchable_snapshots.mount.Response': 'searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26', 'searchable_snapshots.stats.Request': 'searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L35', 'searchable_snapshots.stats.Response': 'searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27', -'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L47', +'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L77', 'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L193-L195', 'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L26-L39', 'security._types.ClusterNode': 'security/_types/ClusterNode.ts#L22-L24', +'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L41-L80', 'security._types.CreatedStatus': 'security/_types/CreatedStatus.ts#L20-L22', 'security._types.FieldRule': 'security/_types/RoleMappingRule.ts#L33-L42', 'security._types.FieldSecurity': 'security/_types/FieldSecurity.ts#L22-L25', 'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L189-L191', -'security._types.GrantType': 'security/_types/GrantType.ts#L20-L23', +'security._types.GrantType': 'security/_types/GrantType.ts#L20-L29', +'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L166-L187', 'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L82-L105', 'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L197-L199', 'security._types.Realm': 'security/_types/RoleMappingRule.ts#L44-L46', 'security._types.RealmInfo': 'security/_types/RealmInfo.ts#L22-L25', -'security._types.RoleDescriptor': 'security/_types/RoleDescriptor.ts#L27-L36', -'security._types.RoleDescriptorRead': 'security/_types/RoleDescriptor.ts#L38-L47', +'security._types.RoleDescriptor': 'security/_types/RoleDescriptor.ts#L27-L55', +'security._types.RoleDescriptorRead': 'security/_types/RoleDescriptor.ts#L57-L85', 'security._types.RoleMapping': 'security/_types/RoleMapping.ts#L25-L31', 'security._types.RoleMappingRule': 'security/_types/RoleMappingRule.ts#L23-L31', 'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L160-L161', @@ -2143,12 +2172,12 @@ 'security._types.UserProfileWithMetadata': 'security/_types/UserProfile.ts#L50-L53', 'security.activate_user_profile.Request': 'security/activate_user_profile/Request.ts#L23-L37', 'security.activate_user_profile.Response': 'security/activate_user_profile/Response.ts#L22-L24', -'security.authenticate.Request': 'security/authenticate/SecurityAuthenticateRequest.ts#L22-L28', +'security.authenticate.Request': 'security/authenticate/SecurityAuthenticateRequest.ts#L22-L30', 'security.authenticate.Response': 'security/authenticate/SecurityAuthenticateResponse.ts#L25-L43', 'security.authenticate.Token': 'security/authenticate/types.ts#L22-L29', 'security.change_password.Request': 'security/change_password/SecurityChangePasswordRequest.ts#L23-L51', 'security.change_password.Response': 'security/change_password/SecurityChangePasswordResponse.ts#L20-L22', -'security.clear_api_key_cache.Request': 'security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L32', +'security.clear_api_key_cache.Request': 'security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L40', 'security.clear_api_key_cache.Response': 'security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32', 'security.clear_cached_privileges.Request': 'security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L32', 'security.clear_cached_privileges.Response': 'security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32', @@ -2158,7 +2187,7 @@ 'security.clear_cached_roles.Response': 'security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32', 'security.clear_cached_service_tokens.Request': 'security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L34', 'security.clear_cached_service_tokens.Response': 'security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32', -'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L52', +'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58', 'security.create_api_key.Response': 'security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50', 'security.create_service_token.Request': 'security/create_service_token/CreateServiceTokenRequest.ts#L24-L39', 'security.create_service_token.Response': 'security/create_service_token/CreateServiceTokenResponse.ts#L22-L27', @@ -2187,7 +2216,7 @@ 'security.enroll_kibana.Token': 'security/enroll_kibana/Response.ts#L27-L30', 'security.enroll_node.Request': 'security/enroll_node/Request.ts#L22-L27', 'security.enroll_node.Response': 'security/enroll_node/Response.ts#L20-L29', -'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L46', +'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L72', 'security.get_api_key.Response': 'security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24', 'security.get_builtin_privileges.Request': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L28', 'security.get_builtin_privileges.Response': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24', @@ -2220,9 +2249,9 @@ 'security.get_user_profile.GetUserProfileErrors': 'security/get_user_profile/types.ts#L25-L28', 'security.get_user_profile.Request': 'security/get_user_profile/Request.ts#L23-L46', 'security.get_user_profile.Response': 'security/get_user_profile/Response.ts#L23-L28', -'security.grant_api_key.ApiKeyGrantType': 'security/grant_api_key/types.ts#L34-L37', -'security.grant_api_key.GrantApiKey': 'security/grant_api_key/types.ts#L25-L32', -'security.grant_api_key.Request': 'security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L38', +'security.grant_api_key.ApiKeyGrantType': 'security/grant_api_key/types.ts#L48-L51', +'security.grant_api_key.GrantApiKey': 'security/grant_api_key/types.ts#L25-L46', +'security.grant_api_key.Request': 'security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75', 'security.grant_api_key.Response': 'security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31', 'security.has_privileges.ApplicationPrivilegesCheck': 'security/has_privileges/types.ts#L24-L31', 'security.has_privileges.IndexPrivilegesCheck': 'security/has_privileges/types.ts#L33-L44', @@ -2232,7 +2261,7 @@ 'security.has_privileges_user_profile.PrivilegesCheck': 'security/has_privileges_user_profile/types.ts#L30-L37', 'security.has_privileges_user_profile.Request': 'security/has_privileges_user_profile/Request.ts#L24-L38', 'security.has_privileges_user_profile.Response': 'security/has_privileges_user_profile/Response.ts#L23-L38', -'security.invalidate_api_key.Request': 'security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L37', +'security.invalidate_api_key.Request': 'security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66', 'security.invalidate_api_key.Response': 'security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L30', 'security.invalidate_token.Request': 'security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35', 'security.invalidate_token.Response': 'security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L30', @@ -2245,8 +2274,8 @@ 'security.put_role_mapping.Response': 'security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24', 'security.put_user.Request': 'security/put_user/SecurityPutUserRequest.ts#L23-L44', 'security.put_user.Response': 'security/put_user/SecurityPutUserResponse.ts#L20-L22', -'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L25-L68', -'security.query_api_keys.Response': 'security/query_api_keys/QueryApiKeysResponse.ts#L23-L29', +'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L25-L74', +'security.query_api_keys.Response': 'security/query_api_keys/QueryApiKeysResponse.ts#L23-L38', 'security.saml_authenticate.Request': 'security/saml_authenticate/Request.ts#L23-L38', 'security.saml_authenticate.Response': 'security/saml_authenticate/Response.ts#L22-L30', 'security.saml_complete_logout.Request': 'security/saml_complete_logout/Request.ts#L23-L40', @@ -2262,8 +2291,8 @@ 'security.suggest_user_profiles.Request': 'security/suggest_user_profiles/Request.ts#L24-L66', 'security.suggest_user_profiles.Response': 'security/suggest_user_profiles/Response.ts#L29-L35', 'security.suggest_user_profiles.TotalUserProfiles': 'security/suggest_user_profiles/Response.ts#L24-L27', -'security.update_api_key.Request': 'security/update_api_key/Request.ts#L25-L49', -'security.update_api_key.Response': 'security/update_api_key/Response.ts#L20-L24', +'security.update_api_key.Request': 'security/update_api_key/Request.ts#L25-L62', +'security.update_api_key.Response': 'security/update_api_key/Response.ts#L20-L28', 'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L70', 'security.update_user_profile_data.Response': 'security/update_user_profile_data/Response.ts#L22-L24', 'shutdown._types.Type': 'shutdown/_types/types.ts#L20-L24', @@ -2362,6 +2391,24 @@ 'ssl.certificates.CertificateInformation': 'ssl/certificates/types.ts#L22-L31', 'ssl.certificates.Request': 'ssl/certificates/GetCertificatesRequest.ts#L22-L27', 'ssl.certificates.Response': 'ssl/certificates/GetCertificatesResponse.ts#L22-L24', +'synonyms._types.SynonymRule': 'synonyms/_types/SynonymRule.ts#L26-L35', +'synonyms._types.SynonymRuleRead': 'synonyms/_types/SynonymRule.ts#L38-L47', +'synonyms._types.SynonymsUpdateResult': 'synonyms/_types/SynonymsUpdateResult.ts#L23-L34', +'synonyms.delete_synonym.Request': 'synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L35', +'synonyms.delete_synonym.Response': 'synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24', +'synonyms.delete_synonym_rule.Request': 'synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L40', +'synonyms.delete_synonym_rule.Response': 'synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24', +'synonyms.get_synonym.Request': 'synonyms/get_synonym/SynonymsGetRequest.ts#L23-L48', +'synonyms.get_synonym.Response': 'synonyms/get_synonym/SynonymsGetResponse.ts#L23-L28', +'synonyms.get_synonym_rule.Request': 'synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L40', +'synonyms.get_synonym_rule.Response': 'synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24', +'synonyms.get_synonyms_sets.Request': 'synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L23-L42', +'synonyms.get_synonyms_sets.Response': 'synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L28', +'synonyms.get_synonyms_sets.SynonymsSetItem': 'synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L30-L39', +'synonyms.put_synonym.Request': 'synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42', +'synonyms.put_synonym.Response': 'synonyms/put_synonym/SynonymsPutResponse.ts#L24-L29', +'synonyms.put_synonym_rule.Request': 'synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47', +'synonyms.put_synonym_rule.Response': 'synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24', 'tasks._types.GroupBy': 'tasks/_types/GroupBy.ts#L20-L27', 'tasks._types.NodeTasks': 'tasks/_types/TaskListResponseBase.ts#L49-L57', 'tasks._types.ParentTaskInfo': 'tasks/_types/TaskListResponseBase.ts#L45-L47', @@ -2390,14 +2437,14 @@ 'transform.get_transform.Request': 'transform/get_transform/GetTransformRequest.ts#L24-L72', 'transform.get_transform.Response': 'transform/get_transform/GetTransformResponse.ts#L23-L25', 'transform.get_transform.TransformSummary': 'transform/get_transform/types.ts#L33-L61', -'transform.get_transform_stats.CheckpointStats': 'transform/get_transform_stats/types.ts#L73-L80', -'transform.get_transform_stats.Checkpointing': 'transform/get_transform_stats/types.ts#L82-L89', +'transform.get_transform_stats.CheckpointStats': 'transform/get_transform_stats/types.ts#L76-L83', +'transform.get_transform_stats.Checkpointing': 'transform/get_transform_stats/types.ts#L85-L92', 'transform.get_transform_stats.Request': 'transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L68', 'transform.get_transform_stats.Response': 'transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25', -'transform.get_transform_stats.TransformIndexerStats': 'transform/get_transform_stats/types.ts#L53-L71', -'transform.get_transform_stats.TransformProgress': 'transform/get_transform_stats/types.ts#L45-L51', -'transform.get_transform_stats.TransformStats': 'transform/get_transform_stats/types.ts#L31-L39', -'transform.get_transform_stats.TransformStatsHealth': 'transform/get_transform_stats/types.ts#L41-L43', +'transform.get_transform_stats.TransformIndexerStats': 'transform/get_transform_stats/types.ts#L56-L74', +'transform.get_transform_stats.TransformProgress': 'transform/get_transform_stats/types.ts#L48-L54', +'transform.get_transform_stats.TransformStats': 'transform/get_transform_stats/types.ts#L31-L42', +'transform.get_transform_stats.TransformStatsHealth': 'transform/get_transform_stats/types.ts#L44-L46', 'transform.preview_transform.Request': 'transform/preview_transform/PreviewTransformRequest.ts#L33-L107', 'transform.preview_transform.Response': 'transform/preview_transform/PreviewTransformResponse.ts#L22-L27', 'transform.put_transform.Request': 'transform/put_transform/PutTransformRequest.ts#L33-L122', @@ -2612,10 +2659,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/902222a6495852a7443d24b8a0bf1223b96414e6/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/94a333068d5de803bad4893bbc971574c1260d2d/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index c90a44239..2eb4ebc76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -65,7 +65,7 @@ public static DeletePolicyRequest of(Function * API name: {@code name} */ @@ -85,7 +85,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** - * Required - The name of the enrich policy + * Required - Enrich policy to delete. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java index 673e47140..183e25451 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java @@ -93,7 +93,7 @@ public final CompletableFuture deletePolicy( * Creates the enrich index for an existing enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -111,7 +111,7 @@ public CompletableFuture executePolicy(ExecutePolicyReque * a function that initializes a builder to create the * {@link ExecutePolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -172,7 +172,7 @@ public CompletableFuture getPolicy() { * Creates a new enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-enrich-policy-api.html">Documentation * on elastic.co */ @@ -190,7 +190,7 @@ public CompletableFuture putPolicy(PutPolicyRequest request) * a function that initializes a builder to create the * {@link PutPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-enrich-policy-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java index c8e871afb..012f0d683 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java @@ -94,7 +94,7 @@ public final DeletePolicyResponse deletePolicy( * Creates the enrich index for an existing enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -113,7 +113,7 @@ public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) * a function that initializes a builder to create the * {@link ExecutePolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public GetPolicyResponse getPolicy() throws IOException, ElasticsearchException * Creates a new enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-enrich-policy-api.html">Documentation * on elastic.co */ @@ -193,7 +193,7 @@ public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, * a function that initializes a builder to create the * {@link PutPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-enrich-policy-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index 08b174088..be4cfed93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -39,8 +39,8 @@ // typedef: enrich.stats.Request /** - * Gets enrich coordinator statistics and information about enrich policies that - * are currently executing. + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java index 2c8260f85..09ef900dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java @@ -73,20 +73,29 @@ public static EnrichStatsResponse of(Function + * API name: {@code coordinator_stats} */ public final List coordinatorStats() { return this.coordinatorStats; } /** - * Required - API name: {@code executing_policies} + * Required - Objects containing information about each enrich policy that is + * currently executing. + *

+ * API name: {@code executing_policies} */ public final List executingPolicies() { return this.executingPolicies; } /** + * Objects containing information about the enrich cache stats on each ingest + * node. + *

* API name: {@code cache_stats} */ public final List cacheStats() { @@ -159,7 +168,10 @@ public static class Builder extends WithJsonObjectBuilderBase private List cacheStats; /** - * Required - API name: {@code coordinator_stats} + * Required - Objects containing information about each coordinating ingest node + * for configured enrich processors. + *

+ * API name: {@code coordinator_stats} *

* Adds all elements of list to coordinatorStats. */ @@ -169,7 +181,10 @@ public final Builder coordinatorStats(List list) { } /** - * Required - API name: {@code coordinator_stats} + * Required - Objects containing information about each coordinating ingest node + * for configured enrich processors. + *

+ * API name: {@code coordinator_stats} *

* Adds one or more values to coordinatorStats. */ @@ -179,7 +194,10 @@ public final Builder coordinatorStats(CoordinatorStats value, CoordinatorStats.. } /** - * Required - API name: {@code coordinator_stats} + * Required - Objects containing information about each coordinating ingest node + * for configured enrich processors. + *

+ * API name: {@code coordinator_stats} *

* Adds a value to coordinatorStats using a builder lambda. */ @@ -188,7 +206,10 @@ public final Builder coordinatorStats(Function + * API name: {@code executing_policies} *

* Adds all elements of list to executingPolicies. */ @@ -198,7 +219,10 @@ public final Builder executingPolicies(List list) { } /** - * Required - API name: {@code executing_policies} + * Required - Objects containing information about each enrich policy that is + * currently executing. + *

+ * API name: {@code executing_policies} *

* Adds one or more values to executingPolicies. */ @@ -208,7 +232,10 @@ public final Builder executingPolicies(ExecutingPolicy value, ExecutingPolicy... } /** - * Required - API name: {@code executing_policies} + * Required - Objects containing information about each enrich policy that is + * currently executing. + *

+ * API name: {@code executing_policies} *

* Adds a value to executingPolicies using a builder lambda. */ @@ -217,6 +244,9 @@ public final Builder executingPolicies(Function * API name: {@code cache_stats} *

* Adds all elements of list to cacheStats. @@ -227,6 +257,9 @@ public final Builder cacheStats(List list) { } /** + * Objects containing information about the enrich cache stats on each ingest + * node. + *

* API name: {@code cache_stats} *

* Adds one or more values to cacheStats. @@ -237,6 +270,9 @@ public final Builder cacheStats(CacheStats value, CacheStats... values) { } /** + * Objects containing information about the enrich cache stats on each ingest + * node. + *

* API name: {@code cache_stats} *

* Adds a value to cacheStats using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index 68af2e25b..a7b970ece 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -71,7 +71,7 @@ public static ExecutePolicyRequest of(Function * API name: {@code name} */ @@ -80,7 +80,8 @@ public final String name() { } /** - * Should the request should block until the execution is complete. + * If true, the request blocks other enrich policy execution + * requests until complete. *

* API name: {@code wait_for_completion} */ @@ -104,7 +105,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean waitForCompletion; /** - * Required - The name of the enrich policy + * Required - Enrich policy to execute. *

* API name: {@code name} */ @@ -114,7 +115,8 @@ public final Builder name(String value) { } /** - * Should the request should block until the execution is complete. + * If true, the request blocks other enrich policy execution + * requests until complete. *

* API name: {@code wait_for_completion} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 7f280415c..3ea06000c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -45,7 +45,7 @@ // typedef: enrich.get_policy.Request /** - * Gets information about an enrich policy. + * Returns information about an enrich policy. * * @see API * specification @@ -67,7 +67,8 @@ public static GetPolicyRequest of(Function * API name: {@code name} */ @@ -88,7 +89,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * A comma-separated list of enrich policy names + * Comma-separated list of enrich policy names used to limit the request. To + * return information for all enrich policies, omit this parameter. *

* API name: {@code name} *

@@ -100,7 +102,8 @@ public final Builder name(List list) { } /** - * A comma-separated list of enrich policy names + * Comma-separated list of enrich policy names used to limit the request. To + * return information for all enrich policies, omit this parameter. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index 9cc941b10..bb0b9c240 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -45,7 +45,7 @@ // typedef: enrich.put_policy.Request /** - * Creates a new enrich policy. + * Creates an enrich policy. * * @see API * specification @@ -79,6 +79,9 @@ public static PutPolicyRequest of(Functiongeo_shape + * query. + *

* API name: {@code geo_match} */ @Nullable @@ -87,6 +90,8 @@ public final EnrichPolicy geoMatch() { } /** + * Matches enrich data to incoming documents based on a term query. + *

* API name: {@code match} */ @Nullable @@ -95,7 +100,7 @@ public final EnrichPolicy match() { } /** - * Required - The name of the enrich policy + * Required - Name of the enrich policy to create or update. *

* API name: {@code name} */ @@ -104,6 +109,9 @@ public final String name() { } /** + * Matches a number, date, or IP address in incoming documents to a range in the + * enrich index based on a term query. + *

* API name: {@code range} */ @Nullable @@ -161,6 +169,9 @@ public static class Builder extends RequestBase.AbstractBuilder private EnrichPolicy range; /** + * Matches enrich data to incoming documents based on a geo_shape + * query. + *

* API name: {@code geo_match} */ public final Builder geoMatch(@Nullable EnrichPolicy value) { @@ -169,6 +180,9 @@ public final Builder geoMatch(@Nullable EnrichPolicy value) { } /** + * Matches enrich data to incoming documents based on a geo_shape + * query. + *

* API name: {@code geo_match} */ public final Builder geoMatch(Function> fn) { @@ -176,6 +190,8 @@ public final Builder geoMatch(Functionterm query. + *

* API name: {@code match} */ public final Builder match(@Nullable EnrichPolicy value) { @@ -184,6 +200,8 @@ public final Builder match(@Nullable EnrichPolicy value) { } /** + * Matches enrich data to incoming documents based on a term query. + *

* API name: {@code match} */ public final Builder match(Function> fn) { @@ -191,7 +209,7 @@ public final Builder match(Function * API name: {@code name} */ @@ -201,6 +219,9 @@ public final Builder name(String value) { } /** + * Matches a number, date, or IP address in incoming documents to a range in the + * enrich index based on a term query. + *

* API name: {@code range} */ public final Builder range(@Nullable EnrichPolicy value) { @@ -209,6 +230,9 @@ public final Builder range(@Nullable EnrichPolicy value) { } /** + * Matches a number, date, or IP address in incoming documents to a range in the + * enrich index based on a term query. + *

* API name: {@code range} */ public final Builder range(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java index f36a2e8a0..8a4296d29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java @@ -96,9 +96,10 @@ public final CompletableFuture delete( * Returns async results from previously executed Event Query Language (EQL) * search * - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public CompletableFuture> get(EqlGetRequest request, Class tEventClass) { @@ -117,9 +118,10 @@ public CompletableFuture> get(EqlGetRequest requ * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public final CompletableFuture> get( @@ -131,9 +133,10 @@ public final CompletableFuture> get( * Returns async results from previously executed Event Query Language (EQL) * search * - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public CompletableFuture> get(EqlGetRequest request, Type tEventType) { @@ -152,9 +155,10 @@ public CompletableFuture> get(EqlGetRequest requ * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public final CompletableFuture> get( @@ -168,9 +172,10 @@ public final CompletableFuture> get( * Returns the status of a previously submitted async or stored Event Query * Language (EQL) search * - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-status-api.html) */ public CompletableFuture getStatus(GetEqlStatusRequest request) { @@ -187,9 +192,10 @@ public CompletableFuture getStatus(GetEqlStatusRequest req * @param fn * a function that initializes a builder to create the * {@link GetEqlStatusRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-status-api.html) */ public final CompletableFuture getStatus( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java index 265c05bac..f7a2bc15e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java @@ -97,9 +97,10 @@ public final EqlDeleteResponse delete(FunctionDocumentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public EqlGetResponse get(EqlGetRequest request, Class tEventClass) @@ -119,9 +120,10 @@ public EqlGetResponse get(EqlGetRequest request, Class * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public final EqlGetResponse get(Function> fn, @@ -133,9 +135,10 @@ public final EqlGetResponse get(FunctionDocumentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public EqlGetResponse get(EqlGetRequest request, Type tEventType) @@ -155,9 +158,10 @@ public EqlGetResponse get(EqlGetRequest request, Type tEventTyp * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-search-api.html) */ public final EqlGetResponse get(Function> fn, @@ -171,9 +175,10 @@ public final EqlGetResponse get(FunctionDocumentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-status-api.html) */ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOException, ElasticsearchException { @@ -190,9 +195,10 @@ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOExce * @param fn * a function that initializes a builder to create the * {@link GetEqlStatusRequest} - * @see Documentation - * on elastic.co + * @see [Documentation on + * elastic.co](https://www.elastic.co + * https://www.elastic.co/guide/en/elasticsearch/reference/8.10/get-async-eql-status-api.html) */ public final GetEqlStatusResponse getStatus( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java index cf1bb6004..5cefe087d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -43,8 +43,8 @@ // typedef: eql.delete.Request /** - * Deletes an async EQL search by ID. If the search is still running, the search - * request will be cancelled. Otherwise, the saved search results are deleted. + * Deletes an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @see API * specification @@ -66,7 +66,10 @@ public static EqlDeleteRequest of(Functionkeep_on_completion parameter is + * true. *

* API name: {@code id} */ @@ -86,7 +89,10 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - Identifier for the search to delete. + * Required - Identifier for the search to delete. A search ID is provided in + * the EQL search API's response for an async search. A search ID is also + * provided if the request’s keep_on_completion parameter is + * true. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java index 011214885..de08ed595 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -45,8 +45,8 @@ // typedef: eql.get.Request /** - * Returns async results from previously executed Event Query Language (EQL) - * search + * Returns the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java index 21ed86b55..da61bcb45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java @@ -43,8 +43,8 @@ // typedef: eql.get_status.Request /** - * Returns the status of a previously submitted async or stored Event Query - * Language (EQL) search + * Returns the current status for an async EQL search or a stored synchronous + * EQL search without returning results. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index e517d5a44..5d5d05d24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java @@ -61,7 +61,7 @@ public ElasticsearchGraphAsyncClient withTransportOptions(@Nullable TransportOpt * an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/graph-explore-api.html">Documentation * on elastic.co */ @@ -80,7 +80,7 @@ public CompletableFuture explore(ExploreRequest request) { * a function that initializes a builder to create the * {@link ExploreRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/graph-explore-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java index 8f4c8b9f1..07d0868cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java @@ -61,7 +61,7 @@ public ElasticsearchGraphClient withTransportOptions(@Nullable TransportOptions * an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/graph-explore-api.html">Documentation * on elastic.co */ @@ -80,7 +80,7 @@ public ExploreResponse explore(ExploreRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link ExploreRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/graph-explore-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java index 085b0753c..771eae23b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java @@ -77,6 +77,11 @@ public static ExploreControls of(Function * API name: {@code sample_diversity} */ @Nullable @@ -85,6 +90,13 @@ public final SampleDiversity sampleDiversity() { } /** + * Each hop considers a sample of the best-matching documents on each shard. + * Using samples improves the speed of execution and keeps exploration focused + * on meaningfully-connected terms. Very small values (less than 50) might not + * provide sufficient weight-of-evidence to identify significant connections + * between terms. Very large sample sizes can dilute the quality of the results + * and increase execution times. + *

* API name: {@code sample_size} */ @Nullable @@ -93,6 +105,11 @@ public final Integer sampleSize() { } /** + * The length of time in milliseconds after which exploration will be halted and + * the results gathered so far are returned. This timeout is honored on a + * best-effort basis. Execution might overrun this timeout if, for example, a + * long pause is encountered while FieldData is loaded for a field. + *

* API name: {@code timeout} */ @Nullable @@ -101,7 +118,10 @@ public final Time timeout() { } /** - * Required - API name: {@code use_significance} + * Required - Filters associated terms so only those that are significantly + * associated with your query are included. + *

+ * API name: {@code use_significance} */ public final boolean useSignificance() { return this.useSignificance; @@ -162,6 +182,11 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean useSignificance; /** + * To avoid the top-matching documents sample being dominated by a single source + * of results, it is sometimes necessary to request diversity in the sample. You + * can do this by selecting a single-value field and setting a maximum number of + * documents per value for that field. + *

* API name: {@code sample_diversity} */ public final Builder sampleDiversity(@Nullable SampleDiversity value) { @@ -170,6 +195,11 @@ public final Builder sampleDiversity(@Nullable SampleDiversity value) { } /** + * To avoid the top-matching documents sample being dominated by a single source + * of results, it is sometimes necessary to request diversity in the sample. You + * can do this by selecting a single-value field and setting a maximum number of + * documents per value for that field. + *

* API name: {@code sample_diversity} */ public final Builder sampleDiversity(Function> fn) { @@ -177,6 +207,13 @@ public final Builder sampleDiversity(Function * API name: {@code sample_size} */ public final Builder sampleSize(@Nullable Integer value) { @@ -185,6 +222,11 @@ public final Builder sampleSize(@Nullable Integer value) { } /** + * The length of time in milliseconds after which exploration will be halted and + * the results gathered so far are returned. This timeout is honored on a + * best-effort basis. Execution might overrun this timeout if, for example, a + * long pause is encountered while FieldData is loaded for a field. + *

* API name: {@code timeout} */ public final Builder timeout(@Nullable Time value) { @@ -193,6 +235,11 @@ public final Builder timeout(@Nullable Time value) { } /** + * The length of time in milliseconds after which exploration will be halted and + * the results gathered so far are returned. This timeout is honored on a + * best-effort basis. Execution might overrun this timeout if, for example, a + * long pause is encountered while FieldData is loaded for a field. + *

* API name: {@code timeout} */ public final Builder timeout(Function> fn) { @@ -200,7 +247,10 @@ public final Builder timeout(Function> fn) { } /** - * Required - API name: {@code use_significance} + * Required - Filters associated terms so only those that are significantly + * associated with your query are included. + *

+ * API name: {@code use_significance} */ public final Builder useSignificance(boolean value) { this.useSignificance = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index c10e1cc94..7daaed745 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -50,8 +50,8 @@ // typedef: graph.explore.Request /** - * Explore extracted and summarized information about the documents and terms in - * an index. + * Extracts and summarizes information about the documents and terms in an + * Elasticsearch data stream or index. * * @see API * specification @@ -96,6 +96,9 @@ public static ExploreRequest of(Function> } /** + * Specifies or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ @Nullable @@ -104,6 +107,8 @@ public final Hop connections() { } /** + * Direct the Graph API how to build the graph. + *

* API name: {@code controls} */ @Nullable @@ -112,8 +117,7 @@ public final ExploreControls controls() { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Name of the index. *

* API name: {@code index} */ @@ -122,6 +126,9 @@ public final List index() { } /** + * A seed query that identifies the documents of interest. Can be any valid + * Elasticsearch query. + *

* API name: {@code query} */ @Nullable @@ -130,7 +137,7 @@ public final Query query() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -140,7 +147,9 @@ public final String routing() { } /** - * Explicit operation timeout + * Specifies the period of time to wait for a response from each shard. If no + * response is received before the timeout expires, the request fails and + * returns an error. Defaults to no timeout. *

* API name: {@code timeout} */ @@ -150,6 +159,9 @@ public final Time timeout() { } /** + * Specifies one or more fields that contain the terms you want to include in + * the graph as vertices. + *

* API name: {@code vertices} */ public final List vertices() { @@ -223,6 +235,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List vertices; /** + * Specifies or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ public final Builder connections(@Nullable Hop value) { @@ -231,6 +246,9 @@ public final Builder connections(@Nullable Hop value) { } /** + * Specifies or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ public final Builder connections(Function> fn) { @@ -238,6 +256,8 @@ public final Builder connections(Function> fn) { } /** + * Direct the Graph API how to build the graph. + *

* API name: {@code controls} */ public final Builder controls(@Nullable ExploreControls value) { @@ -246,6 +266,8 @@ public final Builder controls(@Nullable ExploreControls value) { } /** + * Direct the Graph API how to build the graph. + *

* API name: {@code controls} */ public final Builder controls(Function> fn) { @@ -253,8 +275,7 @@ public final Builder controls(Function_all or empty string to perform the operation on all indices + * Required - Name of the index. *

* API name: {@code index} *

@@ -266,8 +287,7 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Name of the index. *

* API name: {@code index} *

@@ -279,6 +299,9 @@ public final Builder index(String value, String... values) { } /** + * A seed query that identifies the documents of interest. Can be any valid + * Elasticsearch query. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -287,6 +310,9 @@ public final Builder query(@Nullable Query value) { } /** + * A seed query that identifies the documents of interest. Can be any valid + * Elasticsearch query. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -294,7 +320,7 @@ public final Builder query(Function> fn) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -304,7 +330,9 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Specifies the period of time to wait for a response from each shard. If no + * response is received before the timeout expires, the request fails and + * returns an error. Defaults to no timeout. *

* API name: {@code timeout} */ @@ -314,7 +342,9 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Specifies the period of time to wait for a response from each shard. If no + * response is received before the timeout expires, the request fails and + * returns an error. Defaults to no timeout. *

* API name: {@code timeout} */ @@ -323,6 +353,9 @@ public final Builder timeout(Function> fn) { } /** + * Specifies one or more fields that contain the terms you want to include in + * the graph as vertices. + *

* API name: {@code vertices} *

* Adds all elements of list to vertices. @@ -333,6 +366,9 @@ public final Builder vertices(List list) { } /** + * Specifies one or more fields that contain the terms you want to include in + * the graph as vertices. + *

* API name: {@code vertices} *

* Adds one or more values to vertices. @@ -343,6 +379,9 @@ public final Builder vertices(VertexDefinition value, VertexDefinition... values } /** + * Specifies one or more fields that contain the terms you want to include in + * the graph as vertices. + *

* API name: {@code vertices} *

* Adds a value to vertices using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java index fbd2c0d12..8bd2128df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java @@ -71,6 +71,9 @@ public static Hop of(Function> fn) { } /** + * Specifies one or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ @Nullable @@ -79,14 +82,19 @@ public final Hop connections() { } /** - * Required - API name: {@code query} + * Required - An optional guiding query that constrains the Graph API as it + * explores connected terms. + *

+ * API name: {@code query} */ public final Query query() { return this.query; } /** - * Required - API name: {@code vertices} + * Required - Contains the fields you are interested in. + *

+ * API name: {@code vertices} */ public final List vertices() { return this.vertices; @@ -144,6 +152,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List vertices; /** + * Specifies one or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ public final Builder connections(@Nullable Hop value) { @@ -152,6 +163,9 @@ public final Builder connections(@Nullable Hop value) { } /** + * Specifies one or more fields from which you want to extract terms that are + * associated with the specified vertices. + *

* API name: {@code connections} */ public final Builder connections(Function> fn) { @@ -159,7 +173,10 @@ public final Builder connections(Function> fn) { } /** - * Required - API name: {@code query} + * Required - An optional guiding query that constrains the Graph API as it + * explores connected terms. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -167,14 +184,19 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - An optional guiding query that constrains the Graph API as it + * explores connected terms. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } /** - * Required - API name: {@code vertices} + * Required - Contains the fields you are interested in. + *

+ * API name: {@code vertices} *

* Adds all elements of list to vertices. */ @@ -184,7 +206,9 @@ public final Builder vertices(List list) { } /** - * Required - API name: {@code vertices} + * Required - Contains the fields you are interested in. + *

+ * API name: {@code vertices} *

* Adds one or more values to vertices. */ @@ -194,7 +218,9 @@ public final Builder vertices(VertexDefinition value, VertexDefinition... values } /** - * Required - API name: {@code vertices} + * Required - Contains the fields you are interested in. + *

+ * API name: {@code vertices} *

* Adds a value to vertices using a builder lambda. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java index e9d6943c8..ccc9ac717 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java @@ -84,6 +84,8 @@ public static VertexDefinition of(Function * API name: {@code exclude} */ public final List exclude() { @@ -91,13 +93,18 @@ public final List exclude() { } /** - * Required - API name: {@code field} + * Required - Identifies a field in the documents of interest. + *

+ * API name: {@code field} */ public final String field() { return this.field; } /** + * Identifies the terms of interest that form the starting points from which you + * want to spider out. + *

* API name: {@code include} */ public final List include() { @@ -105,6 +112,10 @@ public final List include() { } /** + * Specifies how many documents must contain a pair of terms before it is + * considered to be a useful connection. This setting acts as a certainty + * threshold. + *

* API name: {@code min_doc_count} */ @Nullable @@ -113,6 +124,9 @@ public final Long minDocCount() { } /** + * Controls how many documents on a particular shard have to contain a pair of + * terms before the connection is returned for global consideration. + *

* API name: {@code shard_min_doc_count} */ @Nullable @@ -121,6 +135,8 @@ public final Long shardMinDocCount() { } /** + * Specifies the maximum number of vertex terms returned for each field. + *

* API name: {@code size} */ @Nullable @@ -210,6 +226,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer size; /** + * Prevents the specified terms from being included in the results. + *

* API name: {@code exclude} *

* Adds all elements of list to exclude. @@ -220,6 +238,8 @@ public final Builder exclude(List list) { } /** + * Prevents the specified terms from being included in the results. + *

* API name: {@code exclude} *

* Adds one or more values to exclude. @@ -230,7 +250,9 @@ public final Builder exclude(String value, String... values) { } /** - * Required - API name: {@code field} + * Required - Identifies a field in the documents of interest. + *

+ * API name: {@code field} */ public final Builder field(String value) { this.field = value; @@ -238,6 +260,9 @@ public final Builder field(String value) { } /** + * Identifies the terms of interest that form the starting points from which you + * want to spider out. + *

* API name: {@code include} *

* Adds all elements of list to include. @@ -248,6 +273,9 @@ public final Builder include(List list) { } /** + * Identifies the terms of interest that form the starting points from which you + * want to spider out. + *

* API name: {@code include} *

* Adds one or more values to include. @@ -258,6 +286,9 @@ public final Builder include(VertexInclude value, VertexInclude... values) { } /** + * Identifies the terms of interest that form the starting points from which you + * want to spider out. + *

* API name: {@code include} *

* Adds a value to include using a builder lambda. @@ -267,6 +298,10 @@ public final Builder include(Function * API name: {@code min_doc_count} */ public final Builder minDocCount(@Nullable Long value) { @@ -275,6 +310,9 @@ public final Builder minDocCount(@Nullable Long value) { } /** + * Controls how many documents on a particular shard have to contain a pair of + * terms before the connection is returned for global consideration. + *

* API name: {@code shard_min_doc_count} */ public final Builder shardMinDocCount(@Nullable Long value) { @@ -283,6 +321,8 @@ public final Builder shardMinDocCount(@Nullable Long value) { } /** + * Specifies the maximum number of vertex terms returned for each field. + *

* API name: {@code size} */ public final Builder size(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java index ee26c4328..ea3cc1caf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java @@ -85,6 +85,8 @@ public static Alias of(Function> fn) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ @Nullable @@ -93,6 +95,9 @@ public final Query filter() { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. + *

* API name: {@code index_routing} */ @Nullable @@ -101,6 +106,9 @@ public final String indexRouting() { } /** + * If true, the alias is hidden. All indices for the alias must + * have the same is_hidden value. + *

* API name: {@code is_hidden} */ @Nullable @@ -109,6 +117,8 @@ public final Boolean isHidden() { } /** + * If true, the index is the write index for the alias. + *

* API name: {@code is_write_index} */ @Nullable @@ -117,6 +127,8 @@ public final Boolean isWriteIndex() { } /** + * Value used to route indexing and search operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -125,6 +137,9 @@ public final String routing() { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. + *

* API name: {@code search_routing} */ @Nullable @@ -207,6 +222,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String searchRouting; /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Query value) { @@ -215,6 +232,8 @@ public final Builder filter(@Nullable Query value) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -222,6 +241,9 @@ public final Builder filter(Function> fn) { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. + *

* API name: {@code index_routing} */ public final Builder indexRouting(@Nullable String value) { @@ -230,6 +252,9 @@ public final Builder indexRouting(@Nullable String value) { } /** + * If true, the alias is hidden. All indices for the alias must + * have the same is_hidden value. + *

* API name: {@code is_hidden} */ public final Builder isHidden(@Nullable Boolean value) { @@ -238,6 +263,8 @@ public final Builder isHidden(@Nullable Boolean value) { } /** + * If true, the index is the write index for the alias. + *

* API name: {@code is_write_index} */ public final Builder isWriteIndex(@Nullable Boolean value) { @@ -246,6 +273,8 @@ public final Builder isWriteIndex(@Nullable Boolean value) { } /** + * Value used to route indexing and search operations to a specific shard. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -254,6 +283,9 @@ public final Builder routing(@Nullable String value) { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. + *

* API name: {@code search_routing} */ public final Builder searchRouting(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java index 5c14d250e..619b808d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java @@ -85,6 +85,8 @@ public static AliasDefinition of(Function * API name: {@code filter} */ @Nullable @@ -93,6 +95,9 @@ public final Query filter() { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. + *

* API name: {@code index_routing} */ @Nullable @@ -101,6 +106,8 @@ public final String indexRouting() { } /** + * If true, the index is the write index for the alias. + *

* API name: {@code is_write_index} */ @Nullable @@ -109,6 +116,8 @@ public final Boolean isWriteIndex() { } /** + * Value used to route indexing and search operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -117,6 +126,9 @@ public final String routing() { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. + *

* API name: {@code search_routing} */ @Nullable @@ -125,6 +137,9 @@ public final String searchRouting() { } /** + * If true, the alias is hidden. All indices for the alias must + * have the same is_hidden value. + *

* API name: {@code is_hidden} */ @Nullable @@ -207,6 +222,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean isHidden; /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Query value) { @@ -215,6 +232,8 @@ public final Builder filter(@Nullable Query value) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -222,6 +241,9 @@ public final Builder filter(Function> fn) { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. + *

* API name: {@code index_routing} */ public final Builder indexRouting(@Nullable String value) { @@ -230,6 +252,8 @@ public final Builder indexRouting(@Nullable String value) { } /** + * If true, the index is the write index for the alias. + *

* API name: {@code is_write_index} */ public final Builder isWriteIndex(@Nullable Boolean value) { @@ -238,6 +262,8 @@ public final Builder isWriteIndex(@Nullable Boolean value) { } /** + * Value used to route indexing and search operations to a specific shard. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -246,6 +272,9 @@ public final Builder routing(@Nullable String value) { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. + *

* API name: {@code search_routing} */ public final Builder searchRouting(@Nullable String value) { @@ -254,6 +283,9 @@ public final Builder searchRouting(@Nullable String value) { } /** + * If true, the alias is hidden. All indices for the alias must + * have the same is_hidden value. + *

* API name: {@code is_hidden} */ public final Builder isHidden(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index 8e43c4d93..37f94c937 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -50,8 +50,7 @@ // typedef: indices.analyze.Request /** - * Performs the analysis process on a text and return the tokens breakdown of - * the text. + * Performs analysis on a text string and returns the resulting tokens. * * @see API * specification @@ -106,6 +105,10 @@ public static AnalyzeRequest of(Function> } /** + * The name of the analyzer that should be applied to the provided + * text. This could be a built-in analyzer, or an analyzer that’s + * been configured in the index. + *

* API name: {@code analyzer} */ @Nullable @@ -114,6 +117,9 @@ public final String analyzer() { } /** + * Array of token attributes used to filter the output of the + * explain parameter. + *

* API name: {@code attributes} */ public final List attributes() { @@ -121,6 +127,9 @@ public final List attributes() { } /** + * Array of character filters used to preprocess characters before the + * tokenizer. + *

* API name: {@code char_filter} */ public final List charFilter() { @@ -128,6 +137,9 @@ public final List charFilter() { } /** + * If true, the response includes token attributes and additional + * details. + *

* API name: {@code explain} */ @Nullable @@ -136,6 +148,10 @@ public final Boolean explain() { } /** + * Field used to derive the analyzer. To use this parameter, you must specify an + * index. If specified, the analyzer parameter overrides this + * value. + *

* API name: {@code field} */ @Nullable @@ -144,6 +160,8 @@ public final String field() { } /** + * Array of token filters used to apply after the tokenizer. + *

* API name: {@code filter} */ public final List filter() { @@ -151,7 +169,9 @@ public final List filter() { } /** - * The name of the index to scope the operation + * Index used to derive the analyzer. If specified, the analyzer or + * field parameter overrides this value. If no index is specified or the index + * does not have a default analyzer, the analyze API uses the standard analyzer. *

* API name: {@code index} */ @@ -161,6 +181,8 @@ public final String index() { } /** + * Normalizer to use to convert text into a single token. + *

* API name: {@code normalizer} */ @Nullable @@ -169,6 +191,9 @@ public final String normalizer() { } /** + * Text to analyze. If an array of strings is provided, it is analyzed as a + * multi-value field. + *

* API name: {@code text} */ public final List text() { @@ -176,6 +201,8 @@ public final List text() { } /** + * Tokenizer to use to convert text into tokens. + *

* API name: {@code tokenizer} */ @Nullable @@ -300,6 +327,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Tokenizer tokenizer; /** + * The name of the analyzer that should be applied to the provided + * text. This could be a built-in analyzer, or an analyzer that’s + * been configured in the index. + *

* API name: {@code analyzer} */ public final Builder analyzer(@Nullable String value) { @@ -308,6 +339,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * Array of token attributes used to filter the output of the + * explain parameter. + *

* API name: {@code attributes} *

* Adds all elements of list to attributes. @@ -318,6 +352,9 @@ public final Builder attributes(List list) { } /** + * Array of token attributes used to filter the output of the + * explain parameter. + *

* API name: {@code attributes} *

* Adds one or more values to attributes. @@ -328,6 +365,9 @@ public final Builder attributes(String value, String... values) { } /** + * Array of character filters used to preprocess characters before the + * tokenizer. + *

* API name: {@code char_filter} *

* Adds all elements of list to charFilter. @@ -338,6 +378,9 @@ public final Builder charFilter(List list) { } /** + * Array of character filters used to preprocess characters before the + * tokenizer. + *

* API name: {@code char_filter} *

* Adds one or more values to charFilter. @@ -348,6 +391,9 @@ public final Builder charFilter(CharFilter value, CharFilter... values) { } /** + * Array of character filters used to preprocess characters before the + * tokenizer. + *

* API name: {@code char_filter} *

* Adds a value to charFilter using a builder lambda. @@ -357,6 +403,9 @@ public final Builder charFilter(Functiontrue, the response includes token attributes and additional + * details. + *

* API name: {@code explain} */ public final Builder explain(@Nullable Boolean value) { @@ -365,6 +414,10 @@ public final Builder explain(@Nullable Boolean value) { } /** + * Field used to derive the analyzer. To use this parameter, you must specify an + * index. If specified, the analyzer parameter overrides this + * value. + *

* API name: {@code field} */ public final Builder field(@Nullable String value) { @@ -373,6 +426,8 @@ public final Builder field(@Nullable String value) { } /** + * Array of token filters used to apply after the tokenizer. + *

* API name: {@code filter} *

* Adds all elements of list to filter. @@ -383,6 +438,8 @@ public final Builder filter(List list) { } /** + * Array of token filters used to apply after the tokenizer. + *

* API name: {@code filter} *

* Adds one or more values to filter. @@ -393,6 +450,8 @@ public final Builder filter(TokenFilter value, TokenFilter... values) { } /** + * Array of token filters used to apply after the tokenizer. + *

* API name: {@code filter} *

* Adds a value to filter using a builder lambda. @@ -402,7 +461,9 @@ public final Builder filter(Functionanalyzer or + * field parameter overrides this value. If no index is specified or the index + * does not have a default analyzer, the analyze API uses the standard analyzer. *

* API name: {@code index} */ @@ -412,6 +473,8 @@ public final Builder index(@Nullable String value) { } /** + * Normalizer to use to convert text into a single token. + *

* API name: {@code normalizer} */ public final Builder normalizer(@Nullable String value) { @@ -420,6 +483,9 @@ public final Builder normalizer(@Nullable String value) { } /** + * Text to analyze. If an array of strings is provided, it is analyzed as a + * multi-value field. + *

* API name: {@code text} *

* Adds all elements of list to text. @@ -430,6 +496,9 @@ public final Builder text(List list) { } /** + * Text to analyze. If an array of strings is provided, it is analyzed as a + * multi-value field. + *

* API name: {@code text} *

* Adds one or more values to text. @@ -440,6 +509,8 @@ public final Builder text(String value, String... values) { } /** + * Tokenizer to use to convert text into tokens. + *

* API name: {@code tokenizer} */ public final Builder tokenizer(@Nullable Tokenizer value) { @@ -448,6 +519,8 @@ public final Builder tokenizer(@Nullable Tokenizer value) { } /** + * Tokenizer to use to convert text into tokens. + *

* API name: {@code tokenizer} */ public final Builder tokenizer(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java index fa7da49a2..a576085c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java @@ -48,7 +48,8 @@ // typedef: indices.clear_cache.Request /** - * Clears all or specific caches for one or more indices. + * Clears the caches of one or more indices. For data streams, the API clears + * the caches of the stream’s backing indices. * * @see API * specification @@ -96,9 +97,10 @@ public static ClearCacheRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -108,8 +110,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -118,7 +124,8 @@ public final List expandWildcards() { } /** - * Clear field data + * If true, clears the fields cache. Use the fields + * parameter to clear the cache of specific fields only. *

* API name: {@code fielddata} */ @@ -128,8 +135,8 @@ public final Boolean fielddata() { } /** - * A comma-separated list of fields to clear when using the - * fielddata parameter (default: all) + * Comma-separated list of field names used to limit the fielddata + * parameter. *

* API name: {@code fields} */ @@ -138,8 +145,8 @@ public final List fields() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -149,7 +156,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index name to limit the operation + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -158,7 +167,7 @@ public final List index() { } /** - * Clear query caches + * If true, clears the query cache. *

* API name: {@code query} */ @@ -168,7 +177,7 @@ public final Boolean query() { } /** - * Clear request cache + * If true, clears the request cache. *

* API name: {@code request} */ @@ -211,9 +220,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean request; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -223,8 +233,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -236,8 +250,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -249,7 +267,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Clear field data + * If true, clears the fields cache. Use the fields + * parameter to clear the cache of specific fields only. *

* API name: {@code fielddata} */ @@ -259,8 +278,8 @@ public final Builder fielddata(@Nullable Boolean value) { } /** - * A comma-separated list of fields to clear when using the - * fielddata parameter (default: all) + * Comma-separated list of field names used to limit the fielddata + * parameter. *

* API name: {@code fields} *

@@ -272,8 +291,8 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to clear when using the - * fielddata parameter (default: all) + * Comma-separated list of field names used to limit the fielddata + * parameter. *

* API name: {@code fields} *

@@ -285,8 +304,8 @@ public final Builder fields(String value, String... values) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -296,7 +315,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index name to limit the operation + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -308,7 +329,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index name to limit the operation + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -320,7 +343,7 @@ public final Builder index(String value, String... values) { } /** - * Clear query caches + * If true, clears the query cache. *

* API name: {@code query} */ @@ -330,7 +353,7 @@ public final Builder query(@Nullable Boolean value) { } /** - * Clear request cache + * If true, clears the request cache. *

* API name: {@code request} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java index 66a57c034..e1807ec49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java @@ -49,7 +49,7 @@ // typedef: indices.clone.Request /** - * Clones an index + * Clones an existing index. * * @see API * specification @@ -92,6 +92,8 @@ public static CloneIndexRequest of(Function * API name: {@code aliases} */ public final Map aliases() { @@ -99,7 +101,7 @@ public final Map aliases() { } /** - * Required - The name of the source index to clone + * Required - Name of the source index to clone. *

* API name: {@code index} */ @@ -108,7 +110,8 @@ public final String index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -118,6 +121,8 @@ public final Time masterTimeout() { } /** + * Configuration options for the target index. + *

* API name: {@code settings} */ public final Map settings() { @@ -125,7 +130,7 @@ public final Map settings() { } /** - * Required - The name of the target index to clone into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -134,7 +139,8 @@ public final String target() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -144,8 +150,9 @@ public final Time timeout() { } /** - * Set the number of active shards to wait for on the cloned index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -219,6 +226,8 @@ public static class Builder extends RequestBase.AbstractBuilder private WaitForActiveShards waitForActiveShards; /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -229,6 +238,8 @@ public final Builder aliases(Map map) { } /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -239,6 +250,8 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -248,7 +261,7 @@ public final Builder aliases(String key, Function * API name: {@code index} */ @@ -258,7 +271,8 @@ public final Builder index(String value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -268,7 +282,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -277,6 +292,8 @@ public final Builder masterTimeout(Function> f } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds all entries of map to settings. @@ -287,6 +304,8 @@ public final Builder settings(Map map) { } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds an entry to settings. @@ -297,7 +316,7 @@ public final Builder settings(String key, JsonData value) { } /** - * Required - The name of the target index to clone into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -307,7 +326,8 @@ public final Builder target(String value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -317,7 +337,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -326,8 +347,9 @@ public final Builder timeout(Function> fn) { } /** - * Set the number of active shards to wait for on the cloned index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -337,8 +359,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Set the number of active shards to wait for on the cloned index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java index 87dce4606..835de37f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java @@ -95,9 +95,10 @@ public static CloseIndexRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -107,8 +108,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -117,8 +122,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -128,7 +133,8 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma separated list of indices to close + * Required - Comma-separated list or wildcard expression of index names used to + * limit the request. *

* API name: {@code index} */ @@ -137,7 +143,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -147,7 +154,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -157,7 +165,9 @@ public final Time timeout() { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -196,9 +206,10 @@ public static class Builder extends RequestBase.AbstractBuilder private WaitForActiveShards waitForActiveShards; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -208,8 +219,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -221,8 +236,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -234,8 +253,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -245,7 +264,8 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma separated list of indices to close + * Required - Comma-separated list or wildcard expression of index names used to + * limit the request. *

* API name: {@code index} *

@@ -257,7 +277,8 @@ public final Builder index(List list) { } /** - * Required - A comma separated list of indices to close + * Required - Comma-separated list or wildcard expression of index names used to + * limit the request. *

* API name: {@code index} *

@@ -269,7 +290,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -279,7 +301,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -288,7 +311,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -298,7 +322,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -307,7 +332,9 @@ public final Builder timeout(Function> fn) { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -317,7 +344,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java index 7a4eea8cc..42f1c7832 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java @@ -43,7 +43,8 @@ // typedef: indices.create_data_stream.Request /** - * Creates a data stream + * Creates a data stream. You must have a matching index template with data + * stream enabled. * * @see API @@ -66,7 +67,14 @@ public static CreateDataStreamRequest of(Function\, /, + * *, ?, ", <, + * >, |, ,, #, + * :, or a space character; Cannot start with -, + * _, +, or .ds-; Cannot be + * . or ..; Cannot be longer than 255 bytes. + * Multi-byte characters count towards this limit faster. *

* API name: {@code name} */ @@ -86,7 +94,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** - * Required - The name of the data stream + * Required - Name of the data stream, which must meet the following criteria: + * Lowercase only; Cannot include \, /, + * *, ?, ", <, + * >, |, ,, #, + * :, or a space character; Cannot start with -, + * _, +, or .ds-; Cannot be + * . or ..; Cannot be longer than 255 bytes. + * Multi-byte characters count towards this limit faster. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index b05293e3d..ed3fcc3da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -49,7 +49,7 @@ // typedef: indices.create.Request /** - * Creates an index with optional settings and mappings. + * Creates a new index. * * @see API * specification @@ -94,6 +94,8 @@ public static CreateIndexRequest of(Function * API name: {@code aliases} */ public final Map aliases() { @@ -101,7 +103,7 @@ public final Map aliases() { } /** - * Required - The name of the index + * Required - Name of the index you wish to create. *

* API name: {@code index} */ @@ -125,7 +127,8 @@ public final TypeMapping mappings() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -135,6 +138,8 @@ public final Time masterTimeout() { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ @Nullable @@ -143,7 +148,8 @@ public final IndexSettings settings() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -153,7 +159,9 @@ public final Time timeout() { } /** - * Set the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -227,6 +235,8 @@ public static class Builder extends RequestBase.AbstractBuilder private WaitForActiveShards waitForActiveShards; /** + * Aliases for the index. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -237,6 +247,8 @@ public final Builder aliases(Map map) { } /** + * Aliases for the index. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -247,6 +259,8 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases for the index. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -256,7 +270,7 @@ public final Builder aliases(String key, Function * API name: {@code index} */ @@ -295,7 +309,8 @@ public final Builder mappings(Function * API name: {@code master_timeout} */ @@ -305,7 +320,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -314,6 +330,8 @@ public final Builder masterTimeout(Function> f } /** + * Configuration options for the index. + *

* API name: {@code settings} */ public final Builder settings(@Nullable IndexSettings value) { @@ -322,6 +340,8 @@ public final Builder settings(@Nullable IndexSettings value) { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ public final Builder settings(Function> fn) { @@ -329,7 +349,8 @@ public final Builder settings(Function * API name: {@code timeout} */ @@ -339,7 +360,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -348,7 +370,9 @@ public final Builder timeout(Function> fn) { } /** - * Set the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -358,7 +382,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Set the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java index 10ccd378c..b7ada17fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java @@ -70,6 +70,11 @@ public static DataLifecycleWithRollover of(Function * API name: {@code data_retention} */ @Nullable @@ -78,6 +83,13 @@ public final Time dataRetention() { } /** + * The conditions which will trigger the rollover of a backing index as + * configured by the cluster setting + * cluster.lifecycle.default.rollover. This property is an + * implementation detail and it will only be retrieved when the query param + * include_defaults is set to true. The contents of this field are + * subject to change. + *

* API name: {@code rollover} */ @Nullable @@ -130,6 +142,11 @@ public static class Builder extends WithJsonObjectBuilderBase private DlmRolloverConditions rollover; /** + * If defined, every document added to this data stream will be stored at least + * for this time frame. Any time after this duration the document could be + * deleted. When empty, every document in this data stream will be stored + * indefinitely. + *

* API name: {@code data_retention} */ public final Builder dataRetention(@Nullable Time value) { @@ -138,6 +155,11 @@ public final Builder dataRetention(@Nullable Time value) { } /** + * If defined, every document added to this data stream will be stored at least + * for this time frame. Any time after this duration the document could be + * deleted. When empty, every document in this data stream will be stored + * indefinitely. + *

* API name: {@code data_retention} */ public final Builder dataRetention(Function> fn) { @@ -145,6 +167,13 @@ public final Builder dataRetention(Function> f } /** + * The conditions which will trigger the rollover of a backing index as + * configured by the cluster setting + * cluster.lifecycle.default.rollover. This property is an + * implementation detail and it will only be retrieved when the query param + * include_defaults is set to true. The contents of this field are + * subject to change. + *

* API name: {@code rollover} */ public final Builder rollover(@Nullable DlmRolloverConditions value) { @@ -153,6 +182,13 @@ public final Builder rollover(@Nullable DlmRolloverConditions value) { } /** + * The conditions which will trigger the rollover of a backing index as + * configured by the cluster setting + * cluster.lifecycle.default.rollover. This property is an + * implementation detail and it will only be retrieved when the query param + * include_defaults is set to true. The contents of this field are + * subject to change. + *

* API name: {@code rollover} */ public final Builder rollover( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index 5e75bcf18..d763da929 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -54,54 +54,54 @@ */ @JsonpDeserializable public class DataStream implements JsonpSerializable { - private final String name; - - private final DataStreamTimestampField timestampField; + private final Map meta; - private final List indices; + @Nullable + private final Boolean allowCustomRouting; private final int generation; - private final String template; - private final boolean hidden; @Nullable - private final Boolean replicated; + private final String ilmPolicy; + + private final List indices; @Nullable - private final Boolean system; + private final DataLifecycleWithRollover lifecycle; - private final HealthStatus status; + private final String name; @Nullable - private final String ilmPolicy; + private final Boolean replicated; - private final Map meta; + private final HealthStatus status; @Nullable - private final Boolean allowCustomRouting; + private final Boolean system; - @Nullable - private final DataLifecycleWithRollover lifecycle; + private final String template; + + private final DataStreamTimestampField timestampField; // --------------------------------------------------------------------------------------------- private DataStream(Builder builder) { - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.timestampField = ApiTypeHelper.requireNonNull(builder.timestampField, this, "timestampField"); - this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); + this.meta = ApiTypeHelper.unmodifiable(builder.meta); + this.allowCustomRouting = builder.allowCustomRouting; this.generation = ApiTypeHelper.requireNonNull(builder.generation, this, "generation"); - this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); this.hidden = ApiTypeHelper.requireNonNull(builder.hidden, this, "hidden"); - this.replicated = builder.replicated; - this.system = builder.system; - this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); this.ilmPolicy = builder.ilmPolicy; - this.meta = ApiTypeHelper.unmodifiable(builder.meta); - this.allowCustomRouting = builder.allowCustomRouting; + this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); this.lifecycle = builder.lifecycle; + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.replicated = builder.replicated; + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.system = builder.system; + this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); + this.timestampField = ApiTypeHelper.requireNonNull(builder.timestampField, this, "timestampField"); } @@ -110,99 +110,144 @@ public static DataStream of(Function> fn) { } /** - * Required - API name: {@code name} - */ - public final String name() { - return this.name; - } - - /** - * Required - API name: {@code timestamp_field} + * Custom metadata for the stream, copied from the _meta object of + * the stream’s matching index template. If empty, the response omits this + * property. + *

+ * API name: {@code _meta} */ - public final DataStreamTimestampField timestampField() { - return this.timestampField; + public final Map meta() { + return this.meta; } /** - * Required - API name: {@code indices} + * If true, the data stream allows custom routing on write request. + *

+ * API name: {@code allow_custom_routing} */ - public final List indices() { - return this.indices; + @Nullable + public final Boolean allowCustomRouting() { + return this.allowCustomRouting; } /** - * Required - API name: {@code generation} + * Required - Current generation for the data stream. This number acts as a + * cumulative count of the stream’s rollovers, starting at 1. + *

+ * API name: {@code generation} */ public final int generation() { return this.generation; } /** - * Required - API name: {@code template} + * Required - If true, the data stream is hidden. + *

+ * API name: {@code hidden} */ - public final String template() { - return this.template; + public final boolean hidden() { + return this.hidden; } /** - * Required - API name: {@code hidden} + * Name of the current ILM lifecycle policy in the stream’s matching index + * template. This lifecycle policy is set in the + * index.lifecycle.name setting. If the template does not include a + * lifecycle policy, this property is not included in the response. NOTE: A data + * stream’s backing indices may be assigned different lifecycle policies. To + * retrieve the lifecycle policy for individual backing indices, use the get + * index settings API. + *

+ * API name: {@code ilm_policy} */ - public final boolean hidden() { - return this.hidden; + @Nullable + public final String ilmPolicy() { + return this.ilmPolicy; } /** - * API name: {@code replicated} + * Required - Array of objects containing information about the data stream’s + * backing indices. The last item in this array contains information about the + * stream’s current write index. + *

+ * API name: {@code indices} */ - @Nullable - public final Boolean replicated() { - return this.replicated; + public final List indices() { + return this.indices; } /** - * API name: {@code system} + * Contains the configuration for the data lifecycle management of this data + * stream. + *

+ * API name: {@code lifecycle} */ @Nullable - public final Boolean system() { - return this.system; + public final DataLifecycleWithRollover lifecycle() { + return this.lifecycle; } /** - * Required - API name: {@code status} + * Required - Name of the data stream. + *

+ * API name: {@code name} */ - public final HealthStatus status() { - return this.status; + public final String name() { + return this.name; } /** - * API name: {@code ilm_policy} + * If true, the data stream is created and managed by cross-cluster + * replication and the local cluster can not write into this data stream or + * change its mappings. + *

+ * API name: {@code replicated} */ @Nullable - public final String ilmPolicy() { - return this.ilmPolicy; + public final Boolean replicated() { + return this.replicated; } /** - * API name: {@code _meta} + * Required - Health status of the data stream. This health status is based on + * the state of the primary and replica shards of the stream’s backing indices. + *

+ * API name: {@code status} */ - public final Map meta() { - return this.meta; + public final HealthStatus status() { + return this.status; } /** - * API name: {@code allow_custom_routing} + * If true, the data stream is created and managed by an Elastic + * stack component and cannot be modified through normal user interaction. + *

+ * API name: {@code system} */ @Nullable - public final Boolean allowCustomRouting() { - return this.allowCustomRouting; + public final Boolean system() { + return this.system; } /** - * API name: {@code lifecycle} + * Required - Name of the index template used to create the data stream’s + * backing indices. The template’s index pattern must match the name of this + * data stream. + *

+ * API name: {@code template} */ - @Nullable - public final DataLifecycleWithRollover lifecycle() { - return this.lifecycle; + public final String template() { + return this.template; + } + + /** + * Required - Information about the @timestamp field in the data + * stream. + *

+ * API name: {@code timestamp_field} + */ + public final DataStreamTimestampField timestampField() { + return this.timestampField; } /** @@ -216,69 +261,68 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("name"); - generator.write(this.name); - - generator.writeKey("timestamp_field"); - this.timestampField.serialize(generator, mapper); - - if (ApiTypeHelper.isDefined(this.indices)) { - generator.writeKey("indices"); - generator.writeStartArray(); - for (DataStreamIndex item0 : this.indices) { - item0.serialize(generator, mapper); + if (ApiTypeHelper.isDefined(this.meta)) { + generator.writeKey("_meta"); + generator.writeStartObject(); + for (Map.Entry item0 : this.meta.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); } generator.writeEnd(); + } + if (this.allowCustomRouting != null) { + generator.writeKey("allow_custom_routing"); + generator.write(this.allowCustomRouting); + } generator.writeKey("generation"); generator.write(this.generation); - generator.writeKey("template"); - generator.write(this.template); - generator.writeKey("hidden"); generator.write(this.hidden); - if (this.replicated != null) { - generator.writeKey("replicated"); - generator.write(this.replicated); - - } - if (this.system != null) { - generator.writeKey("system"); - generator.write(this.system); - - } - generator.writeKey("status"); - this.status.serialize(generator, mapper); if (this.ilmPolicy != null) { generator.writeKey("ilm_policy"); generator.write(this.ilmPolicy); } - if (ApiTypeHelper.isDefined(this.meta)) { - generator.writeKey("_meta"); - generator.writeStartObject(); - for (Map.Entry item0 : this.meta.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); + if (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartArray(); + for (DataStreamIndex item0 : this.indices) { + item0.serialize(generator, mapper); } generator.writeEnd(); - } - if (this.allowCustomRouting != null) { - generator.writeKey("allow_custom_routing"); - generator.write(this.allowCustomRouting); - } if (this.lifecycle != null) { generator.writeKey("lifecycle"); this.lifecycle.serialize(generator, mapper); } + generator.writeKey("name"); + generator.write(this.name); + + if (this.replicated != null) { + generator.writeKey("replicated"); + generator.write(this.replicated); + + } + generator.writeKey("status"); + this.status.serialize(generator, mapper); + if (this.system != null) { + generator.writeKey("system"); + generator.write(this.system); + + } + generator.writeKey("template"); + generator.write(this.template); + + generator.writeKey("timestamp_field"); + this.timestampField.serialize(generator, mapper); } @@ -294,189 +338,252 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String name; - - private DataStreamTimestampField timestampField; + @Nullable + private Map meta; - private List indices; + @Nullable + private Boolean allowCustomRouting; private Integer generation; - private String template; - private Boolean hidden; @Nullable - private Boolean replicated; + private String ilmPolicy; + + private List indices; @Nullable - private Boolean system; + private DataLifecycleWithRollover lifecycle; - private HealthStatus status; + private String name; @Nullable - private String ilmPolicy; + private Boolean replicated; - @Nullable - private Map meta; + private HealthStatus status; @Nullable - private Boolean allowCustomRouting; + private Boolean system; - @Nullable - private DataLifecycleWithRollover lifecycle; + private String template; + + private DataStreamTimestampField timestampField; /** - * Required - API name: {@code name} + * Custom metadata for the stream, copied from the _meta object of + * the stream’s matching index template. If empty, the response omits this + * property. + *

+ * API name: {@code _meta} + *

+ * Adds all entries of map to meta. */ - public final Builder name(String value) { - this.name = value; + public final Builder meta(Map map) { + this.meta = _mapPutAll(this.meta, map); return this; } /** - * Required - API name: {@code timestamp_field} + * Custom metadata for the stream, copied from the _meta object of + * the stream’s matching index template. If empty, the response omits this + * property. + *

+ * API name: {@code _meta} + *

+ * Adds an entry to meta. */ - public final Builder timestampField(DataStreamTimestampField value) { - this.timestampField = value; + public final Builder meta(String key, JsonData value) { + this.meta = _mapPut(this.meta, key, value); return this; } /** - * Required - API name: {@code timestamp_field} + * If true, the data stream allows custom routing on write request. + *

+ * API name: {@code allow_custom_routing} */ - public final Builder timestampField( - Function> fn) { - return this.timestampField(fn.apply(new DataStreamTimestampField.Builder()).build()); + public final Builder allowCustomRouting(@Nullable Boolean value) { + this.allowCustomRouting = value; + return this; } /** - * Required - API name: {@code indices} + * Required - Current generation for the data stream. This number acts as a + * cumulative count of the stream’s rollovers, starting at 1. *

- * Adds all elements of list to indices. + * API name: {@code generation} */ - public final Builder indices(List list) { - this.indices = _listAddAll(this.indices, list); + public final Builder generation(int value) { + this.generation = value; return this; } /** - * Required - API name: {@code indices} + * Required - If true, the data stream is hidden. *

- * Adds one or more values to indices. + * API name: {@code hidden} */ - public final Builder indices(DataStreamIndex value, DataStreamIndex... values) { - this.indices = _listAdd(this.indices, value, values); + public final Builder hidden(boolean value) { + this.hidden = value; return this; } /** - * Required - API name: {@code indices} + * Name of the current ILM lifecycle policy in the stream’s matching index + * template. This lifecycle policy is set in the + * index.lifecycle.name setting. If the template does not include a + * lifecycle policy, this property is not included in the response. NOTE: A data + * stream’s backing indices may be assigned different lifecycle policies. To + * retrieve the lifecycle policy for individual backing indices, use the get + * index settings API. *

- * Adds a value to indices using a builder lambda. + * API name: {@code ilm_policy} */ - public final Builder indices(Function> fn) { - return indices(fn.apply(new DataStreamIndex.Builder()).build()); + public final Builder ilmPolicy(@Nullable String value) { + this.ilmPolicy = value; + return this; } /** - * Required - API name: {@code generation} + * Required - Array of objects containing information about the data stream’s + * backing indices. The last item in this array contains information about the + * stream’s current write index. + *

+ * API name: {@code indices} + *

+ * Adds all elements of list to indices. */ - public final Builder generation(int value) { - this.generation = value; + public final Builder indices(List list) { + this.indices = _listAddAll(this.indices, list); return this; } /** - * Required - API name: {@code template} + * Required - Array of objects containing information about the data stream’s + * backing indices. The last item in this array contains information about the + * stream’s current write index. + *

+ * API name: {@code indices} + *

+ * Adds one or more values to indices. */ - public final Builder template(String value) { - this.template = value; + public final Builder indices(DataStreamIndex value, DataStreamIndex... values) { + this.indices = _listAdd(this.indices, value, values); return this; } /** - * Required - API name: {@code hidden} + * Required - Array of objects containing information about the data stream’s + * backing indices. The last item in this array contains information about the + * stream’s current write index. + *

+ * API name: {@code indices} + *

+ * Adds a value to indices using a builder lambda. */ - public final Builder hidden(boolean value) { - this.hidden = value; - return this; + public final Builder indices(Function> fn) { + return indices(fn.apply(new DataStreamIndex.Builder()).build()); } /** - * API name: {@code replicated} + * Contains the configuration for the data lifecycle management of this data + * stream. + *

+ * API name: {@code lifecycle} */ - public final Builder replicated(@Nullable Boolean value) { - this.replicated = value; + public final Builder lifecycle(@Nullable DataLifecycleWithRollover value) { + this.lifecycle = value; return this; } /** - * API name: {@code system} + * Contains the configuration for the data lifecycle management of this data + * stream. + *

+ * API name: {@code lifecycle} */ - public final Builder system(@Nullable Boolean value) { - this.system = value; - return this; + public final Builder lifecycle( + Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); } /** - * Required - API name: {@code status} + * Required - Name of the data stream. + *

+ * API name: {@code name} */ - public final Builder status(HealthStatus value) { - this.status = value; + public final Builder name(String value) { + this.name = value; return this; } /** - * API name: {@code ilm_policy} + * If true, the data stream is created and managed by cross-cluster + * replication and the local cluster can not write into this data stream or + * change its mappings. + *

+ * API name: {@code replicated} */ - public final Builder ilmPolicy(@Nullable String value) { - this.ilmPolicy = value; + public final Builder replicated(@Nullable Boolean value) { + this.replicated = value; return this; } /** - * API name: {@code _meta} + * Required - Health status of the data stream. This health status is based on + * the state of the primary and replica shards of the stream’s backing indices. *

- * Adds all entries of map to meta. + * API name: {@code status} */ - public final Builder meta(Map map) { - this.meta = _mapPutAll(this.meta, map); + public final Builder status(HealthStatus value) { + this.status = value; return this; } /** - * API name: {@code _meta} + * If true, the data stream is created and managed by an Elastic + * stack component and cannot be modified through normal user interaction. *

- * Adds an entry to meta. + * API name: {@code system} */ - public final Builder meta(String key, JsonData value) { - this.meta = _mapPut(this.meta, key, value); + public final Builder system(@Nullable Boolean value) { + this.system = value; return this; } /** - * API name: {@code allow_custom_routing} + * Required - Name of the index template used to create the data stream’s + * backing indices. The template’s index pattern must match the name of this + * data stream. + *

+ * API name: {@code template} */ - public final Builder allowCustomRouting(@Nullable Boolean value) { - this.allowCustomRouting = value; + public final Builder template(String value) { + this.template = value; return this; } /** - * API name: {@code lifecycle} + * Required - Information about the @timestamp field in the data + * stream. + *

+ * API name: {@code timestamp_field} */ - public final Builder lifecycle(@Nullable DataLifecycleWithRollover value) { - this.lifecycle = value; + public final Builder timestampField(DataStreamTimestampField value) { + this.timestampField = value; return this; } /** - * API name: {@code lifecycle} + * Required - Information about the @timestamp field in the data + * stream. + *

+ * API name: {@code timestamp_field} */ - public final Builder lifecycle( - Function> fn) { - return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); + public final Builder timestampField( + Function> fn) { + return this.timestampField(fn.apply(new DataStreamTimestampField.Builder()).build()); } @Override @@ -507,19 +614,19 @@ public DataStream build() { protected static void setupDataStreamDeserializer(ObjectDeserializer op) { - op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); - op.add(Builder::timestampField, DataStreamTimestampField._DESERIALIZER, "timestamp_field"); - op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(DataStreamIndex._DESERIALIZER), "indices"); + op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); + op.add(Builder::allowCustomRouting, JsonpDeserializer.booleanDeserializer(), "allow_custom_routing"); op.add(Builder::generation, JsonpDeserializer.integerDeserializer(), "generation"); - op.add(Builder::template, JsonpDeserializer.stringDeserializer(), "template"); op.add(Builder::hidden, JsonpDeserializer.booleanDeserializer(), "hidden"); - op.add(Builder::replicated, JsonpDeserializer.booleanDeserializer(), "replicated"); - op.add(Builder::system, JsonpDeserializer.booleanDeserializer(), "system"); - op.add(Builder::status, HealthStatus._DESERIALIZER, "status"); op.add(Builder::ilmPolicy, JsonpDeserializer.stringDeserializer(), "ilm_policy"); - op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); - op.add(Builder::allowCustomRouting, JsonpDeserializer.booleanDeserializer(), "allow_custom_routing"); + op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(DataStreamIndex._DESERIALIZER), "indices"); op.add(Builder::lifecycle, DataLifecycleWithRollover._DESERIALIZER, "lifecycle"); + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::replicated, JsonpDeserializer.booleanDeserializer(), "replicated"); + op.add(Builder::status, HealthStatus._DESERIALIZER, "status"); + op.add(Builder::system, JsonpDeserializer.booleanDeserializer(), "system"); + op.add(Builder::template, JsonpDeserializer.stringDeserializer(), "template"); + op.add(Builder::timestampField, DataStreamTimestampField._DESERIALIZER, "timestamp_field"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java index 533b82f84..97ef044ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java @@ -66,14 +66,18 @@ public static DataStreamIndex of(Function + * API name: {@code index_name} */ public final String indexName() { return this.indexName; } /** - * Required - API name: {@code index_uuid} + * Required - Universally unique identifier (UUID) for the index. + *

+ * API name: {@code index_uuid} */ public final String indexUuid() { return this.indexUuid; @@ -115,7 +119,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String indexUuid; /** - * Required - API name: {@code index_name} + * Required - Name of the backing index. + *

+ * API name: {@code index_name} */ public final Builder indexName(String value) { this.indexName = value; @@ -123,7 +129,9 @@ public final Builder indexName(String value) { } /** - * Required - API name: {@code index_uuid} + * Required - Universally unique identifier (UUID) for the index. + *

+ * API name: {@code index_uuid} */ public final Builder indexUuid(String value) { this.indexUuid = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java index 606c281a4..f1a1e2c40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java @@ -64,7 +64,11 @@ public static DataStreamTimestampField of(Function@timestamp. The @timestamp field must be included + * in every document indexed to the data stream. + *

+ * API name: {@code name} */ public final String name() { return this.name; @@ -103,7 +107,11 @@ public static class Builder extends WithJsonObjectBuilderBase private String name; /** - * Required - API name: {@code name} + * Required - Name of the timestamp field for the data stream, which must be + * @timestamp. The @timestamp field must be included + * in every document indexed to the data stream. + *

+ * API name: {@code name} */ public final Builder name(String value) { this.name = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index c8cac7754..ea78cef1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -47,7 +47,7 @@ // typedef: indices.data_streams_stats.Request /** - * Provides statistics on operations happening in a data stream. + * Retrieves statistics for one or more data streams. * * @see API @@ -74,6 +74,9 @@ public static DataStreamsStatsRequest of(Functionopen,hidden. + *

* API name: {@code expand_wildcards} */ public final List expandWildcards() { @@ -81,8 +84,9 @@ public final List expandWildcards() { } /** - * A comma-separated list of data stream names; use _all or empty - * string to perform the operation on all data streams + * Comma-separated list of data streams used to limit the request. Wildcard + * expressions (*) are supported. To target all data streams in a + * cluster, omit this parameter or use *. *

* API name: {@code name} */ @@ -107,6 +111,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. + *

* API name: {@code expand_wildcards} *

* Adds all elements of list to expandWildcards. @@ -117,6 +124,9 @@ public final Builder expandWildcards(List list) { } /** + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. + *

* API name: {@code expand_wildcards} *

* Adds one or more values to expandWildcards. @@ -127,8 +137,9 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * A comma-separated list of data stream names; use _all or empty - * string to perform the operation on all data streams + * Comma-separated list of data streams used to limit the request. Wildcard + * expressions (*) are supported. To target all data streams in a + * cluster, omit this parameter or use *. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java index 1f889742c..1ac433188 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java @@ -59,13 +59,13 @@ public class DataStreamsStatsResponse implements JsonpSerializable { private final int dataStreamCount; + private final List dataStreams; + @Nullable private final String totalStoreSizes; private final int totalStoreSizeBytes; - private final List dataStreams; - // --------------------------------------------------------------------------------------------- private DataStreamsStatsResponse(Builder builder) { @@ -73,10 +73,10 @@ private DataStreamsStatsResponse(Builder builder) { this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); this.backingIndices = ApiTypeHelper.requireNonNull(builder.backingIndices, this, "backingIndices"); this.dataStreamCount = ApiTypeHelper.requireNonNull(builder.dataStreamCount, this, "dataStreamCount"); + this.dataStreams = ApiTypeHelper.unmodifiableRequired(builder.dataStreams, this, "dataStreams"); this.totalStoreSizes = builder.totalStoreSizes; this.totalStoreSizeBytes = ApiTypeHelper.requireNonNull(builder.totalStoreSizeBytes, this, "totalStoreSizeBytes"); - this.dataStreams = ApiTypeHelper.unmodifiableRequired(builder.dataStreams, this, "dataStreams"); } @@ -85,27 +85,46 @@ public static DataStreamsStatsResponse of(Function + * API name: {@code _shards} */ public final ShardStatistics shards() { return this.shards; } /** - * Required - API name: {@code backing_indices} + * Required - Total number of backing indices for the selected data streams. + *

+ * API name: {@code backing_indices} */ public final int backingIndices() { return this.backingIndices; } /** - * Required - API name: {@code data_stream_count} + * Required - Total number of selected data streams. + *

+ * API name: {@code data_stream_count} */ public final int dataStreamCount() { return this.dataStreamCount; } /** + * Required - Contains statistics for the selected data streams. + *

+ * API name: {@code data_streams} + */ + public final List dataStreams() { + return this.dataStreams; + } + + /** + * Total size of all shards for the selected data streams. This property is + * included only if the human query parameter is true + *

* API name: {@code total_store_sizes} */ @Nullable @@ -114,19 +133,14 @@ public final String totalStoreSizes() { } /** - * Required - API name: {@code total_store_size_bytes} + * Required - Total size, in bytes, of all shards for the selected data streams. + *

+ * API name: {@code total_store_size_bytes} */ public final int totalStoreSizeBytes() { return this.totalStoreSizeBytes; } - /** - * Required - API name: {@code data_streams} - */ - public final List dataStreams() { - return this.dataStreams; - } - /** * Serialize this object to JSON. */ @@ -147,14 +161,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("data_stream_count"); generator.write(this.dataStreamCount); - if (this.totalStoreSizes != null) { - generator.writeKey("total_store_sizes"); - generator.write(this.totalStoreSizes); - - } - generator.writeKey("total_store_size_bytes"); - generator.write(this.totalStoreSizeBytes); - if (ApiTypeHelper.isDefined(this.dataStreams)) { generator.writeKey("data_streams"); generator.writeStartArray(); @@ -165,6 +171,13 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + if (this.totalStoreSizes != null) { + generator.writeKey("total_store_sizes"); + generator.write(this.totalStoreSizes); + + } + generator.writeKey("total_store_size_bytes"); + generator.write(this.totalStoreSizeBytes); } @@ -188,15 +201,18 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer dataStreamCount; + private List dataStreams; + @Nullable private String totalStoreSizes; private Integer totalStoreSizeBytes; - private List dataStreams; - /** - * Required - API name: {@code _shards} + * Required - Contains information about shards that attempted to execute the + * request. + *

+ * API name: {@code _shards} */ public final Builder shards(ShardStatistics value) { this.shards = value; @@ -204,14 +220,19 @@ public final Builder shards(ShardStatistics value) { } /** - * Required - API name: {@code _shards} + * Required - Contains information about shards that attempted to execute the + * request. + *

+ * API name: {@code _shards} */ public final Builder shards(Function> fn) { return this.shards(fn.apply(new ShardStatistics.Builder()).build()); } /** - * Required - API name: {@code backing_indices} + * Required - Total number of backing indices for the selected data streams. + *

+ * API name: {@code backing_indices} */ public final Builder backingIndices(int value) { this.backingIndices = value; @@ -219,7 +240,9 @@ public final Builder backingIndices(int value) { } /** - * Required - API name: {@code data_stream_count} + * Required - Total number of selected data streams. + *

+ * API name: {@code data_stream_count} */ public final Builder dataStreamCount(int value) { this.dataStreamCount = value; @@ -227,23 +250,9 @@ public final Builder dataStreamCount(int value) { } /** - * API name: {@code total_store_sizes} - */ - public final Builder totalStoreSizes(@Nullable String value) { - this.totalStoreSizes = value; - return this; - } - - /** - * Required - API name: {@code total_store_size_bytes} - */ - public final Builder totalStoreSizeBytes(int value) { - this.totalStoreSizeBytes = value; - return this; - } - - /** - * Required - API name: {@code data_streams} + * Required - Contains statistics for the selected data streams. + *

+ * API name: {@code data_streams} *

* Adds all elements of list to dataStreams. */ @@ -253,7 +262,9 @@ public final Builder dataStreams(List list) { } /** - * Required - API name: {@code data_streams} + * Required - Contains statistics for the selected data streams. + *

+ * API name: {@code data_streams} *

* Adds one or more values to dataStreams. */ @@ -263,7 +274,9 @@ public final Builder dataStreams(DataStreamsStatsItem value, DataStreamsStatsIte } /** - * Required - API name: {@code data_streams} + * Required - Contains statistics for the selected data streams. + *

+ * API name: {@code data_streams} *

* Adds a value to dataStreams using a builder lambda. */ @@ -272,6 +285,27 @@ public final Builder dataStreams( return dataStreams(fn.apply(new DataStreamsStatsItem.Builder()).build()); } + /** + * Total size of all shards for the selected data streams. This property is + * included only if the human query parameter is true + *

+ * API name: {@code total_store_sizes} + */ + public final Builder totalStoreSizes(@Nullable String value) { + this.totalStoreSizes = value; + return this; + } + + /** + * Required - Total size, in bytes, of all shards for the selected data streams. + *

+ * API name: {@code total_store_size_bytes} + */ + public final Builder totalStoreSizeBytes(int value) { + this.totalStoreSizeBytes = value; + return this; + } + @Override protected Builder self() { return this; @@ -304,10 +338,10 @@ protected static void setupDataStreamsStatsResponseDeserializer( op.add(Builder::shards, ShardStatistics._DESERIALIZER, "_shards"); op.add(Builder::backingIndices, JsonpDeserializer.integerDeserializer(), "backing_indices"); op.add(Builder::dataStreamCount, JsonpDeserializer.integerDeserializer(), "data_stream_count"); - op.add(Builder::totalStoreSizes, JsonpDeserializer.stringDeserializer(), "total_store_sizes"); - op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.integerDeserializer(), "total_store_size_bytes"); op.add(Builder::dataStreams, JsonpDeserializer.arrayDeserializer(DataStreamsStatsItem._DESERIALIZER), "data_streams"); + op.add(Builder::totalStoreSizes, JsonpDeserializer.stringDeserializer(), "total_store_sizes"); + op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.integerDeserializer(), "total_store_size_bytes"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index 39684785c..42a119e41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -47,7 +47,7 @@ // typedef: indices.delete_alias.Request /** - * Deletes an alias. + * Removes a data stream or index from an alias. * * @see API * specification @@ -80,8 +80,8 @@ public static DeleteAliasRequest of(Function_all for all indices + * Required - Comma-separated list of data streams or indices used to limit the + * request. Supports wildcards (*). *

* API name: {@code index} */ @@ -90,7 +90,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -100,8 +101,9 @@ public final Time masterTimeout() { } /** - * Required - A comma-separated list of aliases to delete (supports wildcards); - * use _all to delete all aliases for the specified indices. + * Required - Comma-separated list of aliases to remove. Supports wildcards + * (*). To remove all aliases, use * or + * _all. *

* API name: {@code name} */ @@ -110,7 +112,8 @@ public final List name() { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -139,8 +142,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Required - A comma-separated list of index names (supports wildcards); use - * _all for all indices + * Required - Comma-separated list of data streams or indices used to limit the + * request. Supports wildcards (*). *

* API name: {@code index} *

@@ -152,8 +155,8 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names (supports wildcards); use - * _all for all indices + * Required - Comma-separated list of data streams or indices used to limit the + * request. Supports wildcards (*). *

* API name: {@code index} *

@@ -165,7 +168,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -175,7 +179,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -184,8 +189,9 @@ public final Builder masterTimeout(Function> f } /** - * Required - A comma-separated list of aliases to delete (supports wildcards); - * use _all to delete all aliases for the specified indices. + * Required - Comma-separated list of aliases to remove. Supports wildcards + * (*). To remove all aliases, use * or + * _all. *

* API name: {@code name} *

@@ -197,8 +203,9 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of aliases to delete (supports wildcards); - * use _all to delete all aliases for the specified indices. + * Required - Comma-separated list of aliases to remove. Supports wildcards + * (*). To remove all aliases, use * or + * _all. *

* API name: {@code name} *

@@ -210,7 +217,8 @@ public final Builder name(String value, String... values) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -220,7 +228,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index 7496dee91..739411f14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -47,7 +47,7 @@ // typedef: indices.delete_data_stream.Request /** - * Deletes a data stream. + * Deletes one or more data streams and their backing indices. * * @see API @@ -73,8 +73,8 @@ public static DeleteDataStreamRequest of(Functionopen,hidden. *

* API name: {@code expand_wildcards} */ @@ -83,8 +83,8 @@ public final List expandWildcards() { } /** - * Required - A comma-separated list of data streams to delete; use - * * to delete all data streams + * Required - Comma-separated list of data streams to delete. Wildcard + * (*) expressions are supported. *

* API name: {@code name} */ @@ -107,8 +107,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values,such as open,hidden. *

* API name: {@code expand_wildcards} *

@@ -120,8 +120,8 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values,such as open,hidden. *

* API name: {@code expand_wildcards} *

@@ -133,8 +133,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Required - A comma-separated list of data streams to delete; use - * * to delete all data streams + * Required - Comma-separated list of data streams to delete. Wildcard + * (*) expressions are supported. *

* API name: {@code name} *

@@ -146,8 +146,8 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of data streams to delete; use - * * to delete all data streams + * Required - Comma-separated list of data streams to delete. Wildcard + * (*) expressions are supported. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index 75014acba..ba6b244d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -49,7 +49,7 @@ // typedef: indices.delete.Request /** - * Deletes an index. + * Deletes one or more indices. * * @see API * specification @@ -90,8 +90,10 @@ public static DeleteIndexRequest of(Functionfalse, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -101,8 +103,12 @@ public final Boolean allowNoIndices() { } /** - * Whether wildcard expressions should get expanded to open, closed, or hidden - * indices + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -111,7 +117,8 @@ public final List expandWildcards() { } /** - * Ignore unavailable indexes (default: false) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -121,8 +128,11 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma-separated list of indices to delete; use _all - * or * string to delete all indices + * Required - Comma-separated list of indices to delete. You cannot specify + * index aliases. By default, this parameter does not support wildcards + * (*) or _all. To use wildcards or _all, + * set the action.destructive_requires_name cluster setting to + * false. *

* API name: {@code index} */ @@ -131,7 +141,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -141,7 +152,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -177,8 +189,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Ignore if a wildcard expression resolves to no concrete indices (default: - * false) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -188,8 +202,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether wildcard expressions should get expanded to open, closed, or hidden - * indices + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -201,8 +219,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open, closed, or hidden - * indices + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -214,7 +236,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Ignore unavailable indexes (default: false) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -224,8 +247,11 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma-separated list of indices to delete; use _all - * or * string to delete all indices + * Required - Comma-separated list of indices to delete. You cannot specify + * index aliases. By default, this parameter does not support wildcards + * (*) or _all. To use wildcards or _all, + * set the action.destructive_requires_name cluster setting to + * false. *

* API name: {@code index} *

@@ -237,8 +263,11 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of indices to delete; use _all - * or * string to delete all indices + * Required - Comma-separated list of indices to delete. You cannot specify + * index aliases. By default, this parameter does not support wildcards + * (*) or _all. To use wildcards or _all, + * set the action.destructive_requires_name cluster setting to + * false. *

* API name: {@code index} *

@@ -250,7 +279,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -260,7 +290,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -269,7 +300,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -279,7 +311,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java index 396af559f..adbf3cf54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java @@ -45,7 +45,7 @@ // typedef: indices.delete_template.Request /** - * Deletes an index template. + * Deletes a legacy index template. * * @see API * specification @@ -75,7 +75,8 @@ public static DeleteTemplateRequest of(Function * API name: {@code master_timeout} */ @@ -85,7 +86,8 @@ public final Time masterTimeout() { } /** - * Required - The name of the template + * Required - The name of the legacy index template to delete. Wildcard + * (*) expressions are supported. *

* API name: {@code name} */ @@ -94,7 +96,8 @@ public final String name() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -121,7 +124,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -131,7 +135,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -140,7 +145,8 @@ public final Builder masterTimeout(Function> f } /** - * Required - The name of the template + * Required - The name of the legacy index template to delete. Wildcard + * (*) expressions are supported. *

* API name: {@code name} */ @@ -150,7 +156,8 @@ public final Builder name(String value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -160,7 +167,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java index ca785eb6a..7f9a7829a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java @@ -48,7 +48,7 @@ // typedef: indices.disk_usage.Request /** - * Analyzes the disk usage of each field of an index or data stream + * Analyzes the disk usage of each field of an index or data stream. * * @see API * specification @@ -90,10 +90,10 @@ public static DiskUsageRequest of(Function_all value targets only missing or closed indices. + * This behavior applies even if the request targets other open indices. For + * example, a request targeting foo*,bar* returns an error if an + * index starts with foo but no index starts with bar. *

* API name: {@code allow_no_indices} */ @@ -105,7 +105,8 @@ public final Boolean allowNoIndices() { /** * Type of index that wildcard patterns can match. If the request can target * data streams, this argument determines whether wildcard expressions match - * hidden data streams. Supports comma-separated values, such as open,hidden. + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} */ @@ -114,8 +115,8 @@ public final List expandWildcards() { } /** - * If true, the API performs a flush before analysis. If false, the response may - * not include uncommitted data. + * If true, the API performs a flush before analysis. If + * false, the response may not include uncommitted data. *

* API name: {@code flush} */ @@ -125,7 +126,8 @@ public final Boolean flush() { } /** - * If true, missing or closed indices are not included in the response. + * If true, missing or closed indices are not included in the + * response. *

* API name: {@code ignore_unavailable} */ @@ -148,7 +150,7 @@ public final List index() { /** * Analyzing field disk usage is resource-intensive. To use the API, this - * parameter must be set to true. + * parameter must be set to true. *

* API name: {@code run_expensive_tasks} */ @@ -185,10 +187,10 @@ public static class Builder extends RequestBase.AbstractBuilder /** * If false, the request returns an error if any wildcard expression, index - * alias, or _all value targets only missing or closed indices. This behavior - * applies even if the request targets other open indices. For example, a - * request targeting foo*,bar* returns an error if an index starts with foo but - * no index starts with bar. + * alias, or _all value targets only missing or closed indices. + * This behavior applies even if the request targets other open indices. For + * example, a request targeting foo*,bar* returns an error if an + * index starts with foo but no index starts with bar. *

* API name: {@code allow_no_indices} */ @@ -200,7 +202,8 @@ public final Builder allowNoIndices(@Nullable Boolean value) { /** * Type of index that wildcard patterns can match. If the request can target * data streams, this argument determines whether wildcard expressions match - * hidden data streams. Supports comma-separated values, such as open,hidden. + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -214,7 +217,8 @@ public final Builder expandWildcards(List list) { /** * Type of index that wildcard patterns can match. If the request can target * data streams, this argument determines whether wildcard expressions match - * hidden data streams. Supports comma-separated values, such as open,hidden. + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -226,8 +230,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * If true, the API performs a flush before analysis. If false, the response may - * not include uncommitted data. + * If true, the API performs a flush before analysis. If + * false, the response may not include uncommitted data. *

* API name: {@code flush} */ @@ -237,7 +241,8 @@ public final Builder flush(@Nullable Boolean value) { } /** - * If true, missing or closed indices are not included in the response. + * If true, missing or closed indices are not included in the + * response. *

* API name: {@code ignore_unavailable} */ @@ -278,7 +283,7 @@ public final Builder index(String value, String... values) { /** * Analyzing field disk usage is resource-intensive. To use the API, this - * parameter must be set to true. + * parameter must be set to true. *

* API name: {@code run_expensive_tasks} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java index 4d3e78fd1..3c42636eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java @@ -63,7 +63,9 @@ public static DownsampleConfig of(Function + * API name: {@code fixed_interval} */ public final Time fixedInterval() { return this.fixedInterval; @@ -100,7 +102,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Time fixedInterval; /** - * Required - API name: {@code fixed_interval} + * Required - The interval at which to aggregate the original time series index. + *

+ * API name: {@code fixed_interval} */ public final Builder fixedInterval(Time value) { this.fixedInterval = value; @@ -108,7 +112,9 @@ public final Builder fixedInterval(Time value) { } /** - * Required - API name: {@code fixed_interval} + * Required - The interval at which to aggregate the original time series index. + *

+ * API name: {@code fixed_interval} */ public final Builder fixedInterval(Function> fn) { return this.fixedInterval(fn.apply(new Time.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java index a67046f5e..e24c1a262 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java @@ -46,7 +46,10 @@ // typedef: indices.downsample.Request /** - * Downsample an index + * Aggregates a time series (TSDS) index and stores pre-computed statistical + * summaries (min, max, sum, + * value_count and avg) for each metric field grouped + * by a configured time interval. * * @see API * specification @@ -74,7 +77,7 @@ public static DownsampleRequest of(Function * API name: {@code index} */ @@ -83,7 +86,7 @@ public final String index() { } /** - * Required - The name of the target index to store downsampled data + * Required - Name of the index to create. *

* API name: {@code target_index} */ @@ -122,7 +125,7 @@ public static class Builder extends RequestBase.AbstractBuilder private DownsampleConfig config; /** - * Required - The index to downsample + * Required - Name of the time series index to downsample. *

* API name: {@code index} */ @@ -132,7 +135,7 @@ public final Builder index(String value) { } /** - * Required - The name of the target index to store downsampled data + * Required - Name of the index to create. *

* API name: {@code target_index} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 53cbc1007..a1dd642c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -97,7 +97,7 @@ public final CompletableFuture addBlock( * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -116,7 +116,7 @@ public CompletableFuture analyze(AnalyzeRequest request) { * a function that initializes a builder to create the * {@link AnalyzeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -130,7 +130,7 @@ public final CompletableFuture analyze( * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -224,7 +224,7 @@ public final CompletableFuture clone( * Closes an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-close.html">Documentation * on elastic.co */ @@ -242,7 +242,7 @@ public CompletableFuture close(CloseIndexRequest request) { * a function that initializes a builder to create the * {@link CloseIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-close.html">Documentation * on elastic.co */ @@ -257,7 +257,7 @@ public final CompletableFuture close( * Creates an index with optional settings and mappings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-create-index.html">Documentation * on elastic.co */ @@ -275,7 +275,7 @@ public CompletableFuture create(CreateIndexRequest request) * a function that initializes a builder to create the * {@link CreateIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-create-index.html">Documentation * on elastic.co */ @@ -567,7 +567,7 @@ public final CompletableFuture deleteTemplate( * Analyzes the disk usage of each field of an index or data stream * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-disk-usage.html">Documentation * on elastic.co */ @@ -585,7 +585,7 @@ public CompletableFuture diskUsage(DiskUsageRequest request) * a function that initializes a builder to create the * {@link DiskUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-disk-usage.html">Documentation * on elastic.co */ @@ -600,7 +600,7 @@ public final CompletableFuture diskUsage( * Downsample an index * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -618,7 +618,7 @@ public CompletableFuture downsample(DownsampleRequest reques * a function that initializes a builder to create the * {@link DownsampleRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -833,7 +833,7 @@ public final CompletableFuture fieldUsageStats( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -851,7 +851,7 @@ public CompletableFuture flush(FlushRequest request) { * a function that initializes a builder to create the * {@link FlushRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -864,7 +864,7 @@ public final CompletableFuture flush( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -1804,7 +1804,7 @@ public final CompletableFuture resolveIndex( * considered to be too large or too old. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1823,7 +1823,7 @@ public CompletableFuture rollover(RolloverRequest request) { * a function that initializes a builder to create the * {@link RolloverRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1930,7 +1930,7 @@ public CompletableFuture shardStores() { * Allow to shrink an existing index into a new index with fewer primary shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-shrink-index.html">Documentation * on elastic.co */ @@ -1948,7 +1948,7 @@ public CompletableFuture shrink(ShrinkRequest request) { * a function that initializes a builder to create the * {@link ShrinkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-shrink-index.html">Documentation * on elastic.co */ @@ -2046,7 +2046,7 @@ public CompletableFuture simulateTemplate() { * shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-split-index.html">Documentation * on elastic.co */ @@ -2065,7 +2065,7 @@ public CompletableFuture split(SplitRequest request) { * a function that initializes a builder to create the * {@link SplitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-split-index.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index 63b93d6dc..ee502ee06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -95,7 +95,7 @@ public final AddBlockResponse addBlock(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -114,7 +114,7 @@ public AnalyzeResponse analyze(AnalyzeRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link AnalyzeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -128,7 +128,7 @@ public final AnalyzeResponse analyze(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-analyze.html">Documentation * on elastic.co */ @@ -222,7 +222,7 @@ public final CloneIndexResponse clone(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-close.html">Documentation * on elastic.co */ @@ -240,7 +240,7 @@ public CloseIndexResponse close(CloseIndexRequest request) throws IOException, E * a function that initializes a builder to create the * {@link CloseIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-close.html">Documentation * on elastic.co */ @@ -255,7 +255,7 @@ public final CloseIndexResponse close(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-create-index.html">Documentation * on elastic.co */ @@ -273,7 +273,7 @@ public CreateIndexResponse create(CreateIndexRequest request) throws IOException * a function that initializes a builder to create the * {@link CreateIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-create-index.html">Documentation * on elastic.co */ @@ -578,7 +578,7 @@ public final DeleteTemplateResponse deleteTemplate( * Analyzes the disk usage of each field of an index or data stream * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-disk-usage.html">Documentation * on elastic.co */ @@ -596,7 +596,7 @@ public DiskUsageResponse diskUsage(DiskUsageRequest request) throws IOException, * a function that initializes a builder to create the * {@link DiskUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-disk-usage.html">Documentation * on elastic.co */ @@ -611,7 +611,7 @@ public final DiskUsageResponse diskUsage(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -629,7 +629,7 @@ public DownsampleResponse downsample(DownsampleRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link DownsampleRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -851,7 +851,7 @@ public final FieldUsageStatsResponse fieldUsageStats( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -869,7 +869,7 @@ public FlushResponse flush(FlushRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link FlushRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -882,7 +882,7 @@ public final FlushResponse flush(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-flush.html">Documentation * on elastic.co */ @@ -1849,7 +1849,7 @@ public final ResolveIndexResponse resolveIndex( * considered to be too large or too old. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1868,7 +1868,7 @@ public RolloverResponse rollover(RolloverRequest request) throws IOException, El * a function that initializes a builder to create the * {@link RolloverRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1976,7 +1976,7 @@ public ShardStoresResponse shardStores() throws IOException, ElasticsearchExcept * Allow to shrink an existing index into a new index with fewer primary shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-shrink-index.html">Documentation * on elastic.co */ @@ -1994,7 +1994,7 @@ public ShrinkResponse shrink(ShrinkRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link ShrinkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-shrink-index.html">Documentation * on elastic.co */ @@ -2095,7 +2095,7 @@ public SimulateTemplateResponse simulateTemplate() throws IOException, Elasticse * shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-split-index.html">Documentation * on elastic.co */ @@ -2114,7 +2114,7 @@ public SplitResponse split(SplitRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link SplitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.10/indices-split-index.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java index 606248f4c..1bd822176 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java @@ -50,7 +50,7 @@ // typedef: indices.exists_alias.Request /** - * Returns information about whether a particular alias exists. + * Checks if an alias exists. * * @see API * specification @@ -90,9 +90,10 @@ public static ExistsAliasRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -102,8 +103,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -112,8 +117,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, requests that include a missing data stream or index + * in the target indices or data streams return an error. *

* API name: {@code ignore_unavailable} */ @@ -123,7 +128,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -132,8 +139,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -143,7 +150,8 @@ public final Boolean local() { } /** - * Required - A comma-separated list of alias names to return + * Required - Comma-separated list of aliases to check. Supports wildcards + * (*). *

* API name: {@code name} */ @@ -178,9 +186,10 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -190,8 +199,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -203,8 +216,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -216,8 +233,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, requests that include a missing data stream or index + * in the target indices or data streams return an error. *

* API name: {@code ignore_unavailable} */ @@ -227,7 +244,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -239,7 +258,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -251,8 +272,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -262,7 +283,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Required - A comma-separated list of alias names to return + * Required - Comma-separated list of aliases to check. Supports wildcards + * (*). *

* API name: {@code name} *

@@ -274,7 +296,8 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of alias names to return + * Required - Comma-separated list of aliases to check. Supports wildcards + * (*). *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index d318972e8..eab94021f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -50,7 +50,7 @@ // typedef: indices.exists.Request /** - * Returns information about whether a particular index exists. + * Checks if a data stream, index, or alias exists. * * @see API * specification @@ -95,8 +95,10 @@ public static ExistsRequest of(Function> f } /** - * Ignore if a wildcard expression resolves to no concrete indices (default: - * false) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -106,8 +108,12 @@ public final Boolean allowNoIndices() { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -116,7 +122,7 @@ public final List expandWildcards() { } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -126,7 +132,8 @@ public final Boolean flatSettings() { } /** - * Ignore unavailable indexes (default: false) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -136,7 +143,7 @@ public final Boolean ignoreUnavailable() { } /** - * Whether to return all default setting for each of the indices. + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -146,7 +153,8 @@ public final Boolean includeDefaults() { } /** - * Required - A comma-separated list of index names + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -155,8 +163,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -193,8 +201,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean local; /** - * Ignore if a wildcard expression resolves to no concrete indices (default: - * false) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -204,8 +214,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -217,8 +231,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -230,7 +248,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -240,7 +258,8 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Ignore unavailable indexes (default: false) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -250,7 +269,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Whether to return all default setting for each of the indices. + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -260,7 +279,8 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * Required - A comma-separated list of index names + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} *

@@ -272,7 +292,8 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} *

@@ -284,8 +305,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java index 3681e04f3..390d21901 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java @@ -50,7 +50,7 @@ // typedef: indices.field_usage_stats.Request /** - * Returns the field usage stats for each field of an index + * Returns field usage information for each shard and field of an index. * * @see API @@ -99,11 +99,12 @@ public static FieldUsageStatsRequest of(Functionfoo*,bar* returns an error if an index starts - * with foo but no index starts with bar. + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -135,7 +136,8 @@ public final List fields() { } /** - * If true, missing or closed indices are not included in the response. + * If true, missing or closed indices are not included in the + * response. *

* API name: {@code ignore_unavailable} */ @@ -221,11 +223,12 @@ public static class Builder extends RequestBase.AbstractBuilder private WaitForActiveShards waitForActiveShards; /** - * If false, the request returns an error if any wildcard expression, index - * alias, or _all value targets only missing or closed indices. This behavior - * applies even if the request targets other open indices. For example, a - * request targeting foo*,bar* returns an error if an index starts - * with foo but no index starts with bar. + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -291,7 +294,8 @@ public final Builder fields(String value, String... values) { } /** - * If true, missing or closed indices are not included in the response. + * If true, missing or closed indices are not included in the + * response. *

* API name: {@code ignore_unavailable} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java index 94997eef3..1e2a30c2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java @@ -48,7 +48,7 @@ // typedef: indices.flush.Request /** - * Performs the flush operation on one or more indices. + * Flushes one or more data streams or indices. * * @see API * specification @@ -89,9 +89,10 @@ public static FlushRequest of(Function> fn) } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -101,8 +102,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -111,10 +116,8 @@ public final List expandWildcards() { } /** - * Whether a flush should be forced even if it is not necessarily needed ie. if - * no changes will be committed to the index. This is useful if transaction log - * IDs should be incremented even if no uncommitted changes are present. (This - * setting can be considered as internal) + * If true, the request forces a flush even if there are no changes + * to commit to the index. *

* API name: {@code force} */ @@ -124,8 +127,8 @@ public final Boolean force() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -135,8 +138,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names; use _all or empty string - * for all indices + * Comma-separated list of data streams, indices, and aliases to flush. Supports + * wildcards (*). To flush all data streams and indices, omit this + * parameter or use * or _all. *

* API name: {@code index} */ @@ -145,10 +149,9 @@ public final List index() { } /** - * If set to true the flush operation will block until the flush can be executed - * if another flush operation is already executing. The default is true. If set - * to false the flush will be skipped iff if another flush operation is already - * running. + * If true, the flush operation blocks until execution when another + * flush operation is running. If false, Elasticsearch returns an + * error if you request a flush when another flush operation is running. *

* API name: {@code wait_if_ongoing} */ @@ -183,9 +186,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean waitIfOngoing; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -195,8 +199,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -208,8 +216,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -221,10 +233,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether a flush should be forced even if it is not necessarily needed ie. if - * no changes will be committed to the index. This is useful if transaction log - * IDs should be incremented even if no uncommitted changes are present. (This - * setting can be considered as internal) + * If true, the request forces a flush even if there are no changes + * to commit to the index. *

* API name: {@code force} */ @@ -234,8 +244,8 @@ public final Builder force(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -245,8 +255,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * for all indices + * Comma-separated list of data streams, indices, and aliases to flush. Supports + * wildcards (*). To flush all data streams and indices, omit this + * parameter or use * or _all. *

* API name: {@code index} *

@@ -258,8 +269,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * for all indices + * Comma-separated list of data streams, indices, and aliases to flush. Supports + * wildcards (*). To flush all data streams and indices, omit this + * parameter or use * or _all. *

* API name: {@code index} *

@@ -271,10 +283,9 @@ public final Builder index(String value, String... values) { } /** - * If set to true the flush operation will block until the flush can be executed - * if another flush operation is already executing. The default is true. If set - * to false the flush will be skipped iff if another flush operation is already - * running. + * If true, the flush operation blocks until execution when another + * flush operation is running. If false, Elasticsearch returns an + * error if you request a flush when another flush operation is running. *

* API name: {@code wait_if_ongoing} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index 32c05f489..55b6b032a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -48,7 +48,7 @@ // typedef: indices.get_alias.Request /** - * Returns an alias. + * Retrieves information for one or more aliases. * * @see API * specification @@ -88,9 +88,10 @@ public static GetAliasRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -100,8 +101,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -110,8 +115,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -121,7 +126,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -130,8 +137,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -141,7 +148,9 @@ public final Boolean local() { } /** - * A comma-separated list of alias names to return + * Comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} */ @@ -175,9 +184,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List name; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -187,8 +197,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -200,8 +214,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -213,8 +231,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -224,7 +242,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -236,7 +256,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to filter aliases + * Comma-separated list of data streams or indices used to limit the request. + * Supports wildcards (*). To target all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -248,8 +270,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -259,7 +281,9 @@ public final Builder local(@Nullable Boolean value) { } /** - * A comma-separated list of alias names to return + * Comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} *

@@ -271,7 +295,9 @@ public final Builder name(List list) { } /** - * A comma-separated list of alias names to return + * Comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java index d75cbb591..615f70e07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -78,8 +78,10 @@ public static GetDataLifecycleRequest of(Functionopen,hidden. Valid values are: + * all, open, closed, + * hidden, none. *

* API name: {@code expand_wildcards} */ @@ -88,8 +90,7 @@ public final List expandWildcards() { } /** - * Return all relevant default configurations for the data stream (default: - * false) + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -99,8 +100,9 @@ public final Boolean includeDefaults() { } /** - * Required - A comma-separated list of data streams to get; use * - * to get all data streams + * Required - Comma-separated list of data streams to limit the request. + * Supports wildcards (*). To target all data streams, omit this + * parameter or use * or _all. *

* API name: {@code name} */ @@ -126,8 +128,10 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. Valid values are: + * all, open, closed, + * hidden, none. *

* API name: {@code expand_wildcards} *

@@ -139,8 +143,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. Valid values are: + * all, open, closed, + * hidden, none. *

* API name: {@code expand_wildcards} *

@@ -152,8 +158,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return all relevant default configurations for the data stream (default: - * false) + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -163,8 +168,9 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * Required - A comma-separated list of data streams to get; use * - * to get all data streams + * Required - Comma-separated list of data streams to limit the request. + * Supports wildcards (*). To target all data streams, omit this + * parameter or use * or _all. *

* API name: {@code name} *

@@ -176,8 +182,9 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of data streams to get; use * - * to get all data streams + * Required - Comma-separated list of data streams to limit the request. + * Supports wildcards (*). To target all data streams, omit this + * parameter or use * or _all. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 4550a3054..9e47ed0fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -48,7 +48,7 @@ // typedef: indices.get_data_stream.Request /** - * Returns data streams. + * Retrieves information about one or more data streams. * * @see API * specification @@ -77,8 +77,8 @@ public static GetDataStreamRequest of(Functionopen,hidden. *

* API name: {@code expand_wildcards} */ @@ -97,8 +97,9 @@ public final Boolean includeDefaults() { } /** - * A comma-separated list of data streams to get; use * to get all - * data streams + * Comma-separated list of data stream names used to limit the request. Wildcard + * (*) expressions are supported. If omitted, all data streams are + * returned. *

* API name: {@code name} */ @@ -125,8 +126,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. *

* API name: {@code expand_wildcards} *

@@ -138,8 +139,8 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. *

* API name: {@code expand_wildcards} *

@@ -161,8 +162,9 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * A comma-separated list of data streams to get; use * to get all - * data streams + * Comma-separated list of data stream names used to limit the request. Wildcard + * (*) expressions are supported. If omitted, all data streams are + * returned. *

* API name: {@code name} *

@@ -174,8 +176,9 @@ public final Builder name(List list) { } /** - * A comma-separated list of data streams to get; use * to get all - * data streams + * Comma-separated list of data stream names used to limit the request. Wildcard + * (*) expressions are supported. If omitted, all data streams are + * returned. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java index f3a9943f7..753b64924 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java @@ -48,7 +48,8 @@ // typedef: indices.get_field_mapping.Request /** - * Returns mapping for one or more fields. + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. * * @see API @@ -93,9 +94,10 @@ public static GetFieldMappingRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -105,8 +107,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -115,7 +121,8 @@ public final List expandWildcards() { } /** - * Required - A comma-separated list of fields + * Required - Comma-separated list or wildcard expression of fields used to + * limit returned information. *

* API name: {@code fields} */ @@ -124,8 +131,8 @@ public final List fields() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -135,7 +142,7 @@ public final Boolean ignoreUnavailable() { } /** - * Whether the default mapping values should be returned as well + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -145,7 +152,9 @@ public final Boolean includeDefaults() { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -154,8 +163,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -194,9 +203,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean local; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -206,8 +216,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -219,8 +233,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -232,7 +250,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Required - A comma-separated list of fields + * Required - Comma-separated list or wildcard expression of fields used to + * limit returned information. *

* API name: {@code fields} *

@@ -244,7 +263,8 @@ public final Builder fields(List list) { } /** - * Required - A comma-separated list of fields + * Required - Comma-separated list or wildcard expression of fields used to + * limit returned information. *

* API name: {@code fields} *

@@ -256,8 +276,8 @@ public final Builder fields(String value, String... values) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -267,7 +287,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Whether the default mapping values should be returned as well + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -277,7 +297,9 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -289,7 +311,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -301,8 +325,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index b19a1c2a2..8372536ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -49,7 +49,8 @@ // typedef: indices.get_settings.Request /** - * Returns settings for one or more indices. + * Returns setting information for one or more indices. For data streams, + * returns setting information for the stream’s backing indices. * * @see API * specification @@ -101,9 +102,11 @@ public static GetIndicesSettingsRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with bar. *

* API name: {@code allow_no_indices} */ @@ -113,8 +116,10 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} */ @@ -123,7 +128,7 @@ public final List expandWildcards() { } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -133,8 +138,8 @@ public final Boolean flatSettings() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -144,7 +149,7 @@ public final Boolean ignoreUnavailable() { } /** - * Whether to return all default setting for each of the indices. + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -154,8 +159,9 @@ public final Boolean includeDefaults() { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -164,8 +170,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -175,7 +181,8 @@ public final Boolean local() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -185,7 +192,7 @@ public final Time masterTimeout() { } /** - * The name of the settings that should be included + * Comma-separated list or wildcard expression of settings to retrieve. *

* API name: {@code name} */ @@ -230,9 +237,11 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with bar. *

* API name: {@code allow_no_indices} */ @@ -242,8 +251,10 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -255,8 +266,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -268,7 +281,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -278,8 +291,8 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -289,7 +302,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Whether to return all default setting for each of the indices. + * If true, return all default settings in the response. *

* API name: {@code include_defaults} */ @@ -299,8 +312,9 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -312,8 +326,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -325,8 +340,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. If false, information is retrieved from the master node. *

* API name: {@code local} */ @@ -336,7 +351,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -346,7 +362,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -355,7 +372,7 @@ public final Builder masterTimeout(Function> f } /** - * The name of the settings that should be included + * Comma-separated list or wildcard expression of settings to retrieve. *

* API name: {@code name} *

@@ -367,7 +384,7 @@ public final Builder name(List list) { } /** - * The name of the settings that should be included + * Comma-separated list or wildcard expression of settings to retrieve. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index 55a1bff2a..f2c3df7f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -49,7 +49,8 @@ // typedef: indices.get_mapping.Request /** - * Returns mappings for one or more indices. + * Retrieves mapping definitions for one or more indices. For data streams, the + * API retrieves mappings for the stream’s backing indices. * * @see API * specification @@ -90,9 +91,10 @@ public static GetMappingRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -102,8 +104,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -112,8 +118,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -123,7 +129,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -132,8 +140,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -143,7 +151,8 @@ public final Boolean local() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -180,9 +189,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Time masterTimeout; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -192,8 +202,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -205,8 +219,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -218,8 +236,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -229,7 +247,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -241,7 +261,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -253,8 +275,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -264,7 +286,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -274,7 +297,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java index 722fa209f..1af53dc35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java @@ -48,7 +48,7 @@ // typedef: indices.get_template.Request /** - * Returns an index template. + * Retrieves information about one or more index templates. * * @see API * specification @@ -82,7 +82,7 @@ public static GetTemplateRequest of(Functiontrue, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -92,8 +92,8 @@ public final Boolean flatSettings() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -103,7 +103,8 @@ public final Boolean local() { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -113,7 +114,10 @@ public final Time masterTimeout() { } /** - * The comma separated names of the index templates + * Comma-separated list of index template names used to limit the request. + * Wildcard (*) expressions are supported. To return all index + * templates, omit this parameter or use a value of _all or + * *. *

* API name: {@code name} */ @@ -143,7 +147,7 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -153,8 +157,8 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -164,7 +168,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -174,7 +179,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Explicit operation timeout for connection to master node + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -183,7 +189,10 @@ public final Builder masterTimeout(Function> f } /** - * The comma separated names of the index templates + * Comma-separated list of index template names used to limit the request. + * Wildcard (*) expressions are supported. To return all index + * templates, omit this parameter or use a value of _all or + * *. *

* API name: {@code name} *

@@ -195,7 +204,10 @@ public final Builder name(List list) { } /** - * The comma separated names of the index templates + * Comma-separated list of index template names used to limit the request. + * Wildcard (*) expressions are supported. To return all index + * templates, omit this parameter or use a value of _all or + * *. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index 7dc6d2a3f..ebb39c9bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -224,7 +224,7 @@ public class IndexSettings implements JsonpSerializable { private final MappingLimitSettings mapping; @Nullable - private final SlowlogSettings indexingSlowlog; + private final IndexingSlowlogSettings indexingSlowlog; @Nullable private final IndexingPressure indexingPressure; @@ -755,7 +755,7 @@ public final MappingLimitSettings mapping() { * API name: {@code indexing.slowlog} */ @Nullable - public final SlowlogSettings indexingSlowlog() { + public final IndexingSlowlogSettings indexingSlowlog() { return this.indexingSlowlog; } @@ -1292,7 +1292,7 @@ public final Builder otherSettings(String key, JsonData value) { private MappingLimitSettings mapping; @Nullable - private SlowlogSettings indexingSlowlog; + private IndexingSlowlogSettings indexingSlowlog; @Nullable private IndexingPressure indexingPressure; @@ -1913,7 +1913,7 @@ public final Builder mapping(Function> fn) { - return this.indexingSlowlog(fn.apply(new SlowlogSettings.Builder()).build()); + public final Builder indexingSlowlog( + Function> fn) { + return this.indexingSlowlog(fn.apply(new IndexingSlowlogSettings.Builder()).build()); } /** @@ -2049,7 +2050,7 @@ protected static void setupIndexSettingsDeserializer(ObjectDeserializer * API name: {@code lifecycle} */ @@ -305,7 +305,7 @@ public final Builder dataStream(@Nullable String value) { } /** - * Data lifecycle applicable iff this is a data stream. + * Data lifecycle applicable if this is a data stream. *

* API name: {@code lifecycle} */ @@ -315,7 +315,7 @@ public final Builder lifecycle(@Nullable DataLifecycle value) { } /** - * Data lifecycle applicable iff this is a data stream. + * Data lifecycle applicable if this is a data stream. *

* API name: {@code lifecycle} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java index c16d3bd18..e69ef5bca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java @@ -94,20 +94,29 @@ public static IndexTemplate of(Function> f } /** - * Required - API name: {@code index_patterns} + * Required - Name of the index template. + *

+ * API name: {@code index_patterns} */ public final List indexPatterns() { return this.indexPatterns; } /** - * Required - API name: {@code composed_of} + * Required - An ordered list of component template names. Component templates + * are merged in the order specified, meaning that the last component template + * specified has the highest precedence. + *

+ * API name: {@code composed_of} */ public final List composedOf() { return this.composedOf; } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ @Nullable @@ -116,6 +125,9 @@ public final IndexTemplateSummary template() { } /** + * Version number used to manage index templates externally. This number is not + * automatically generated by Elasticsearch. + *

* API name: {@code version} */ @Nullable @@ -124,6 +136,12 @@ public final Long version() { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ @Nullable @@ -132,6 +150,9 @@ public final Long priority() { } /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} */ public final Map meta() { @@ -147,6 +168,10 @@ public final Boolean allowAutoCreate() { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ @Nullable @@ -259,7 +284,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IndexTemplateDataStreamConfiguration dataStream; /** - * Required - API name: {@code index_patterns} + * Required - Name of the index template. + *

+ * API name: {@code index_patterns} *

* Adds all elements of list to indexPatterns. */ @@ -269,7 +296,9 @@ public final Builder indexPatterns(List list) { } /** - * Required - API name: {@code index_patterns} + * Required - Name of the index template. + *

+ * API name: {@code index_patterns} *

* Adds one or more values to indexPatterns. */ @@ -279,7 +308,11 @@ public final Builder indexPatterns(String value, String... values) { } /** - * Required - API name: {@code composed_of} + * Required - An ordered list of component template names. Component templates + * are merged in the order specified, meaning that the last component template + * specified has the highest precedence. + *

+ * API name: {@code composed_of} *

* Adds all elements of list to composedOf. */ @@ -289,7 +322,11 @@ public final Builder composedOf(List list) { } /** - * Required - API name: {@code composed_of} + * Required - An ordered list of component template names. Component templates + * are merged in the order specified, meaning that the last component template + * specified has the highest precedence. + *

+ * API name: {@code composed_of} *

* Adds one or more values to composedOf. */ @@ -299,6 +336,9 @@ public final Builder composedOf(String value, String... values) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(@Nullable IndexTemplateSummary value) { @@ -307,6 +347,9 @@ public final Builder template(@Nullable IndexTemplateSummary value) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(Function> fn) { @@ -314,6 +357,9 @@ public final Builder template(Function * API name: {@code version} */ public final Builder version(@Nullable Long value) { @@ -322,6 +368,12 @@ public final Builder version(@Nullable Long value) { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ public final Builder priority(@Nullable Long value) { @@ -330,6 +382,9 @@ public final Builder priority(@Nullable Long value) { } /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds all entries of map to meta. @@ -340,6 +395,9 @@ public final Builder meta(Map map) { } /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds an entry to meta. @@ -358,6 +416,10 @@ public final Builder allowAutoCreate(@Nullable Boolean value) { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream(@Nullable IndexTemplateDataStreamConfiguration value) { @@ -366,6 +428,10 @@ public final Builder dataStream(@Nullable IndexTemplateDataStreamConfiguration v } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java index 70acfc57a..15fd3f1a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java @@ -78,6 +78,11 @@ public static IndexTemplateSummary of(Functiondata_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} */ public final Map aliases() { @@ -85,6 +90,9 @@ public final Map aliases() { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping parameters. + *

* API name: {@code mappings} */ @Nullable @@ -93,6 +101,8 @@ public final TypeMapping mappings() { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ @Nullable @@ -175,6 +185,11 @@ public static class Builder extends WithJsonObjectBuilderBase private DataLifecycleWithRollover lifecycle; /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -185,6 +200,11 @@ public final Builder aliases(Map map) { } /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -195,6 +215,11 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -204,6 +229,9 @@ public final Builder aliases(String key, Function * API name: {@code mappings} */ public final Builder mappings(@Nullable TypeMapping value) { @@ -212,6 +240,9 @@ public final Builder mappings(@Nullable TypeMapping value) { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping parameters. + *

* API name: {@code mappings} */ public final Builder mappings(Function> fn) { @@ -219,6 +250,8 @@ public final Builder mappings(Function * API name: {@code settings} */ public final Builder settings(@Nullable IndexSettings value) { @@ -227,6 +260,8 @@ public final Builder settings(@Nullable IndexSettings value) { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ public final Builder settings(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java new file mode 100644 index 000000000..7d13c6c4f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java @@ -0,0 +1,248 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices._types.IndexingSlowlogSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndexingSlowlogSettings implements JsonpSerializable { + @Nullable + private final String level; + + @Nullable + private final Integer source; + + @Nullable + private final Boolean reformat; + + @Nullable + private final IndexingSlowlogTresholds threshold; + + // --------------------------------------------------------------------------------------------- + + private IndexingSlowlogSettings(Builder builder) { + + this.level = builder.level; + this.source = builder.source; + this.reformat = builder.reformat; + this.threshold = builder.threshold; + + } + + public static IndexingSlowlogSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code level} + */ + @Nullable + public final String level() { + return this.level; + } + + /** + * API name: {@code source} + */ + @Nullable + public final Integer source() { + return this.source; + } + + /** + * API name: {@code reformat} + */ + @Nullable + public final Boolean reformat() { + return this.reformat; + } + + /** + * API name: {@code threshold} + */ + @Nullable + public final IndexingSlowlogTresholds threshold() { + return this.threshold; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.level != null) { + generator.writeKey("level"); + generator.write(this.level); + + } + if (this.source != null) { + generator.writeKey("source"); + generator.write(this.source); + + } + if (this.reformat != null) { + generator.writeKey("reformat"); + generator.write(this.reformat); + + } + if (this.threshold != null) { + generator.writeKey("threshold"); + this.threshold.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndexingSlowlogSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private String level; + + @Nullable + private Integer source; + + @Nullable + private Boolean reformat; + + @Nullable + private IndexingSlowlogTresholds threshold; + + /** + * API name: {@code level} + */ + public final Builder level(@Nullable String value) { + this.level = value; + return this; + } + + /** + * API name: {@code source} + */ + public final Builder source(@Nullable Integer value) { + this.source = value; + return this; + } + + /** + * API name: {@code reformat} + */ + public final Builder reformat(@Nullable Boolean value) { + this.reformat = value; + return this; + } + + /** + * API name: {@code threshold} + */ + public final Builder threshold(@Nullable IndexingSlowlogTresholds value) { + this.threshold = value; + return this; + } + + /** + * API name: {@code threshold} + */ + public final Builder threshold( + Function> fn) { + return this.threshold(fn.apply(new IndexingSlowlogTresholds.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndexingSlowlogSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndexingSlowlogSettings build() { + _checkSingleUse(); + + return new IndexingSlowlogSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndexingSlowlogSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndexingSlowlogSettings::setupIndexingSlowlogSettingsDeserializer); + + protected static void setupIndexingSlowlogSettingsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::level, JsonpDeserializer.stringDeserializer(), "level"); + op.add(Builder::source, JsonpDeserializer.integerDeserializer(), "source"); + op.add(Builder::reformat, JsonpDeserializer.booleanDeserializer(), "reformat"); + op.add(Builder::threshold, IndexingSlowlogTresholds._DESERIALIZER, "threshold"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java new file mode 100644 index 000000000..13f9defbc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java @@ -0,0 +1,169 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices._types.IndexingSlowlogTresholds + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndexingSlowlogTresholds implements JsonpSerializable { + @Nullable + private final SlowlogTresholdLevels index; + + // --------------------------------------------------------------------------------------------- + + private IndexingSlowlogTresholds(Builder builder) { + + this.index = builder.index; + + } + + public static IndexingSlowlogTresholds of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The indexing slow log, similar in functionality to the search slow log. The + * log file name ends with _index_indexing_slowlog.json. Log and + * the thresholds are configured in the same way as the search slowlog. + *

+ * API name: {@code index} + */ + @Nullable + public final SlowlogTresholdLevels index() { + return this.index; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.index != null) { + generator.writeKey("index"); + this.index.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndexingSlowlogTresholds}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private SlowlogTresholdLevels index; + + /** + * The indexing slow log, similar in functionality to the search slow log. The + * log file name ends with _index_indexing_slowlog.json. Log and + * the thresholds are configured in the same way as the search slowlog. + *

+ * API name: {@code index} + */ + public final Builder index(@Nullable SlowlogTresholdLevels value) { + this.index = value; + return this; + } + + /** + * The indexing slow log, similar in functionality to the search slow log. The + * log file name ends with _index_indexing_slowlog.json. Log and + * the thresholds are configured in the same way as the search slowlog. + *

+ * API name: {@code index} + */ + public final Builder index(Function> fn) { + return this.index(fn.apply(new SlowlogTresholdLevels.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndexingSlowlogTresholds}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndexingSlowlogTresholds build() { + _checkSingleUse(); + + return new IndexingSlowlogTresholds(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndexingSlowlogTresholds} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndexingSlowlogTresholds::setupIndexingSlowlogTresholdsDeserializer); + + protected static void setupIndexingSlowlogTresholdsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::index, SlowlogTresholdLevels._DESERIALIZER, "index"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java index 32711d83b..fcfc2dd99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java @@ -49,7 +49,8 @@ // typedef: indices.stats.Request /** - * Provides statistics on operations happening in an index. + * Returns statistics for one or more indices. For data streams, the API + * retrieves statistics for the stream’s backing indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index 868600ceb..5b4d06195 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -43,7 +43,15 @@ // typedef: indices.migrate_to_data_stream.Request /** - * Migrates an alias to a data stream + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @see API @@ -66,7 +74,7 @@ public static MigrateToDataStreamRequest of(Function * API name: {@code name} */ @@ -86,7 +94,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** - * Required - The name of the alias to migrate + * Required - Name of the index alias to convert to a data stream. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index e8f96e007..46bc7e160 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java @@ -46,7 +46,8 @@ // typedef: indices.modify_data_stream.Request /** - * Modifies a data stream + * Performs one or more data stream modification actions in a single atomic + * operation. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java index c2f0948fd..2d48b2858 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java @@ -50,7 +50,8 @@ // typedef: indices.open.Request /** - * Opens an index. + * Opens a closed index. For data streams, the API opens any closed backing + * indices. * * @see API * specification @@ -95,9 +96,10 @@ public static OpenRequest of(Function> fn) { } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -107,8 +109,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -117,8 +123,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -128,7 +134,13 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma separated list of indices to open + * Required - Comma-separated list of data streams, indices, and aliases used to + * limit the request. Supports wildcards (*). By default, you must + * explicitly name the indices you using to limit the request. To limit a + * request using _all, *, or other wildcard + * expressions, change the action.destructive_requires_name setting + * to false. You can update this setting in the elasticsearch.yml + * file or using the cluster update settings API. *

* API name: {@code index} */ @@ -137,7 +149,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -147,7 +160,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -157,7 +171,9 @@ public final Time timeout() { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -194,9 +210,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -206,8 +223,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -219,8 +240,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -232,8 +257,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -243,7 +268,13 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma separated list of indices to open + * Required - Comma-separated list of data streams, indices, and aliases used to + * limit the request. Supports wildcards (*). By default, you must + * explicitly name the indices you using to limit the request. To limit a + * request using _all, *, or other wildcard + * expressions, change the action.destructive_requires_name setting + * to false. You can update this setting in the elasticsearch.yml + * file or using the cluster update settings API. *

* API name: {@code index} *

@@ -255,7 +286,13 @@ public final Builder index(List list) { } /** - * Required - A comma separated list of indices to open + * Required - Comma-separated list of data streams, indices, and aliases used to + * limit the request. Supports wildcards (*). By default, you must + * explicitly name the indices you using to limit the request. To limit a + * request using _all, *, or other wildcard + * expressions, change the action.destructive_requires_name setting + * to false. You can update this setting in the elasticsearch.yml + * file or using the cluster update settings API. *

* API name: {@code index} *

@@ -267,7 +304,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -277,7 +315,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -286,7 +325,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -296,7 +336,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -305,7 +346,9 @@ public final Builder timeout(Function> fn) { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -315,7 +358,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java index 4878006d3..280b2100d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java @@ -51,7 +51,7 @@ // typedef: indices.put_alias.Request /** - * Creates or updates an alias. + * Adds a data stream or index to an alias. * * @see API * specification @@ -104,6 +104,8 @@ public static PutAliasRequest of(Function * API name: {@code filter} */ @Nullable @@ -112,9 +114,9 @@ public final Query filter() { } /** - * Required - A comma-separated list of index names the alias should point to - * (supports wildcards); use _all to perform the operation on all - * indices. + * Required - Comma-separated list of data streams or indices to add. Supports + * wildcards (*). Wildcard patterns that match both data streams + * and indices return an error. *

* API name: {@code index} */ @@ -123,6 +125,10 @@ public final List index() { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. Data + * stream aliases don’t support this parameter. + *

* API name: {@code index_routing} */ @Nullable @@ -131,6 +137,14 @@ public final String indexRouting() { } /** + * If true, sets the write index or data stream for the alias. If + * an alias points to multiple indices or data streams and + * is_write_index isn’t set, the alias rejects write requests. If + * an index alias points to one index and is_write_index isn’t set, + * the index automatically acts as the write index. Data stream aliases don’t + * automatically set a write data stream, even if the alias points to one data + * stream. + *

* API name: {@code is_write_index} */ @Nullable @@ -139,7 +153,8 @@ public final Boolean isWriteIndex() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -149,7 +164,8 @@ public final Time masterTimeout() { } /** - * Required - The name of the alias to be created or updated + * Required - Alias to update. If the alias doesn’t exist, the request creates + * it. Index alias names support date math. *

* API name: {@code name} */ @@ -158,6 +174,9 @@ public final String name() { } /** + * Value used to route indexing and search operations to a specific shard. Data + * stream aliases don’t support this parameter. + *

* API name: {@code routing} */ @Nullable @@ -166,6 +185,10 @@ public final String routing() { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. Data stream + * aliases don’t support this parameter. + *

* API name: {@code search_routing} */ @Nullable @@ -174,7 +197,8 @@ public final String searchRouting() { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -255,6 +279,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Time timeout; /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Query value) { @@ -263,6 +289,8 @@ public final Builder filter(@Nullable Query value) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -270,9 +298,9 @@ public final Builder filter(Function> fn) { } /** - * Required - A comma-separated list of index names the alias should point to - * (supports wildcards); use _all to perform the operation on all - * indices. + * Required - Comma-separated list of data streams or indices to add. Supports + * wildcards (*). Wildcard patterns that match both data streams + * and indices return an error. *

* API name: {@code index} *

@@ -284,9 +312,9 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names the alias should point to - * (supports wildcards); use _all to perform the operation on all - * indices. + * Required - Comma-separated list of data streams or indices to add. Supports + * wildcards (*). Wildcard patterns that match both data streams + * and indices return an error. *

* API name: {@code index} *

@@ -298,6 +326,10 @@ public final Builder index(String value, String... values) { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. Data + * stream aliases don’t support this parameter. + *

* API name: {@code index_routing} */ public final Builder indexRouting(@Nullable String value) { @@ -306,6 +338,14 @@ public final Builder indexRouting(@Nullable String value) { } /** + * If true, sets the write index or data stream for the alias. If + * an alias points to multiple indices or data streams and + * is_write_index isn’t set, the alias rejects write requests. If + * an index alias points to one index and is_write_index isn’t set, + * the index automatically acts as the write index. Data stream aliases don’t + * automatically set a write data stream, even if the alias points to one data + * stream. + *

* API name: {@code is_write_index} */ public final Builder isWriteIndex(@Nullable Boolean value) { @@ -314,7 +354,8 @@ public final Builder isWriteIndex(@Nullable Boolean value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -324,7 +365,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -333,7 +375,8 @@ public final Builder masterTimeout(Function> f } /** - * Required - The name of the alias to be created or updated + * Required - Alias to update. If the alias doesn’t exist, the request creates + * it. Index alias names support date math. *

* API name: {@code name} */ @@ -343,6 +386,9 @@ public final Builder name(String value) { } /** + * Value used to route indexing and search operations to a specific shard. Data + * stream aliases don’t support this parameter. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -351,6 +397,10 @@ public final Builder routing(@Nullable String value) { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. Data stream + * aliases don’t support this parameter. + *

* API name: {@code search_routing} */ public final Builder searchRouting(@Nullable String value) { @@ -359,7 +409,8 @@ public final Builder searchRouting(@Nullable String value) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -369,7 +420,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java index 125213b99..178a2dc94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java @@ -88,6 +88,11 @@ public static PutDataLifecycleRequest of(Function * API name: {@code data_retention} */ @Nullable @@ -96,8 +101,10 @@ public final Time dataRetention() { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. Valid values are: + * all, hidden, open, + * closed, none. *

* API name: {@code expand_wildcards} */ @@ -106,7 +113,8 @@ public final List expandWildcards() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -116,8 +124,9 @@ public final Time masterTimeout() { } /** - * Required - A comma-separated list of data streams whose lifecycle will be - * updated; use * to set the lifecycle to all data streams + * Required - Comma-separated list of data streams used to limit the request. + * Supports wildcards (*). To target all data streams use + * * or _all. *

* API name: {@code name} */ @@ -126,7 +135,8 @@ public final List name() { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -178,6 +188,11 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** + * If defined, every document added to this data stream will be stored at least + * for this time frame. Any time after this duration the document could be + * deleted. When empty, every document in this data stream will be stored + * indefinitely. + *

* API name: {@code data_retention} */ public final Builder dataRetention(@Nullable Time value) { @@ -186,6 +201,11 @@ public final Builder dataRetention(@Nullable Time value) { } /** + * If defined, every document added to this data stream will be stored at least + * for this time frame. Any time after this duration the document could be + * deleted. When empty, every document in this data stream will be stored + * indefinitely. + *

* API name: {@code data_retention} */ public final Builder dataRetention(Function> fn) { @@ -193,8 +213,10 @@ public final Builder dataRetention(Function> f } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. Valid values are: + * all, hidden, open, + * closed, none. *

* API name: {@code expand_wildcards} *

@@ -206,8 +228,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of data stream that wildcard patterns can match. Supports + * comma-separated values, such as open,hidden. Valid values are: + * all, hidden, open, + * closed, none. *

* API name: {@code expand_wildcards} *

@@ -219,7 +243,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -229,7 +254,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -238,8 +264,9 @@ public final Builder masterTimeout(Function> f } /** - * Required - A comma-separated list of data streams whose lifecycle will be - * updated; use * to set the lifecycle to all data streams + * Required - Comma-separated list of data streams used to limit the request. + * Supports wildcards (*). To target all data streams use + * * or _all. *

* API name: {@code name} *

@@ -251,8 +278,9 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of data streams whose lifecycle will be - * updated; use * to set the lifecycle to all data streams + * Required - Comma-separated list of data streams used to limit the request. + * Supports wildcards (*). To target all data streams use + * * or _all. *

* API name: {@code name} *

@@ -264,7 +292,8 @@ public final Builder name(String value, String... values) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -274,7 +303,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit timestamp for the document + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index 4c2aef6b2..350c62569 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -52,7 +52,8 @@ // typedef: indices.put_index_template.Request /** - * Creates or updates an index template. + * Creates or updates an index template. Index templates define settings, + * mappings, and aliases that can be applied automatically to new indices. * * @see API @@ -104,6 +105,9 @@ public static PutIndexTemplateRequest of(Function * API name: {@code _meta} */ public final Map meta() { @@ -111,6 +115,10 @@ public final Map meta() { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} */ public final List composedOf() { @@ -118,8 +126,8 @@ public final List composedOf() { } /** - * Whether the index template should only be added if new or can also replace an - * existing one + * If true, this request cannot replace or update existing index + * templates. *

* API name: {@code create} */ @@ -129,6 +137,10 @@ public final Boolean create() { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ @Nullable @@ -137,6 +149,8 @@ public final DataStreamVisibility dataStream() { } /** + * Name of the index template to create. + *

* API name: {@code index_patterns} */ public final List indexPatterns() { @@ -153,6 +167,12 @@ public final String name() { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ @Nullable @@ -161,6 +181,9 @@ public final Integer priority() { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ @Nullable @@ -169,6 +192,9 @@ public final IndexTemplateMapping template() { } /** + * Version number used to manage index templates externally. This number is not + * automatically generated by Elasticsearch. + *

* API name: {@code version} */ @Nullable @@ -277,6 +303,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Long version; /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds all entries of map to meta. @@ -287,6 +316,9 @@ public final Builder meta(Map map) { } /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds an entry to meta. @@ -297,6 +329,10 @@ public final Builder meta(String key, JsonData value) { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} *

* Adds all elements of list to composedOf. @@ -307,6 +343,10 @@ public final Builder composedOf(List list) { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} *

* Adds one or more values to composedOf. @@ -317,8 +357,8 @@ public final Builder composedOf(String value, String... values) { } /** - * Whether the index template should only be added if new or can also replace an - * existing one + * If true, this request cannot replace or update existing index + * templates. *

* API name: {@code create} */ @@ -328,6 +368,10 @@ public final Builder create(@Nullable Boolean value) { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream(@Nullable DataStreamVisibility value) { @@ -336,6 +380,10 @@ public final Builder dataStream(@Nullable DataStreamVisibility value) { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream( @@ -344,6 +392,8 @@ public final Builder dataStream( } /** + * Name of the index template to create. + *

* API name: {@code index_patterns} *

* Adds all elements of list to indexPatterns. @@ -354,6 +404,8 @@ public final Builder indexPatterns(List list) { } /** + * Name of the index template to create. + *

* API name: {@code index_patterns} *

* Adds one or more values to indexPatterns. @@ -374,6 +426,12 @@ public final Builder name(String value) { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ public final Builder priority(@Nullable Integer value) { @@ -382,6 +440,9 @@ public final Builder priority(@Nullable Integer value) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(@Nullable IndexTemplateMapping value) { @@ -390,6 +451,9 @@ public final Builder template(@Nullable IndexTemplateMapping value) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(Function> fn) { @@ -397,6 +461,9 @@ public final Builder template(Function * API name: {@code version} */ public final Builder version(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java index 3027689cf..89c49a165 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java @@ -52,7 +52,8 @@ // typedef: indices.put_settings.Request /** - * Updates the index settings. + * Changes a dynamic index setting in real time. For data streams, index setting + * changes are applied to all backing indices by default. * * @see API * specification @@ -104,9 +105,12 @@ public static PutIndicesSettingsRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -116,8 +120,10 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} */ @@ -126,7 +132,7 @@ public final List expandWildcards() { } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -136,8 +142,7 @@ public final Boolean flatSettings() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If true, returns settings in flat format. *

* API name: {@code ignore_unavailable} */ @@ -147,8 +152,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -157,7 +163,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -167,8 +174,7 @@ public final Time masterTimeout() { } /** - * Whether to update existing settings. If set to true existing - * settings on an index remain unchanged, the default is false + * If true, existing index settings remain unchanged. *

* API name: {@code preserve_existing} */ @@ -178,7 +184,8 @@ public final Boolean preserveExisting() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -238,9 +245,12 @@ public static class Builder extends RequestBase.AbstractBuilder private IndexSettings settings; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. For example, a request targeting foo*,bar* returns an + * error if an index starts with foo but no index starts with + * bar. *

* API name: {@code allow_no_indices} */ @@ -250,8 +260,10 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -263,8 +275,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. *

* API name: {@code expand_wildcards} *

@@ -276,7 +290,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return settings in flat format (default: false) + * If true, returns settings in flat format. *

* API name: {@code flat_settings} */ @@ -286,8 +300,7 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If true, returns settings in flat format. *

* API name: {@code ignore_unavailable} */ @@ -297,8 +310,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -310,8 +324,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -323,7 +338,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -333,7 +349,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -342,8 +359,7 @@ public final Builder masterTimeout(Function> f } /** - * Whether to update existing settings. If set to true existing - * settings on an index remain unchanged, the default is false + * If true, existing index settings remain unchanged. *

* API name: {@code preserve_existing} */ @@ -353,7 +369,8 @@ public final Builder preserveExisting(@Nullable Boolean value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -363,7 +380,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index 425f29b50..a8c0648f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -59,7 +59,9 @@ // typedef: indices.put_mapping.Request /** - * Updates the index mappings. + * Adds new fields to an existing data stream or index. You can also use this + * API to change the search settings of existing fields. For data streams, these + * changes are applied to all backing indices by default. * * @see API * specification @@ -184,9 +186,10 @@ public final SourceField source() { } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -236,8 +239,12 @@ public final List> dynamicTemplates() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -246,8 +253,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -268,7 +275,8 @@ public final List index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -311,7 +319,8 @@ public final Map runtime() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -321,8 +330,8 @@ public final Time timeout() { } /** - * When true, applies mappings only to the write index of an alias or data - * stream + * If true, the mappings are applied only to the current write + * index for the target. *

* API name: {@code write_index_only} */ @@ -583,9 +592,10 @@ public final Builder source(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -668,8 +678,12 @@ public final Builder dynamicTemplates(Map value, } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -681,8 +695,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -694,8 +712,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -733,7 +751,8 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -743,7 +762,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -847,7 +867,8 @@ public final Builder runtime(String key, Function * API name: {@code timeout} */ @@ -857,7 +878,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -866,8 +888,8 @@ public final Builder timeout(Function> fn) { } /** - * When true, applies mappings only to the write index of an alias or data - * stream + * If true, the mappings are applied only to the current write + * index for the target. *

* API name: {@code write_index_only} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index ed1fa320a..1a3cef3be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -53,7 +53,8 @@ // typedef: indices.put_template.Request /** - * Creates or updates an index template. + * Creates or updates an index template. Index templates define settings, + * mappings, and aliases that can be applied automatically to new indices. * * @see API * specification @@ -131,6 +132,8 @@ public final Boolean create() { } /** + * If true, returns settings in flat format. + *

* API name: {@code flat_settings} */ @Nullable @@ -202,6 +205,9 @@ public final Map settings() { } /** + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. + *

* API name: {@code timeout} */ @Nullable @@ -368,6 +374,8 @@ public final Builder create(@Nullable Boolean value) { } /** + * If true, returns settings in flat format. + *

* API name: {@code flat_settings} */ public final Builder flatSettings(@Nullable Boolean value) { @@ -490,6 +498,9 @@ public final Builder settings(String key, JsonData value) { } /** + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. + *

* API name: {@code timeout} */ public final Builder timeout(@Nullable Time value) { @@ -498,6 +509,9 @@ public final Builder timeout(@Nullable Time value) { } /** + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. + *

* API name: {@code timeout} */ public final Builder timeout(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java index d1aa5d14e..a14d5a7d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java @@ -47,7 +47,9 @@ // typedef: indices.recovery.Request /** - * Returns information about ongoing index shard recoveries. + * Returns information about ongoing and completed shard recoveries for one or + * more indices. For data streams, the API returns information for the stream’s + * backing indices. * * @see API * specification @@ -77,7 +79,7 @@ public static RecoveryRequest of(Functiontrue, the response only includes ongoing shard recoveries. *

* API name: {@code active_only} */ @@ -87,7 +89,8 @@ public final Boolean activeOnly() { } /** - * Whether to display detailed information about shard recovery + * If true, the response includes detailed information about shard + * recoveries. *

* API name: {@code detailed} */ @@ -97,8 +100,9 @@ public final Boolean detailed() { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -123,7 +127,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List index; /** - * Display only those recoveries that are currently on-going + * If true, the response only includes ongoing shard recoveries. *

* API name: {@code active_only} */ @@ -133,7 +137,8 @@ public final Builder activeOnly(@Nullable Boolean value) { } /** - * Whether to display detailed information about shard recovery + * If true, the response includes detailed information about shard + * recoveries. *

* API name: {@code detailed} */ @@ -143,8 +148,9 @@ public final Builder detailed(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -156,8 +162,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java index efd373aae..79c99a943 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -48,7 +48,9 @@ // typedef: indices.refresh.Request /** - * Performs the refresh operation in one or more indices. + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. * * @see API * specification @@ -81,9 +83,10 @@ public static RefreshRequest of(Function> } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -93,8 +96,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -103,8 +110,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -114,8 +121,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -143,9 +151,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List index; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -155,8 +164,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -168,8 +181,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -181,8 +198,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -192,8 +209,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -205,8 +223,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersResponse.java index 79089a3a1..6dba25d0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersResponse.java @@ -23,23 +23,15 @@ package co.elastic.clients.elasticsearch.indices; -import co.elastic.clients.elasticsearch._types.ShardStatistics; -import co.elastic.clients.elasticsearch.indices.reload_search_analyzers.ReloadDetails; +import co.elastic.clients.elasticsearch.indices.reload_search_analyzers.ReloadResult; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.util.List; import java.util.Objects; import java.util.function.Function; -import javax.annotation.Nullable; // typedef: indices.reload_search_analyzers.Response @@ -50,17 +42,11 @@ * specification */ @JsonpDeserializable -public class ReloadSearchAnalyzersResponse implements JsonpSerializable { - private final List reloadDetails; - - private final ShardStatistics shards; - +public class ReloadSearchAnalyzersResponse extends ReloadResult { // --------------------------------------------------------------------------------------------- private ReloadSearchAnalyzersResponse(Builder builder) { - - this.reloadDetails = ApiTypeHelper.unmodifiableRequired(builder.reloadDetails, this, "reloadDetails"); - this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); + super(builder); } @@ -68,108 +54,15 @@ public static ReloadSearchAnalyzersResponse of(Function reloadDetails() { - return this.reloadDetails; - } - - /** - * Required - API name: {@code _shards} - */ - public final ShardStatistics shards() { - return this.shards; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (ApiTypeHelper.isDefined(this.reloadDetails)) { - generator.writeKey("reload_details"); - generator.writeStartArray(); - for (ReloadDetails item0 : this.reloadDetails) { - item0.serialize(generator, mapper); - - } - generator.writeEnd(); - - } - generator.writeKey("_shards"); - this.shards.serialize(generator, mapper); - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - // --------------------------------------------------------------------------------------------- /** * Builder for {@link ReloadSearchAnalyzersResponse}. */ - public static class Builder extends WithJsonObjectBuilderBase + public static class Builder extends ReloadResult.AbstractBuilder implements ObjectBuilder { - private List reloadDetails; - - private ShardStatistics shards; - - /** - * Required - API name: {@code reload_details} - *

- * Adds all elements of list to reloadDetails. - */ - public final Builder reloadDetails(List list) { - this.reloadDetails = _listAddAll(this.reloadDetails, list); - return this; - } - - /** - * Required - API name: {@code reload_details} - *

- * Adds one or more values to reloadDetails. - */ - public final Builder reloadDetails(ReloadDetails value, ReloadDetails... values) { - this.reloadDetails = _listAdd(this.reloadDetails, value, values); - return this; - } - - /** - * Required - API name: {@code reload_details} - *

- * Adds a value to reloadDetails using a builder lambda. - */ - public final Builder reloadDetails(Function> fn) { - return reloadDetails(fn.apply(new ReloadDetails.Builder()).build()); - } - - /** - * Required - API name: {@code _shards} - */ - public final Builder shards(ShardStatistics value) { - this.shards = value; - return this; - } - - /** - * Required - API name: {@code _shards} - */ - public final Builder shards(Function> fn) { - return this.shards(fn.apply(new ShardStatistics.Builder()).build()); - } - @Override protected Builder self() { return this; @@ -198,10 +91,7 @@ public ReloadSearchAnalyzersResponse build() { protected static void setupReloadSearchAnalyzersResponseDeserializer( ObjectDeserializer op) { - - op.add(Builder::reloadDetails, JsonpDeserializer.arrayDeserializer(ReloadDetails._DESERIALIZER), - "reload_details"); - op.add(Builder::shards, ShardStatistics._DESERIALIZER, "_shards"); + ReloadResult.setupReloadResultDeserializer(op); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index f612be740..72243b720 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -47,7 +47,8 @@ // typedef: indices.resolve_index.Request /** - * Returns information about any matching indices, aliases, and data streams + * Resolves the specified name(s) and/or index patterns for indices, aliases, + * and data streams. Multiple patterns and remote clusters are supported. * * @see API * specification @@ -72,8 +73,12 @@ public static ResolveIndexRequest of(Function

* API name: {@code expand_wildcards} */ @@ -82,7 +87,10 @@ public final List expandWildcards() { } /** - * Required - A comma-separated list of names or wildcard expressions + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. *

* API name: {@code name} */ @@ -105,8 +113,12 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -118,8 +130,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -131,7 +147,10 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Required - A comma-separated list of names or wildcard expressions + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. *

* API name: {@code name} *

@@ -143,7 +162,10 @@ public final Builder name(List list) { } /** - * Required - A comma-separated list of names or wildcard expressions + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index 0b09e6c8b..de3403eb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -52,8 +52,7 @@ // typedef: indices.rollover.Request /** - * Updates an alias to point to a new index when the existing index is - * considered to be too large or too old. + * Creates a new index for a data stream or index alias. * * @see API * specification @@ -109,7 +108,7 @@ public static RolloverRequest of(Function * API name: {@code alias} */ @@ -118,6 +117,8 @@ public final String alias() { } /** + * Aliases for the target index. Data streams do not support this parameter. + *

* API name: {@code aliases} */ public final Map aliases() { @@ -125,6 +126,13 @@ public final Map aliases() { } /** + * Conditions for the rollover. If specified, Elasticsearch only performs the + * rollover if the current index satisfies these conditions. If this parameter + * is not specified, Elasticsearch performs the rollover unconditionally. If + * conditions are specified, at least one of them must be a max_* + * condition. The index will rollover if any max_* condition is + * satisfied and all min_* conditions are satisfied. + *

* API name: {@code conditions} */ @Nullable @@ -133,8 +141,8 @@ public final RolloverConditions conditions() { } /** - * If set to true the rollover action will only be validated but not actually - * performed even if a condition matches. The default is false + * If true, checks whether the current index satisfies the + * specified conditions but does not perform a rollover. *

* API name: {@code dry_run} */ @@ -144,6 +152,9 @@ public final Boolean dryRun() { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping paramaters. + *

* API name: {@code mappings} */ @Nullable @@ -152,7 +163,8 @@ public final TypeMapping mappings() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -162,7 +174,8 @@ public final Time masterTimeout() { } /** - * The name of the rollover index + * Name of the index to create. Supports date math. Data streams do not support + * this parameter. *

* API name: {@code new_index} */ @@ -172,6 +185,9 @@ public final String newIndex() { } /** + * Configuration options for the index. Data streams do not support this + * parameter. + *

* API name: {@code settings} */ public final Map settings() { @@ -179,7 +195,8 @@ public final Map settings() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -189,8 +206,9 @@ public final Time timeout() { } /** - * Set the number of active shards to wait for on the newly created rollover - * index before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -282,7 +300,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** - * Required - The name of the alias to rollover + * Required - Name of the data stream or index alias to roll over. *

* API name: {@code alias} */ @@ -292,6 +310,8 @@ public final Builder alias(String value) { } /** + * Aliases for the target index. Data streams do not support this parameter. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -302,6 +322,8 @@ public final Builder aliases(Map map) { } /** + * Aliases for the target index. Data streams do not support this parameter. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -312,6 +334,8 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases for the target index. Data streams do not support this parameter. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -321,6 +345,13 @@ public final Builder aliases(String key, Functionmax_* + * condition. The index will rollover if any max_* condition is + * satisfied and all min_* conditions are satisfied. + *

* API name: {@code conditions} */ public final Builder conditions(@Nullable RolloverConditions value) { @@ -329,6 +360,13 @@ public final Builder conditions(@Nullable RolloverConditions value) { } /** + * Conditions for the rollover. If specified, Elasticsearch only performs the + * rollover if the current index satisfies these conditions. If this parameter + * is not specified, Elasticsearch performs the rollover unconditionally. If + * conditions are specified, at least one of them must be a max_* + * condition. The index will rollover if any max_* condition is + * satisfied and all min_* conditions are satisfied. + *

* API name: {@code conditions} */ public final Builder conditions(Function> fn) { @@ -336,8 +374,8 @@ public final Builder conditions(Functiontrue, checks whether the current index satisfies the + * specified conditions but does not perform a rollover. *

* API name: {@code dry_run} */ @@ -347,6 +385,9 @@ public final Builder dryRun(@Nullable Boolean value) { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping paramaters. + *

* API name: {@code mappings} */ public final Builder mappings(@Nullable TypeMapping value) { @@ -355,6 +396,9 @@ public final Builder mappings(@Nullable TypeMapping value) { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping paramaters. + *

* API name: {@code mappings} */ public final Builder mappings(Function> fn) { @@ -362,7 +406,8 @@ public final Builder mappings(Function * API name: {@code master_timeout} */ @@ -372,7 +417,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -381,7 +427,8 @@ public final Builder masterTimeout(Function> f } /** - * The name of the rollover index + * Name of the index to create. Supports date math. Data streams do not support + * this parameter. *

* API name: {@code new_index} */ @@ -391,6 +438,9 @@ public final Builder newIndex(@Nullable String value) { } /** + * Configuration options for the index. Data streams do not support this + * parameter. + *

* API name: {@code settings} *

* Adds all entries of map to settings. @@ -401,6 +451,9 @@ public final Builder settings(Map map) { } /** + * Configuration options for the index. Data streams do not support this + * parameter. + *

* API name: {@code settings} *

* Adds an entry to settings. @@ -411,7 +464,8 @@ public final Builder settings(String key, JsonData value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -421,7 +475,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -430,8 +485,9 @@ public final Builder timeout(Function> fn) { } /** - * Set the number of active shards to wait for on the newly created rollover - * index before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -441,8 +497,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Set the number of active shards to wait for on the newly created rollover - * index before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java index 44d668fea..2d120ea51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java @@ -48,7 +48,8 @@ // typedef: indices.segments.Request /** - * Provides low-level information about segments in a Lucene index. + * Returns low-level information about the Lucene segments in index shards. For + * data streams, the API returns information about the stream’s backing indices. * * @see API * specification @@ -85,9 +86,10 @@ public static SegmentsRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -97,8 +99,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -107,8 +113,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -118,8 +124,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -128,7 +135,7 @@ public final List index() { } /** - * Includes detailed memory usage by Lucene. + * If true, the request returns a verbose response. *

* API name: {@code verbose} */ @@ -160,9 +167,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean verbose; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -172,8 +180,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -185,8 +197,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -198,8 +214,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -209,8 +225,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -222,8 +239,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names; use _all or empty string - * to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -235,7 +253,7 @@ public final Builder index(String value, String... values) { } /** - * Includes detailed memory usage by Lucene. + * If true, the request returns a verbose response. *

* API name: {@code verbose} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java index d42536460..b8ea5c6e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java @@ -49,7 +49,9 @@ // typedef: indices.shard_stores.Request /** - * Provides store information for shard copies of indices. + * Retrieves store information about replica shards in one or more indices. For + * data streams, the API retrieves store information for the stream’s backing + * indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java index 1b614c81a..6be8559fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java @@ -49,7 +49,7 @@ // typedef: indices.shrink.Request /** - * Allow to shrink an existing index into a new index with fewer primary shards. + * Shrinks an existing index into a new index with fewer primary shards. * * @see API * specification @@ -92,6 +92,8 @@ public static ShrinkRequest of(Function> f } /** + * The key is the alias name. Index alias names support date math. + *

* API name: {@code aliases} */ public final Map aliases() { @@ -99,7 +101,7 @@ public final Map aliases() { } /** - * Required - The name of the source index to shrink + * Required - Name of the source index to shrink. *

* API name: {@code index} */ @@ -108,7 +110,8 @@ public final String index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -118,6 +121,8 @@ public final Time masterTimeout() { } /** + * Configuration options for the target index. + *

* API name: {@code settings} */ public final Map settings() { @@ -125,7 +130,7 @@ public final Map settings() { } /** - * Required - The name of the target index to shrink into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -134,7 +139,8 @@ public final String target() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -144,8 +150,9 @@ public final Time timeout() { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -217,6 +224,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** + * The key is the alias name. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -227,6 +236,8 @@ public final Builder aliases(Map map) { } /** + * The key is the alias name. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -237,6 +248,8 @@ public final Builder aliases(String key, Alias value) { } /** + * The key is the alias name. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -246,7 +259,7 @@ public final Builder aliases(String key, Function * API name: {@code index} */ @@ -256,7 +269,8 @@ public final Builder index(String value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -266,7 +280,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -275,6 +290,8 @@ public final Builder masterTimeout(Function> f } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds all entries of map to settings. @@ -285,6 +302,8 @@ public final Builder settings(Map map) { } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds an entry to settings. @@ -295,7 +314,7 @@ public final Builder settings(String key, JsonData value) { } /** - * Required - The name of the target index to shrink into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -305,7 +324,8 @@ public final Builder target(String value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -315,7 +335,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -324,8 +345,9 @@ public final Builder timeout(Function> fn) { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -335,8 +357,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index addad2d0b..5182c71fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -53,9 +53,7 @@ // typedef: indices.simulate_index_template.Request /** - * Simulate matching the given index name against the index templates in the - * system - * + * * @see API * specification @@ -118,6 +116,9 @@ public static SimulateIndexTemplateRequest of(Function * API name: {@code _meta} */ public final Map meta() { @@ -125,6 +126,13 @@ public final Map meta() { } /** + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false, then indices or data streams matching the template must + * always be explicitly created, and may never be automatically created. + *

* API name: {@code allow_auto_create} */ @Nullable @@ -133,6 +141,10 @@ public final Boolean allowAutoCreate() { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} */ public final List composedOf() { @@ -154,6 +166,10 @@ public final Boolean create() { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ @Nullable @@ -172,6 +188,9 @@ public final Boolean includeDefaults() { } /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

* API name: {@code index_patterns} */ public final List indexPatterns() { @@ -199,6 +218,12 @@ public final String name() { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ @Nullable @@ -207,6 +232,9 @@ public final Integer priority() { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ @Nullable @@ -215,6 +243,9 @@ public final IndexTemplateMapping template() { } /** + * Version number used to manage index templates externally. This number is not + * automatically generated by Elasticsearch. + *

* API name: {@code version} */ @Nullable @@ -337,6 +368,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Long version; /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds all entries of map to meta. @@ -347,6 +381,9 @@ public final Builder meta(Map map) { } /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds an entry to meta. @@ -357,6 +394,13 @@ public final Builder meta(String key, JsonData value) { } /** + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false, then indices or data streams matching the template must + * always be explicitly created, and may never be automatically created. + *

* API name: {@code allow_auto_create} */ public final Builder allowAutoCreate(@Nullable Boolean value) { @@ -365,6 +409,10 @@ public final Builder allowAutoCreate(@Nullable Boolean value) { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} *

* Adds all elements of list to composedOf. @@ -375,6 +423,10 @@ public final Builder composedOf(List list) { } /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

* API name: {@code composed_of} *

* Adds one or more values to composedOf. @@ -399,6 +451,10 @@ public final Builder create(@Nullable Boolean value) { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream(@Nullable DataStreamVisibility value) { @@ -407,6 +463,10 @@ public final Builder dataStream(@Nullable DataStreamVisibility value) { } /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

* API name: {@code data_stream} */ public final Builder dataStream( @@ -425,6 +485,9 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

* API name: {@code index_patterns} *

* Adds all elements of list to indexPatterns. @@ -435,6 +498,9 @@ public final Builder indexPatterns(List list) { } /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

* API name: {@code index_patterns} *

* Adds one or more values to indexPatterns. @@ -476,6 +542,12 @@ public final Builder name(String value) { } /** + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

* API name: {@code priority} */ public final Builder priority(@Nullable Integer value) { @@ -484,6 +556,9 @@ public final Builder priority(@Nullable Integer value) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(@Nullable IndexTemplateMapping value) { @@ -492,6 +567,9 @@ public final Builder template(@Nullable IndexTemplateMapping value) { } /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

* API name: {@code template} */ public final Builder template(Function> fn) { @@ -499,6 +577,9 @@ public final Builder template(Function * API name: {@code version} */ public final Builder version(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java index 06c337b3b..9d9efa393 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java @@ -52,16 +52,12 @@ public class SlowlogTresholds implements JsonpSerializable { @Nullable private final SlowlogTresholdLevels fetch; - @Nullable - private final SlowlogTresholdLevels index; - // --------------------------------------------------------------------------------------------- private SlowlogTresholds(Builder builder) { this.query = builder.query; this.fetch = builder.fetch; - this.index = builder.index; } @@ -85,18 +81,6 @@ public final SlowlogTresholdLevels fetch() { return this.fetch; } - /** - * The indexing slow log, similar in functionality to the search slow log. The - * log file name ends with _index_indexing_slowlog.json. Log and - * the thresholds are configured in the same way as the search slowlog. - *

- * API name: {@code index} - */ - @Nullable - public final SlowlogTresholdLevels index() { - return this.index; - } - /** * Serialize this object to JSON. */ @@ -118,11 +102,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.fetch.serialize(generator, mapper); } - if (this.index != null) { - generator.writeKey("index"); - this.index.serialize(generator, mapper); - - } } @@ -144,9 +123,6 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SlowlogTresholdLevels fetch; - @Nullable - private SlowlogTresholdLevels index; - /** * API name: {@code query} */ @@ -177,29 +153,6 @@ public final Builder fetch(Function_index_indexing_slowlog.json. Log and - * the thresholds are configured in the same way as the search slowlog. - *

- * API name: {@code index} - */ - public final Builder index(@Nullable SlowlogTresholdLevels value) { - this.index = value; - return this; - } - - /** - * The indexing slow log, similar in functionality to the search slow log. The - * log file name ends with _index_indexing_slowlog.json. Log and - * the thresholds are configured in the same way as the search slowlog. - *

- * API name: {@code index} - */ - public final Builder index(Function> fn) { - return this.index(fn.apply(new SlowlogTresholdLevels.Builder()).build()); - } - @Override protected Builder self() { return this; @@ -230,7 +183,6 @@ protected static void setupSlowlogTresholdsDeserializer(ObjectDeserializerAPI * specification @@ -93,6 +92,8 @@ public static SplitRequest of(Function> fn) } /** + * Aliases for the resulting index. + *

* API name: {@code aliases} */ public final Map aliases() { @@ -100,7 +101,7 @@ public final Map aliases() { } /** - * Required - The name of the source index to split + * Required - Name of the source index to split. *

* API name: {@code index} */ @@ -109,7 +110,8 @@ public final String index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -119,6 +121,8 @@ public final Time masterTimeout() { } /** + * Configuration options for the target index. + *

* API name: {@code settings} */ public final Map settings() { @@ -126,7 +130,7 @@ public final Map settings() { } /** - * Required - The name of the target index to split into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -135,7 +139,8 @@ public final String target() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -145,8 +150,9 @@ public final Time timeout() { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -218,6 +224,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -228,6 +236,8 @@ public final Builder aliases(Map map) { } /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -238,6 +248,8 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases for the resulting index. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -247,7 +259,7 @@ public final Builder aliases(String key, Function * API name: {@code index} */ @@ -257,7 +269,8 @@ public final Builder index(String value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -267,7 +280,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -276,6 +290,8 @@ public final Builder masterTimeout(Function> f } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds all entries of map to settings. @@ -286,6 +302,8 @@ public final Builder settings(Map map) { } /** + * Configuration options for the target index. + *

* API name: {@code settings} *

* Adds an entry to settings. @@ -296,7 +314,7 @@ public final Builder settings(String key, JsonData value) { } /** - * Required - The name of the target index to split into + * Required - Name of the target index to create. *

* API name: {@code target} */ @@ -306,7 +324,8 @@ public final Builder target(String value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -316,7 +335,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -325,8 +345,9 @@ public final Builder timeout(Function> fn) { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -336,8 +357,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * Set the number of active shards to wait for on the shrunken index before the - * operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java index 089d56d85..2d8985c9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java @@ -49,8 +49,7 @@ // typedef: indices.unfreeze.Request /** - * Unfreezes an index. When a frozen index is unfrozen, the index goes through - * the normal recovery process and becomes writeable again. + * Unfreezes an index. * * @see API * specification @@ -95,9 +94,10 @@ public static UnfreezeRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -107,8 +107,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -117,8 +121,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -128,7 +132,7 @@ public final Boolean ignoreUnavailable() { } /** - * Required - The name of the index to unfreeze + * Required - Identifier for the index. *

* API name: {@code index} */ @@ -137,7 +141,8 @@ public final String index() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -147,7 +152,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -157,7 +163,9 @@ public final Time timeout() { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -194,9 +202,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String waitForActiveShards; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -206,8 +215,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -219,8 +232,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -232,8 +249,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -243,7 +260,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - The name of the index to unfreeze + * Required - Identifier for the index. *

* API name: {@code index} */ @@ -253,7 +270,8 @@ public final Builder index(String value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -263,7 +281,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -272,7 +291,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -282,7 +302,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -291,7 +312,9 @@ public final Builder timeout(Function> fn) { } /** - * Sets the number of active shards to wait for before the operation returns. + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java index 6450329d7..481d13657 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java @@ -48,7 +48,7 @@ // typedef: indices.update_aliases.Request /** - * Updates index aliases. + * Adds a data stream or index to an alias. * * @see API * specification @@ -78,6 +78,8 @@ public static UpdateAliasesRequest of(Function * API name: {@code actions} */ public final List actions() { @@ -85,7 +87,8 @@ public final List actions() { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -95,7 +98,8 @@ public final Time masterTimeout() { } /** - * Request timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -147,6 +151,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** + * Actions to perform. + *

* API name: {@code actions} *

* Adds all elements of list to actions. @@ -157,6 +163,8 @@ public final Builder actions(List list) { } /** + * Actions to perform. + *

* API name: {@code actions} *

* Adds one or more values to actions. @@ -167,6 +175,8 @@ public final Builder actions(Action value, Action... values) { } /** + * Actions to perform. + *

* API name: {@code actions} *

* Adds a value to actions using a builder lambda. @@ -176,7 +186,8 @@ public final Builder actions(Function> fn) } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -186,7 +197,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} */ @@ -195,7 +207,8 @@ public final Builder masterTimeout(Function> f } /** - * Request timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -205,7 +218,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Request timeout + * Period to wait for a response. If no response is received before the timeout + * expires, the request fails and returns an error. *

* API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java index 9a3c7959a..8a6c38380 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java @@ -52,7 +52,7 @@ // typedef: indices.validate_query.Request /** - * Allows a user to validate a potentially expensive query without executing it. + * Validates a potentially expensive query without executing it. * * @see API * specification @@ -125,7 +125,8 @@ public static ValidateQueryRequest of(Functiontrue, the validation is executed on all shards instead of one + * random shard per index. *

* API name: {@code all_shards} */ @@ -135,9 +136,10 @@ public final Boolean allShards() { } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -147,8 +149,7 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -158,7 +159,8 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -168,7 +170,8 @@ public final String analyzer() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -178,8 +181,9 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -189,8 +193,12 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -199,7 +207,8 @@ public final List expandWildcards() { } /** - * Return detailed information about the error + * If true, the response returns detailed information if an error + * has occurred. *

* API name: {@code explain} */ @@ -209,8 +218,8 @@ public final Boolean explain() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -220,8 +229,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names to restrict the operation; use - * _all or empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams or indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -230,8 +240,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -241,7 +251,7 @@ public final Boolean lenient() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -251,6 +261,8 @@ public final String q() { } /** + * Query in the Lucene query string syntax. + *

* API name: {@code query} */ @Nullable @@ -259,8 +271,8 @@ public final Query query() { } /** - * Provide a more detailed explanation showing the actual Lucene query that will - * be executed. + * If true, returns a more detailed explanation showing the actual + * Lucene query that will be executed. *

* API name: {@code rewrite} */ @@ -340,7 +352,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean rewrite; /** - * Execute validation on all shards instead of one random shard per index + * If true, the validation is executed on all shards instead of one + * random shard per index. *

* API name: {@code all_shards} */ @@ -350,9 +363,10 @@ public final Builder allShards(@Nullable Boolean value) { } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -362,8 +376,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -373,7 +386,8 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -383,7 +397,8 @@ public final Builder analyzer(@Nullable String value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -393,8 +408,9 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -404,8 +420,12 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -417,8 +437,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as + * open,hidden. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -430,7 +454,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return detailed information about the error + * If true, the response returns detailed information if an error + * has occurred. *

* API name: {@code explain} */ @@ -440,8 +465,8 @@ public final Builder explain(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -451,8 +476,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names to restrict the operation; use - * _all or empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams or indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -464,8 +490,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to restrict the operation; use - * _all or empty string to perform the operation on all indices + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams or indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -477,8 +504,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -488,7 +515,7 @@ public final Builder lenient(@Nullable Boolean value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -498,6 +525,8 @@ public final Builder q(@Nullable String value) { } /** + * Query in the Lucene query string syntax. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -506,6 +535,8 @@ public final Builder query(@Nullable Query value) { } /** + * Query in the Lucene query string syntax. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -513,8 +544,8 @@ public final Builder query(Function> fn) { } /** - * Provide a more detailed explanation showing the actual Lucene query that will - * be executed. + * If true, returns a more detailed explanation showing the actual + * Lucene query that will be executed. *

* API name: {@code rewrite} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java index 4a5dc480f..3b9efd510 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java @@ -55,22 +55,22 @@ public class DataStreamsStatsItem implements JsonpSerializable { private final String dataStream; + private final long maximumTimestamp; + @Nullable private final String storeSize; private final int storeSizeBytes; - private final long maximumTimestamp; - // --------------------------------------------------------------------------------------------- private DataStreamsStatsItem(Builder builder) { this.backingIndices = ApiTypeHelper.requireNonNull(builder.backingIndices, this, "backingIndices"); this.dataStream = ApiTypeHelper.requireNonNull(builder.dataStream, this, "dataStream"); + this.maximumTimestamp = ApiTypeHelper.requireNonNull(builder.maximumTimestamp, this, "maximumTimestamp"); this.storeSize = builder.storeSize; this.storeSizeBytes = ApiTypeHelper.requireNonNull(builder.storeSizeBytes, this, "storeSizeBytes"); - this.maximumTimestamp = ApiTypeHelper.requireNonNull(builder.maximumTimestamp, this, "maximumTimestamp"); } @@ -79,20 +79,42 @@ public static DataStreamsStatsItem of(Function + * API name: {@code backing_indices} */ public final int backingIndices() { return this.backingIndices; } /** - * Required - API name: {@code data_stream} + * Required - Name of the data stream. + *

+ * API name: {@code data_stream} */ public final String dataStream() { return this.dataStream; } /** + * Required - The data stream’s highest @timestamp value, converted + * to milliseconds since the Unix epoch. NOTE: This timestamp is provided as a + * best effort. The data stream may contain @timestamp values + * higher than this if one or more of the following conditions are met: The + * stream contains closed backing indices; Backing indices with a lower + * generation contain higher @timestamp values. + *

+ * API name: {@code maximum_timestamp} + */ + public final long maximumTimestamp() { + return this.maximumTimestamp; + } + + /** + * Total size of all shards for the data stream’s backing indices. This + * parameter is only returned if the human query parameter is + * true. + *

* API name: {@code store_size} */ @Nullable @@ -101,19 +123,15 @@ public final String storeSize() { } /** - * Required - API name: {@code store_size_bytes} + * Required - Total size, in bytes, of all shards for the data stream’s backing + * indices. + *

+ * API name: {@code store_size_bytes} */ public final int storeSizeBytes() { return this.storeSizeBytes; } - /** - * Required - API name: {@code maximum_timestamp} - */ - public final long maximumTimestamp() { - return this.maximumTimestamp; - } - /** * Serialize this object to JSON. */ @@ -131,6 +149,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("data_stream"); generator.write(this.dataStream); + generator.writeKey("maximum_timestamp"); + generator.write(this.maximumTimestamp); + if (this.storeSize != null) { generator.writeKey("store_size"); generator.write(this.storeSize); @@ -139,9 +160,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("store_size_bytes"); generator.write(this.storeSizeBytes); - generator.writeKey("maximum_timestamp"); - generator.write(this.maximumTimestamp); - } @Override @@ -162,15 +180,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String dataStream; + private Long maximumTimestamp; + @Nullable private String storeSize; private Integer storeSizeBytes; - private Long maximumTimestamp; - /** - * Required - API name: {@code backing_indices} + * Required - Current number of backing indices for the data stream. + *

+ * API name: {@code backing_indices} */ public final Builder backingIndices(int value) { this.backingIndices = value; @@ -178,7 +198,9 @@ public final Builder backingIndices(int value) { } /** - * Required - API name: {@code data_stream} + * Required - Name of the data stream. + *

+ * API name: {@code data_stream} */ public final Builder dataStream(String value) { this.dataStream = value; @@ -186,26 +208,40 @@ public final Builder dataStream(String value) { } /** - * API name: {@code store_size} + * Required - The data stream’s highest @timestamp value, converted + * to milliseconds since the Unix epoch. NOTE: This timestamp is provided as a + * best effort. The data stream may contain @timestamp values + * higher than this if one or more of the following conditions are met: The + * stream contains closed backing indices; Backing indices with a lower + * generation contain higher @timestamp values. + *

+ * API name: {@code maximum_timestamp} */ - public final Builder storeSize(@Nullable String value) { - this.storeSize = value; + public final Builder maximumTimestamp(long value) { + this.maximumTimestamp = value; return this; } /** - * Required - API name: {@code store_size_bytes} + * Total size of all shards for the data stream’s backing indices. This + * parameter is only returned if the human query parameter is + * true. + *

+ * API name: {@code store_size} */ - public final Builder storeSizeBytes(int value) { - this.storeSizeBytes = value; + public final Builder storeSize(@Nullable String value) { + this.storeSize = value; return this; } /** - * Required - API name: {@code maximum_timestamp} + * Required - Total size, in bytes, of all shards for the data stream’s backing + * indices. + *

+ * API name: {@code store_size_bytes} */ - public final Builder maximumTimestamp(long value) { - this.maximumTimestamp = value; + public final Builder storeSizeBytes(int value) { + this.storeSizeBytes = value; return this; } @@ -239,9 +275,9 @@ protected static void setupDataStreamsStatsItemDeserializer(ObjectDeserializer + * API name: {@code data_stream} */ - public final String index() { - return this.index; + public final String dataStream() { + return this.dataStream; } /** - * Required - API name: {@code data_stream} + * Required - Index for the action. + *

+ * API name: {@code index} */ - public final String dataStream() { - return this.dataStream; + public final String index() { + return this.index; } /** @@ -99,12 +103,12 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("index"); - generator.write(this.index); - generator.writeKey("data_stream"); generator.write(this.dataStream); + generator.writeKey("index"); + generator.write(this.index); + } @Override @@ -121,23 +125,27 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String index; - private String dataStream; + private String index; + /** - * Required - API name: {@code index} + * Required - Data stream targeted by the action. + *

+ * API name: {@code data_stream} */ - public final Builder index(String value) { - this.index = value; + public final Builder dataStream(String value) { + this.dataStream = value; return this; } /** - * Required - API name: {@code data_stream} + * Required - Index for the action. + *

+ * API name: {@code index} */ - public final Builder dataStream(String value) { - this.dataStream = value; + public final Builder index(String value) { + this.index = value; return this; } @@ -170,8 +178,8 @@ public IndexAndDataStreamAction build() { protected static void setupIndexAndDataStreamActionDeserializer( ObjectDeserializer op) { - op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); op.add(Builder::dataStream, JsonpDeserializer.stringDeserializer(), "data_stream"); + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index d17d83911..86aba8c79 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -81,6 +81,11 @@ public static IndexTemplateMapping of(Functiondata_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} */ public final Map aliases() { @@ -88,6 +93,9 @@ public final Map aliases() { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping parameters. + *

* API name: {@code mappings} */ @Nullable @@ -96,6 +104,8 @@ public final TypeMapping mappings() { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ @Nullable @@ -178,6 +188,11 @@ public static class Builder extends WithJsonObjectBuilderBase private DataLifecycle lifecycle; /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds all entries of map to aliases. @@ -188,6 +203,11 @@ public final Builder aliases(Map map) { } /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds an entry to aliases. @@ -198,6 +218,11 @@ public final Builder aliases(String key, Alias value) { } /** + * Aliases to add. If the index template includes a data_stream + * object, these are data stream aliases. Otherwise, these are index aliases. + * Data stream aliases ignore the index_routing, + * routing, and search_routing options. + *

* API name: {@code aliases} *

* Adds an entry to aliases using a builder lambda. @@ -207,6 +232,9 @@ public final Builder aliases(String key, Function * API name: {@code mappings} */ public final Builder mappings(@Nullable TypeMapping value) { @@ -215,6 +243,9 @@ public final Builder mappings(@Nullable TypeMapping value) { } /** + * Mapping for fields in the index. If specified, this mapping can include field + * names, field data types, and mapping parameters. + *

* API name: {@code mappings} */ public final Builder mappings(Function> fn) { @@ -222,6 +253,8 @@ public final Builder mappings(Function * API name: {@code settings} */ public final Builder settings(@Nullable IndexSettings value) { @@ -230,6 +263,8 @@ public final Builder settings(@Nullable IndexSettings value) { } /** + * Configuration options for the index. + *

* API name: {@code settings} */ public final Builder settings(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java new file mode 100644 index 000000000..568f6a43f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java @@ -0,0 +1,212 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices.reload_search_analyzers; + +import co.elastic.clients.elasticsearch._types.ShardStatistics; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.reload_search_analyzers.ReloadResult + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ReloadResult implements JsonpSerializable { + private final List reloadDetails; + + private final ShardStatistics shards; + + // --------------------------------------------------------------------------------------------- + + protected ReloadResult(AbstractBuilder builder) { + + this.reloadDetails = ApiTypeHelper.unmodifiableRequired(builder.reloadDetails, this, "reloadDetails"); + this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); + + } + + public static ReloadResult reloadResultOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code reload_details} + */ + public final List reloadDetails() { + return this.reloadDetails; + } + + /** + * Required - API name: {@code _shards} + */ + public final ShardStatistics shards() { + return this.shards; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.reloadDetails)) { + generator.writeKey("reload_details"); + generator.writeStartArray(); + for (ReloadDetails item0 : this.reloadDetails) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + generator.writeKey("_shards"); + this.shards.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ReloadResult}. + */ + + public static class Builder extends ReloadResult.AbstractBuilder implements ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ReloadResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReloadResult build() { + _checkSingleUse(); + + return new ReloadResult(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private List reloadDetails; + + private ShardStatistics shards; + + /** + * Required - API name: {@code reload_details} + *

+ * Adds all elements of list to reloadDetails. + */ + public final BuilderT reloadDetails(List list) { + this.reloadDetails = _listAddAll(this.reloadDetails, list); + return self(); + } + + /** + * Required - API name: {@code reload_details} + *

+ * Adds one or more values to reloadDetails. + */ + public final BuilderT reloadDetails(ReloadDetails value, ReloadDetails... values) { + this.reloadDetails = _listAdd(this.reloadDetails, value, values); + return self(); + } + + /** + * Required - API name: {@code reload_details} + *

+ * Adds a value to reloadDetails using a builder lambda. + */ + public final BuilderT reloadDetails(Function> fn) { + return reloadDetails(fn.apply(new ReloadDetails.Builder()).build()); + } + + /** + * Required - API name: {@code _shards} + */ + public final BuilderT shards(ShardStatistics value) { + this.shards = value; + return self(); + } + + /** + * Required - API name: {@code _shards} + */ + public final BuilderT shards(Function> fn) { + return this.shards(fn.apply(new ShardStatistics.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ReloadResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ReloadResult::setupReloadResultDeserializer); + + protected static > void setupReloadResultDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::reloadDetails, JsonpDeserializer.arrayDeserializer(ReloadDetails._DESERIALIZER), + "reload_details"); + op.add(AbstractBuilder::shards, ShardStatistics._DESERIALIZER, "_shards"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java index 9f0db7d38..8041879c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java @@ -114,6 +114,8 @@ public Action.Kind _actionKind() { } /** + * Alias for the action. Index alias names support date math. + *

* API name: {@code alias} */ @Nullable @@ -122,6 +124,8 @@ public final String alias() { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} */ public final List aliases() { @@ -129,6 +133,8 @@ public final List aliases() { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ @Nullable @@ -137,6 +143,8 @@ public final Query filter() { } /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ @Nullable @@ -145,6 +153,8 @@ public final String index() { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} */ public final List indices() { @@ -152,6 +162,10 @@ public final List indices() { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. Data + * stream aliases don’t support this parameter. + *

* API name: {@code index_routing} */ @Nullable @@ -160,6 +174,8 @@ public final String indexRouting() { } /** + * If true, the alias is hidden. + *

* API name: {@code is_hidden} */ @Nullable @@ -168,6 +184,8 @@ public final Boolean isHidden() { } /** + * If true, sets the write index or data stream for the alias. + *

* API name: {@code is_write_index} */ @Nullable @@ -176,6 +194,9 @@ public final Boolean isWriteIndex() { } /** + * Value used to route indexing and search operations to a specific shard. Data + * stream aliases don’t support this parameter. + *

* API name: {@code routing} */ @Nullable @@ -184,6 +205,10 @@ public final String routing() { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. Data stream + * aliases don’t support this parameter. + *

* API name: {@code search_routing} */ @Nullable @@ -192,6 +217,8 @@ public final String searchRouting() { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ @Nullable @@ -324,6 +351,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean mustExist; /** + * Alias for the action. Index alias names support date math. + *

* API name: {@code alias} */ public final Builder alias(@Nullable String value) { @@ -332,6 +361,8 @@ public final Builder alias(@Nullable String value) { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds all elements of list to aliases. @@ -342,6 +373,8 @@ public final Builder aliases(List list) { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds one or more values to aliases. @@ -352,6 +385,8 @@ public final Builder aliases(String value, String... values) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Query value) { @@ -360,6 +395,8 @@ public final Builder filter(@Nullable Query value) { } /** + * Query used to limit documents the alias can access. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -367,6 +404,8 @@ public final Builder filter(Function> fn) { } /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ public final Builder index(@Nullable String value) { @@ -375,6 +414,8 @@ public final Builder index(@Nullable String value) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds all elements of list to indices. @@ -385,6 +426,8 @@ public final Builder indices(List list) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds one or more values to indices. @@ -395,6 +438,10 @@ public final Builder indices(String value, String... values) { } /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. Data + * stream aliases don’t support this parameter. + *

* API name: {@code index_routing} */ public final Builder indexRouting(@Nullable String value) { @@ -403,6 +450,8 @@ public final Builder indexRouting(@Nullable String value) { } /** + * If true, the alias is hidden. + *

* API name: {@code is_hidden} */ public final Builder isHidden(@Nullable Boolean value) { @@ -411,6 +460,8 @@ public final Builder isHidden(@Nullable Boolean value) { } /** + * If true, sets the write index or data stream for the alias. + *

* API name: {@code is_write_index} */ public final Builder isWriteIndex(@Nullable Boolean value) { @@ -419,6 +470,9 @@ public final Builder isWriteIndex(@Nullable Boolean value) { } /** + * Value used to route indexing and search operations to a specific shard. Data + * stream aliases don’t support this parameter. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -427,6 +481,10 @@ public final Builder routing(@Nullable String value) { } /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. Data stream + * aliases don’t support this parameter. + *

* API name: {@code search_routing} */ public final Builder searchRouting(@Nullable String value) { @@ -435,6 +493,8 @@ public final Builder searchRouting(@Nullable String value) { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ public final Builder mustExist(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java index 7c529693a..a75cd3b96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java @@ -89,6 +89,8 @@ public Action.Kind _actionKind() { } /** + * Alias for the action. Index alias names support date math. + *

* API name: {@code alias} */ @Nullable @@ -97,6 +99,8 @@ public final String alias() { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} */ public final List aliases() { @@ -104,6 +108,8 @@ public final List aliases() { } /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ @Nullable @@ -112,6 +118,8 @@ public final String index() { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} */ public final List indices() { @@ -119,6 +127,8 @@ public final List indices() { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ @Nullable @@ -203,6 +213,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean mustExist; /** + * Alias for the action. Index alias names support date math. + *

* API name: {@code alias} */ public final Builder alias(@Nullable String value) { @@ -211,6 +223,8 @@ public final Builder alias(@Nullable String value) { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds all elements of list to aliases. @@ -221,6 +235,8 @@ public final Builder aliases(List list) { } /** + * Aliases for the action. Index alias names support date math. + *

* API name: {@code aliases} *

* Adds one or more values to aliases. @@ -231,6 +247,8 @@ public final Builder aliases(String value, String... values) { } /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ public final Builder index(@Nullable String value) { @@ -239,6 +257,8 @@ public final Builder index(@Nullable String value) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds all elements of list to indices. @@ -249,6 +269,8 @@ public final Builder indices(List list) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds one or more values to indices. @@ -259,6 +281,8 @@ public final Builder indices(String value, String... values) { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ public final Builder mustExist(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java index 3ccc22809..f33e7af4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java @@ -82,6 +82,8 @@ public Action.Kind _actionKind() { } /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ @Nullable @@ -90,6 +92,8 @@ public final String index() { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} */ public final List indices() { @@ -97,6 +101,8 @@ public final List indices() { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ @Nullable @@ -160,6 +166,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean mustExist; /** + * Data stream or index for the action. Supports wildcards (*). + *

* API name: {@code index} */ public final Builder index(@Nullable String value) { @@ -168,6 +176,8 @@ public final Builder index(@Nullable String value) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds all elements of list to indices. @@ -178,6 +188,8 @@ public final Builder indices(List list) { } /** + * Data streams or indices for the action. Supports wildcards (*). + *

* API name: {@code indices} *

* Adds one or more values to indices. @@ -188,6 +200,8 @@ public final Builder indices(String value, String... values) { } /** + * If true, the alias must exist to perform the action. + *

* API name: {@code must_exist} */ public final Builder mustExist(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java index aa2cb3011..3e890e2fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java @@ -50,6 +50,9 @@ */ @JsonpDeserializable public class FillMaskInferenceOptions implements InferenceConfigCreateVariant, JsonpSerializable { + @Nullable + private final String maskToken; + @Nullable private final Integer numTopClasses; @@ -63,6 +66,7 @@ public class FillMaskInferenceOptions implements InferenceConfigCreateVariant, J private FillMaskInferenceOptions(Builder builder) { + this.maskToken = builder.maskToken; this.numTopClasses = builder.numTopClasses; this.tokenization = builder.tokenization; this.resultsField = builder.resultsField; @@ -81,6 +85,22 @@ public InferenceConfigCreate.Kind _inferenceConfigCreateKind() { return InferenceConfigCreate.Kind.FillMask; } + /** + * The string/token which will be removed from incoming documents and replaced + * with the inference prediction(s). In a response, this field contains the mask + * token for the specified model/tokenizer. Each model and tokenizer has a + * predefined mask token which cannot be changed. Thus, it is recommended not to + * set this value in requests. However, if this field is present in a request, + * its value must match the predefined value for that model/tokenizer, otherwise + * the request will fail. + *

+ * API name: {@code mask_token} + */ + @Nullable + public final String maskToken() { + return this.maskToken; + } + /** * Specifies the number of top class predictions to return. Defaults to 0. *

@@ -123,6 +143,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.maskToken != null) { + generator.writeKey("mask_token"); + generator.write(this.maskToken); + + } if (this.numTopClasses != null) { generator.writeKey("num_top_classes"); generator.write(this.numTopClasses); @@ -155,6 +180,9 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private String maskToken; + @Nullable private Integer numTopClasses; @@ -164,6 +192,22 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + /** + * The string/token which will be removed from incoming documents and replaced + * with the inference prediction(s). In a response, this field contains the mask + * token for the specified model/tokenizer. Each model and tokenizer has a + * predefined mask token which cannot be changed. Thus, it is recommended not to + * set this value in requests. However, if this field is present in a request, + * its value must match the predefined value for that model/tokenizer, otherwise + * the request will fail. + *

+ * API name: {@code mask_token} + */ + public final Builder maskToken(@Nullable String value) { + this.maskToken = value; + return this; + } + /** * Specifies the number of top class predictions to return. Defaults to 0. *

@@ -233,6 +277,7 @@ public FillMaskInferenceOptions build() { protected static void setupFillMaskInferenceOptionsDeserializer( ObjectDeserializer op) { + op.add(Builder::maskToken, JsonpDeserializer.stringDeserializer(), "mask_token"); op.add(Builder::numTopClasses, JsonpDeserializer.integerDeserializer(), "num_top_classes"); op.add(Builder::tokenization, TokenizationConfig._DESERIALIZER, "tokenization"); op.add(Builder::resultsField, JsonpDeserializer.stringDeserializer(), "results_field"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java index 2136da659..5e5593864 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java @@ -34,14 +34,36 @@ */ @JsonpDeserializable public enum JobState implements JsonEnum { + /** + * The job close action is in progress and has not yet completed. A closing job + * cannot accept further data. + */ Closing("closing"), + /** + * The job finished successfully with its model state persisted. The job must be + * opened before it can accept further data. + */ Closed("closed"), + /** + * The job is available to receive and process data. + */ Opened("opened"), + /** + * The job did not finish successfully due to an error. This situation can occur + * due to invalid input data, a fatal error occurring during the analysis, or an + * external interaction such as the process being killed by the Linux out of + * memory (OOM) killer. If the job had irrevocably failed, it must be force + * closed and then deleted. If the datafeed can be corrected, the job can be + * closed and then re-opened. + */ Failed("failed"), + /** + * The job open action is in progress and has not yet completed. + */ Opening("opening"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java index 63d4f8253..2e859d931 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java @@ -74,7 +74,11 @@ public final boolean opened() { } /** - * Required - API name: {@code node} + * Required - The ID of the node that the job was started on. In serverless this + * will be the "serverless". If the job is allowed to open lazily and + * has not yet been assigned to a node, this value is an empty string. + *

+ * API name: {@code node} */ public final String node() { return this.node; @@ -124,7 +128,11 @@ public final Builder opened(boolean value) { } /** - * Required - API name: {@code node} + * Required - The ID of the node that the job was started on. In serverless this + * will be the "serverless". If the job is allowed to open lazily and + * has not yet been assigned to a node, this value is an empty string. + *

+ * API name: {@code node} */ public final Builder node(String value) { this.node = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index c2f5bd18e..89366846c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -72,6 +72,7 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ @Nullable private final String description; + @Nullable private final InferenceConfigCreate inferenceConfig; @Nullable @@ -98,7 +99,7 @@ private PutTrainedModelRequest(Builder builder) { this.deferDefinitionDecompression = builder.deferDefinitionDecompression; this.definition = builder.definition; this.description = builder.description; - this.inferenceConfig = ApiTypeHelper.requireNonNull(builder.inferenceConfig, this, "inferenceConfig"); + this.inferenceConfig = builder.inferenceConfig; this.input = builder.input; this.metadata = builder.metadata; this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); @@ -158,12 +159,14 @@ public final String description() { } /** - * Required - The default configuration for inference. This can be either a - * regression or classification configuration. It must match the underlying - * definition.trained_model's target_type. + * The default configuration for inference. This can be either a regression or + * classification configuration. It must match the underlying + * definition.trained_model's target_type. For pre-packaged models such as ELSER + * the config is not required. *

* API name: {@code inference_config} */ + @Nullable public final InferenceConfigCreate inferenceConfig() { return this.inferenceConfig; } @@ -254,9 +257,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.description); } - generator.writeKey("inference_config"); - this.inferenceConfig.serialize(generator, mapper); + if (this.inferenceConfig != null) { + generator.writeKey("inference_config"); + this.inferenceConfig.serialize(generator, mapper); + } if (this.input != null) { generator.writeKey("input"); this.input.serialize(generator, mapper); @@ -310,6 +315,7 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String description; + @Nullable private InferenceConfigCreate inferenceConfig; @Nullable @@ -385,21 +391,23 @@ public final Builder description(@Nullable String value) { } /** - * Required - The default configuration for inference. This can be either a - * regression or classification configuration. It must match the underlying - * definition.trained_model's target_type. + * The default configuration for inference. This can be either a regression or + * classification configuration. It must match the underlying + * definition.trained_model's target_type. For pre-packaged models such as ELSER + * the config is not required. *

* API name: {@code inference_config} */ - public final Builder inferenceConfig(InferenceConfigCreate value) { + public final Builder inferenceConfig(@Nullable InferenceConfigCreate value) { this.inferenceConfig = value; return this; } /** - * Required - The default configuration for inference. This can be either a - * regression or classification configuration. It must match the underlying - * definition.trained_model's target_type. + * The default configuration for inference. This can be either a regression or + * classification configuration. It must match the underlying + * definition.trained_model's target_type. For pre-packaged models such as ELSER + * the config is not required. *

* API name: {@code inference_config} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java index 586dbeff3..93f4afdd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java @@ -79,7 +79,9 @@ public final boolean acknowledged() { /** * Required - The ID of the node that the job was started on. If the job is * allowed to open lazily and has not yet been assigned to a node, this value is - * an empty string. + * an empty string. The node ID of the node the job has been assigned to, or an + * empty string if it hasn't been assigned to a node. In serverless if the job + * has been assigned to run then the node ID will be "serverless". *

* API name: {@code node} */ @@ -135,7 +137,9 @@ public final Builder acknowledged(boolean value) { /** * Required - The ID of the node that the job was started on. If the job is * allowed to open lazily and has not yet been assigned to a node, this value is - * an empty string. + * an empty string. The node ID of the node the job has been assigned to, or an + * empty string if it hasn't been assigned to a node. In serverless if the job + * has been assigned to run then the node ID will be "serverless". *

* API name: {@code node} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java index f8f42a116..21ea526e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java @@ -68,9 +68,9 @@ public static StartDatafeedResponse of(Function * API name: {@code node} */ @@ -133,9 +133,9 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean started; /** - * Required - The ID of the node that the datafeed was started on. If the - * datafeed is allowed to open lazily and has not yet been assigned to a node, - * this value is an empty string. + * Required - The ID of the node that the job was started on. In serverless this + * will be the "serverless". If the job is allowed to open lazily and + * has not yet been assigned to a node, this value is an empty string. *

* API name: {@code node} *

@@ -147,9 +147,9 @@ public final Builder node(List list) { } /** - * Required - The ID of the node that the datafeed was started on. If the - * datafeed is allowed to open lazily and has not yet been assigned to a node, - * this value is an empty string. + * Required - The ID of the node that the job was started on. In serverless this + * will be the "serverless". If the job is allowed to open lazily and + * has not yet been assigned to a node, this value is an empty string. *

* API name: {@code node} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java index b9769d4da..e1cd4e5e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java @@ -167,8 +167,9 @@ public final String modelId() { } /** - * Required - The deployent stats for each node that currently has the model - * allocated. + * Required - The deployment stats for each node that currently has the model + * allocated. In serverless, stats are reported for a single unnamed virtual + * node. *

* API name: {@code nodes} */ @@ -430,8 +431,9 @@ public final Builder modelId(String value) { } /** - * Required - The deployent stats for each node that currently has the model - * allocated. + * Required - The deployment stats for each node that currently has the model + * allocated. In serverless, stats are reported for a single unnamed virtual + * node. *

* API name: {@code nodes} */ @@ -441,8 +443,9 @@ public final Builder nodes(TrainedModelDeploymentNodesStats value) { } /** - * Required - The deployent stats for each node that currently has the model - * allocated. + * Required - The deployment stats for each node that currently has the model + * allocated. In serverless, stats are reported for a single unnamed virtual + * node. *

* API name: {@code nodes} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java index 13e97465a..788889474 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java @@ -68,8 +68,8 @@ public static UpgradeJobSnapshotResponse of(Function * API name: {@code node} */ @@ -125,8 +125,8 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean completed; /** - * Required - The ID of the assigned node for the upgrade task if it is still - * running. + * Required - The ID of the node that the upgrade task was started on if it is + * still running. In serverless this will be the "serverless". *

* API name: {@code node} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java new file mode 100644 index 000000000..97fa96632 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java @@ -0,0 +1,153 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.delete.Request + +/** + * Deletes a query ruleset. + * + * @see API + * specification + */ + +public class DeleteQueryRulesetRequest extends RequestBase { + private final String rulesetId; + + // --------------------------------------------------------------------------------------------- + + private DeleteQueryRulesetRequest(Builder builder) { + + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + + } + + public static DeleteQueryRulesetRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the query ruleset to delete + *

+ * API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteQueryRulesetRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String rulesetId; + + /** + * Required - The unique identifier of the query ruleset to delete + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteQueryRulesetRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteQueryRulesetRequest build() { + _checkSingleUse(); + + return new DeleteQueryRulesetRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code query_ruleset.delete}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/query_ruleset.delete", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query_rules"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.rulesetId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteQueryRulesetResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java new file mode 100644 index 000000000..0022d42eb --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: query_ruleset.delete.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteQueryRulesetResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteQueryRulesetResponse(Builder builder) { + super(builder); + + } + + public static DeleteQueryRulesetResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteQueryRulesetResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteQueryRulesetResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteQueryRulesetResponse build() { + _checkSingleUse(); + + return new DeleteQueryRulesetResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteQueryRulesetResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteQueryRulesetResponse::setupDeleteQueryRulesetResponseDeserializer); + + protected static void setupDeleteQueryRulesetResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java new file mode 100644 index 000000000..b111451f0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java @@ -0,0 +1,202 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the query_ruleset namespace. + */ +public class ElasticsearchQueryRulesetAsyncClient + extends + ApiClient { + + public ElasticsearchQueryRulesetAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchQueryRulesetAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchQueryRulesetAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchQueryRulesetAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: query_ruleset.delete + + /** + * Deletes a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture delete(DeleteQueryRulesetRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteQueryRulesetRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteQueryRulesetRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture delete( + Function> fn) { + return delete(fn.apply(new DeleteQueryRulesetRequest.Builder()).build()); + } + + // ----- Endpoint: query_ruleset.get + + /** + * Returns the details about a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture get(GetQueryRulesetRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetQueryRulesetRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the details about a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetQueryRulesetRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture get( + Function> fn) { + return get(fn.apply(new GetQueryRulesetRequest.Builder()).build()); + } + + // ----- Endpoint: query_ruleset.list + + /** + * Lists query rulesets. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture list(ListRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ListRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Lists query rulesets. + * + * @param fn + * a function that initializes a builder to create the + * {@link ListRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture list(Function> fn) { + return list(fn.apply(new ListRequest.Builder()).build()); + } + + /** + * Lists query rulesets. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture list() { + return this.transport.performRequestAsync(new ListRequest.Builder().build(), ListRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: query_ruleset.put + + /** + * Creates or updates a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture put(PutRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture put(Function> fn) { + return put(fn.apply(new PutRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java new file mode 100644 index 000000000..8517f3f93 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java @@ -0,0 +1,208 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the query_ruleset namespace. + */ +public class ElasticsearchQueryRulesetClient + extends + ApiClient { + + public ElasticsearchQueryRulesetClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchQueryRulesetClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchQueryRulesetClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchQueryRulesetClient(this.transport, transportOptions); + } + + // ----- Endpoint: query_ruleset.delete + + /** + * Deletes a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public DeleteQueryRulesetResponse delete(DeleteQueryRulesetRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteQueryRulesetRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteQueryRulesetRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteQueryRulesetResponse delete( + Function> fn) + throws IOException, ElasticsearchException { + return delete(fn.apply(new DeleteQueryRulesetRequest.Builder()).build()); + } + + // ----- Endpoint: query_ruleset.get + + /** + * Returns the details about a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public GetQueryRulesetResponse get(GetQueryRulesetRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetQueryRulesetRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the details about a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetQueryRulesetRequest} + * @see Documentation + * on elastic.co + */ + + public final GetQueryRulesetResponse get( + Function> fn) + throws IOException, ElasticsearchException { + return get(fn.apply(new GetQueryRulesetRequest.Builder()).build()); + } + + // ----- Endpoint: query_ruleset.list + + /** + * Lists query rulesets. + * + * @see Documentation + * on elastic.co + */ + + public ListResponse list(ListRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ListRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Lists query rulesets. + * + * @param fn + * a function that initializes a builder to create the + * {@link ListRequest} + * @see Documentation + * on elastic.co + */ + + public final ListResponse list(Function> fn) + throws IOException, ElasticsearchException { + return list(fn.apply(new ListRequest.Builder()).build()); + } + + /** + * Lists query rulesets. + * + * @see Documentation + * on elastic.co + */ + + public ListResponse list() throws IOException, ElasticsearchException { + return this.transport.performRequest(new ListRequest.Builder().build(), ListRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: query_ruleset.put + + /** + * Creates or updates a query ruleset. + * + * @see Documentation + * on elastic.co + */ + + public PutResponse put(PutRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a query ruleset. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutRequest} + * @see Documentation + * on elastic.co + */ + + public final PutResponse put(Function> fn) + throws IOException, ElasticsearchException { + return put(fn.apply(new PutRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java new file mode 100644 index 000000000..74312a2e8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java @@ -0,0 +1,153 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.get.Request + +/** + * Returns the details about a query ruleset + * + * @see API + * specification + */ + +public class GetQueryRulesetRequest extends RequestBase { + private final String rulesetId; + + // --------------------------------------------------------------------------------------------- + + private GetQueryRulesetRequest(Builder builder) { + + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + + } + + public static GetQueryRulesetRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the query ruleset + *

+ * API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetQueryRulesetRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String rulesetId; + + /** + * Required - The unique identifier of the query ruleset + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetQueryRulesetRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetQueryRulesetRequest build() { + _checkSingleUse(); + + return new GetQueryRulesetRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code query_ruleset.get}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/query_ruleset.get", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query_rules"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.rulesetId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetQueryRulesetResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java new file mode 100644 index 000000000..4163d4a95 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: query_ruleset.get.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetQueryRulesetResponse extends QueryRuleset { + // --------------------------------------------------------------------------------------------- + + private GetQueryRulesetResponse(Builder builder) { + super(builder); + + } + + public static GetQueryRulesetResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetQueryRulesetResponse}. + */ + + public static class Builder extends QueryRuleset.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetQueryRulesetResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetQueryRulesetResponse build() { + _checkSingleUse(); + + return new GetQueryRulesetResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetQueryRulesetResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetQueryRulesetResponse::setupGetQueryRulesetResponseDeserializer); + + protected static void setupGetQueryRulesetResponseDeserializer( + ObjectDeserializer op) { + QueryRuleset.setupQueryRulesetDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java new file mode 100644 index 000000000..745566a89 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java @@ -0,0 +1,175 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.list.Request + +/** + * Returns summarized information about existing query rulesets. + * + * @see API + * specification + */ + +public class ListRequest extends RequestBase { + @Nullable + private final Integer from; + + @Nullable + private final Integer size; + + // --------------------------------------------------------------------------------------------- + + private ListRequest(Builder builder) { + + this.from = builder.from; + this.size = builder.size; + + } + + public static ListRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Starting offset (default: 0) + *

+ * API name: {@code from} + */ + @Nullable + public final Integer from() { + return this.from; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ListRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Integer from; + + @Nullable + private Integer size; + + /** + * Starting offset (default: 0) + *

+ * API name: {@code from} + */ + public final Builder from(@Nullable Integer value) { + this.from = value; + return this; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ListRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ListRequest build() { + _checkSingleUse(); + + return new ListRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code query_ruleset.list}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/query_ruleset.list", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_query_rules"; + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.size != null) { + params.put("size", String.valueOf(request.size)); + } + if (request.from != null) { + params.put("from", String.valueOf(request.from)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, ListResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java new file mode 100644 index 000000000..eb6582cc6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java @@ -0,0 +1,197 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch.query_ruleset.list.QueryRulesetListItem; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.list.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ListResponse implements JsonpSerializable { + private final long count; + + private final List results; + + // --------------------------------------------------------------------------------------------- + + private ListResponse(Builder builder) { + + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.results = ApiTypeHelper.unmodifiableRequired(builder.results, this, "results"); + + } + + public static ListResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code count} + */ + public final long count() { + return this.count; + } + + /** + * Required - API name: {@code results} + */ + public final List results() { + return this.results; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("count"); + generator.write(this.count); + + if (ApiTypeHelper.isDefined(this.results)) { + generator.writeKey("results"); + generator.writeStartArray(); + for (QueryRulesetListItem item0 : this.results) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ListResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Long count; + + private List results; + + /** + * Required - API name: {@code count} + */ + public final Builder count(long value) { + this.count = value; + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds all elements of list to results. + */ + public final Builder results(List list) { + this.results = _listAddAll(this.results, list); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds one or more values to results. + */ + public final Builder results(QueryRulesetListItem value, QueryRulesetListItem... values) { + this.results = _listAdd(this.results, value, values); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds a value to results using a builder lambda. + */ + public final Builder results(Function> fn) { + return results(fn.apply(new QueryRulesetListItem.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ListResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ListResponse build() { + _checkSingleUse(); + + return new ListResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ListResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ListResponse::setupListResponseDeserializer); + + protected static void setupListResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::count, JsonpDeserializer.longDeserializer(), "count"); + op.add(Builder::results, JsonpDeserializer.arrayDeserializer(QueryRulesetListItem._DESERIALIZER), "results"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java new file mode 100644 index 000000000..a7c82781e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java @@ -0,0 +1,208 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.put.Request + +/** + * Creates or updates a query ruleset. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutRequest extends RequestBase implements JsonpSerializable { + private final String rulesetId; + + private final QueryRuleset queryRuleset; + + // --------------------------------------------------------------------------------------------- + + private PutRequest(Builder builder) { + + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + this.queryRuleset = ApiTypeHelper.requireNonNull(builder.queryRuleset, this, "queryRuleset"); + + } + + public static PutRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the query ruleset to be created or + * updated + *

+ * API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + /** + * Required - Request body. + */ + public final QueryRuleset queryRuleset() { + return this.queryRuleset; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.queryRuleset.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String rulesetId; + + private QueryRuleset queryRuleset; + + /** + * Required - The unique identifier of the query ruleset to be created or + * updated + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder queryRuleset(QueryRuleset value) { + this.queryRuleset = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder queryRuleset(Function> fn) { + return this.queryRuleset(fn.apply(new QueryRuleset.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + QueryRuleset value = (QueryRuleset) QueryRuleset._DESERIALIZER.deserialize(parser, mapper); + return this.queryRuleset(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutRequest build() { + _checkSingleUse(); + + return new PutRequest(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); + protected static JsonpDeserializer createPutRequestDeserializer() { + + JsonpDeserializer valueDeserializer = QueryRuleset._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .queryRuleset(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code query_ruleset.put}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/query_ruleset.put", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query_rules"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.rulesetId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java new file mode 100644 index 000000000..c54f7b1de --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java @@ -0,0 +1,142 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.Result; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.put.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutResponse implements JsonpSerializable { + private final Result result; + + // --------------------------------------------------------------------------------------------- + + private PutResponse(Builder builder) { + + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); + + } + + public static PutResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code result} + */ + public final Result result() { + return this.result; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("result"); + this.result.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Result result; + + /** + * Required - API name: {@code result} + */ + public final Builder result(Result value) { + this.result = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutResponse build() { + _checkSingleUse(); + + return new PutResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutResponse::setupPutResponseDeserializer); + + protected static void setupPutResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::result, Result._DESERIALIZER, "result"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java new file mode 100644 index 000000000..8a3168036 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java @@ -0,0 +1,249 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset._types.QueryRule + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRule implements JsonpSerializable { + private final String ruleId; + + private final QueryRuleType type; + + private final List criteria; + + private final QueryRuleActions actions; + + // --------------------------------------------------------------------------------------------- + + private QueryRule(Builder builder) { + + this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); + this.criteria = ApiTypeHelper.unmodifiableRequired(builder.criteria, this, "criteria"); + this.actions = ApiTypeHelper.requireNonNull(builder.actions, this, "actions"); + + } + + public static QueryRule of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code rule_id} + */ + public final String ruleId() { + return this.ruleId; + } + + /** + * Required - API name: {@code type} + */ + public final QueryRuleType type() { + return this.type; + } + + /** + * Required - API name: {@code criteria} + */ + public final List criteria() { + return this.criteria; + } + + /** + * Required - API name: {@code actions} + */ + public final QueryRuleActions actions() { + return this.actions; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("rule_id"); + generator.write(this.ruleId); + + generator.writeKey("type"); + this.type.serialize(generator, mapper); + if (ApiTypeHelper.isDefined(this.criteria)) { + generator.writeKey("criteria"); + generator.writeStartArray(); + for (QueryRuleCriteria item0 : this.criteria) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + generator.writeKey("actions"); + this.actions.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRule}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String ruleId; + + private QueryRuleType type; + + private List criteria; + + private QueryRuleActions actions; + + /** + * Required - API name: {@code rule_id} + */ + public final Builder ruleId(String value) { + this.ruleId = value; + return this; + } + + /** + * Required - API name: {@code type} + */ + public final Builder type(QueryRuleType value) { + this.type = value; + return this; + } + + /** + * Required - API name: {@code criteria} + *

+ * Adds all elements of list to criteria. + */ + public final Builder criteria(List list) { + this.criteria = _listAddAll(this.criteria, list); + return this; + } + + /** + * Required - API name: {@code criteria} + *

+ * Adds one or more values to criteria. + */ + public final Builder criteria(QueryRuleCriteria value, QueryRuleCriteria... values) { + this.criteria = _listAdd(this.criteria, value, values); + return this; + } + + /** + * Required - API name: {@code criteria} + *

+ * Adds a value to criteria using a builder lambda. + */ + public final Builder criteria(Function> fn) { + return criteria(fn.apply(new QueryRuleCriteria.Builder()).build()); + } + + /** + * Required - API name: {@code actions} + */ + public final Builder actions(QueryRuleActions value) { + this.actions = value; + return this; + } + + /** + * Required - API name: {@code actions} + */ + public final Builder actions(Function> fn) { + return this.actions(fn.apply(new QueryRuleActions.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRule}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRule build() { + _checkSingleUse(); + + return new QueryRule(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRule} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryRule::setupQueryRuleDeserializer); + + protected static void setupQueryRuleDeserializer(ObjectDeserializer op) { + + op.add(Builder::ruleId, JsonpDeserializer.stringDeserializer(), "rule_id"); + op.add(Builder::type, QueryRuleType._DESERIALIZER, "type"); + op.add(Builder::criteria, JsonpDeserializer.arrayDeserializer(QueryRuleCriteria._DESERIALIZER), "criteria"); + op.add(Builder::actions, QueryRuleActions._DESERIALIZER, "actions"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java new file mode 100644 index 000000000..a084ec7e5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java @@ -0,0 +1,219 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.elasticsearch._types.query_dsl.PinnedDoc; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset._types.QueryRuleActions + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRuleActions implements JsonpSerializable { + private final List ids; + + private final List docs; + + // --------------------------------------------------------------------------------------------- + + private QueryRuleActions(Builder builder) { + + this.ids = ApiTypeHelper.unmodifiable(builder.ids); + this.docs = ApiTypeHelper.unmodifiable(builder.docs); + + } + + public static QueryRuleActions of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code ids} + */ + public final List ids() { + return this.ids; + } + + /** + * API name: {@code docs} + */ + public final List docs() { + return this.docs; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.ids)) { + generator.writeKey("ids"); + generator.writeStartArray(); + for (String item0 : this.ids) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.docs)) { + generator.writeKey("docs"); + generator.writeStartArray(); + for (PinnedDoc item0 : this.docs) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRuleActions}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private List ids; + + @Nullable + private List docs; + + /** + * API name: {@code ids} + *

+ * Adds all elements of list to ids. + */ + public final Builder ids(List list) { + this.ids = _listAddAll(this.ids, list); + return this; + } + + /** + * API name: {@code ids} + *

+ * Adds one or more values to ids. + */ + public final Builder ids(String value, String... values) { + this.ids = _listAdd(this.ids, value, values); + return this; + } + + /** + * API name: {@code docs} + *

+ * Adds all elements of list to docs. + */ + public final Builder docs(List list) { + this.docs = _listAddAll(this.docs, list); + return this; + } + + /** + * API name: {@code docs} + *

+ * Adds one or more values to docs. + */ + public final Builder docs(PinnedDoc value, PinnedDoc... values) { + this.docs = _listAdd(this.docs, value, values); + return this; + } + + /** + * API name: {@code docs} + *

+ * Adds a value to docs using a builder lambda. + */ + public final Builder docs(Function> fn) { + return docs(fn.apply(new PinnedDoc.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRuleActions}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRuleActions build() { + _checkSingleUse(); + + return new QueryRuleActions(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRuleActions} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryRuleActions::setupQueryRuleActionsDeserializer); + + protected static void setupQueryRuleActionsDeserializer(ObjectDeserializer op) { + + op.add(Builder::ids, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "ids"); + op.add(Builder::docs, JsonpDeserializer.arrayDeserializer(PinnedDoc._DESERIALIZER), "docs"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java new file mode 100644 index 000000000..5a48c1611 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java @@ -0,0 +1,213 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset._types.QueryRuleCriteria + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRuleCriteria implements JsonpSerializable { + private final QueryRuleCriteriaType type; + + private final String metadata; + + private final List values; + + // --------------------------------------------------------------------------------------------- + + private QueryRuleCriteria(Builder builder) { + + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); + this.metadata = ApiTypeHelper.requireNonNull(builder.metadata, this, "metadata"); + this.values = ApiTypeHelper.unmodifiable(builder.values); + + } + + public static QueryRuleCriteria of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code type} + */ + public final QueryRuleCriteriaType type() { + return this.type; + } + + /** + * Required - API name: {@code metadata} + */ + public final String metadata() { + return this.metadata; + } + + /** + * API name: {@code values} + */ + public final List values() { + return this.values; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("type"); + this.type.serialize(generator, mapper); + generator.writeKey("metadata"); + generator.write(this.metadata); + + if (ApiTypeHelper.isDefined(this.values)) { + generator.writeKey("values"); + generator.writeStartArray(); + for (JsonData item0 : this.values) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRuleCriteria}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private QueryRuleCriteriaType type; + + private String metadata; + + @Nullable + private List values; + + /** + * Required - API name: {@code type} + */ + public final Builder type(QueryRuleCriteriaType value) { + this.type = value; + return this; + } + + /** + * Required - API name: {@code metadata} + */ + public final Builder metadata(String value) { + this.metadata = value; + return this; + } + + /** + * API name: {@code values} + *

+ * Adds all elements of list to values. + */ + public final Builder values(List list) { + this.values = _listAddAll(this.values, list); + return this; + } + + /** + * API name: {@code values} + *

+ * Adds one or more values to values. + */ + public final Builder values(JsonData value, JsonData... values) { + this.values = _listAdd(this.values, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRuleCriteria}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRuleCriteria build() { + _checkSingleUse(); + + return new QueryRuleCriteria(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRuleCriteria} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, QueryRuleCriteria::setupQueryRuleCriteriaDeserializer); + + protected static void setupQueryRuleCriteriaDeserializer(ObjectDeserializer op) { + + op.add(Builder::type, QueryRuleCriteriaType._DESERIALIZER, "type"); + op.add(Builder::metadata, JsonpDeserializer.stringDeserializer(), "metadata"); + op.add(Builder::values, JsonpDeserializer.arrayDeserializer(JsonData._DESERIALIZER), "values"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java new file mode 100644 index 000000000..31ba6a87b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java @@ -0,0 +1,72 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum QueryRuleCriteriaType implements JsonEnum { + Global("global"), + + Exact("exact"), + + ExactFuzzy("exact_fuzzy"), + + Prefix("prefix"), + + Suffix("suffix"), + + Contains("contains"), + + Lt("lt"), + + Lte("lte"), + + Gt("gt"), + + Gte("gte"), + + ; + + private final String jsonValue; + + QueryRuleCriteriaType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + QueryRuleCriteriaType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleType.java new file mode 100644 index 000000000..e41641cd0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleType.java @@ -0,0 +1,54 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum QueryRuleType implements JsonEnum { + Pinned("pinned"), + + ; + + private final String jsonValue; + + QueryRuleType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + QueryRuleType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java new file mode 100644 index 000000000..7162e5a12 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java @@ -0,0 +1,217 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset._types.QueryRuleset + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRuleset implements JsonpSerializable { + private final String rulesetId; + + private final List rules; + + // --------------------------------------------------------------------------------------------- + + protected QueryRuleset(AbstractBuilder builder) { + + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + this.rules = ApiTypeHelper.unmodifiableRequired(builder.rules, this, "rules"); + + } + + public static QueryRuleset queryRulesetOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Query Ruleset unique identifier + *

+ * API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + /** + * Required - Rules associated with the query ruleset + *

+ * API name: {@code rules} + */ + public final List rules() { + return this.rules; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("ruleset_id"); + generator.write(this.rulesetId); + + if (ApiTypeHelper.isDefined(this.rules)) { + generator.writeKey("rules"); + generator.writeStartArray(); + for (QueryRule item0 : this.rules) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRuleset}. + */ + + public static class Builder extends QueryRuleset.AbstractBuilder implements ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRuleset}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRuleset build() { + _checkSingleUse(); + + return new QueryRuleset(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private String rulesetId; + + private List rules; + + /** + * Required - Query Ruleset unique identifier + *

+ * API name: {@code ruleset_id} + */ + public final BuilderT rulesetId(String value) { + this.rulesetId = value; + return self(); + } + + /** + * Required - Rules associated with the query ruleset + *

+ * API name: {@code rules} + *

+ * Adds all elements of list to rules. + */ + public final BuilderT rules(List list) { + this.rules = _listAddAll(this.rules, list); + return self(); + } + + /** + * Required - Rules associated with the query ruleset + *

+ * API name: {@code rules} + *

+ * Adds one or more values to rules. + */ + public final BuilderT rules(QueryRule value, QueryRule... values) { + this.rules = _listAdd(this.rules, value, values); + return self(); + } + + /** + * Required - Rules associated with the query ruleset + *

+ * API name: {@code rules} + *

+ * Adds a value to rules using a builder lambda. + */ + public final BuilderT rules(Function> fn) { + return rules(fn.apply(new QueryRule.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRuleset} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryRuleset::setupQueryRulesetDeserializer); + + protected static > void setupQueryRulesetDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::rulesetId, JsonpDeserializer.stringDeserializer(), "ruleset_id"); + op.add(AbstractBuilder::rules, JsonpDeserializer.arrayDeserializer(QueryRule._DESERIALIZER), "rules"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java new file mode 100644 index 000000000..7479b62ed --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java @@ -0,0 +1,178 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.query_ruleset.list; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: query_ruleset.list.QueryRulesetListItem + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRulesetListItem implements JsonpSerializable { + private final String rulesetId; + + private final int rulesCount; + + // --------------------------------------------------------------------------------------------- + + private QueryRulesetListItem(Builder builder) { + + this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); + this.rulesCount = ApiTypeHelper.requireNonNull(builder.rulesCount, this, "rulesCount"); + + } + + public static QueryRulesetListItem of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Ruleset unique identifier + *

+ * API name: {@code ruleset_id} + */ + public final String rulesetId() { + return this.rulesetId; + } + + /** + * Required - The number of rules associated with this ruleset + *

+ * API name: {@code rules_count} + */ + public final int rulesCount() { + return this.rulesCount; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("ruleset_id"); + generator.write(this.rulesetId); + + generator.writeKey("rules_count"); + generator.write(this.rulesCount); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRulesetListItem}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String rulesetId; + + private Integer rulesCount; + + /** + * Required - Ruleset unique identifier + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; + } + + /** + * Required - The number of rules associated with this ruleset + *

+ * API name: {@code rules_count} + */ + public final Builder rulesCount(int value) { + this.rulesCount = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRulesetListItem}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRulesetListItem build() { + _checkSingleUse(); + + return new QueryRulesetListItem(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRulesetListItem} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, QueryRulesetListItem::setupQueryRulesetListItemDeserializer); + + protected static void setupQueryRulesetListItemDeserializer(ObjectDeserializer op) { + + op.add(Builder::rulesetId, JsonpDeserializer.stringDeserializer(), "ruleset_id"); + op.add(Builder::rulesCount, JsonpDeserializer.integerDeserializer(), "rules_count"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java index b165bbdae..f78f45e87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java @@ -104,6 +104,8 @@ public static ApiKey of(Function> fn) { } /** + * Creation time for the API key in milliseconds. + *

* API name: {@code creation} */ @Nullable @@ -112,6 +114,8 @@ public final Long creation() { } /** + * Expiration time for the API key in milliseconds. + *

* API name: {@code expiration} */ @Nullable @@ -120,13 +124,18 @@ public final Long expiration() { } /** - * Required - API name: {@code id} + * Required - Id for the API key + *

+ * API name: {@code id} */ public final String id() { return this.id; } /** + * Invalidation status for the API key. If the key has been invalidated, it has + * a value of true. Otherwise, it is false. + *

* API name: {@code invalidated} */ @Nullable @@ -135,13 +144,17 @@ public final Boolean invalidated() { } /** - * Required - API name: {@code name} + * Required - Name of the API key. + *

+ * API name: {@code name} */ public final String name() { return this.name; } /** + * Realm name of the principal for which this API key was created. + *

* API name: {@code realm} */ @Nullable @@ -150,6 +163,8 @@ public final String realm() { } /** + * Principal for which this API key was created + *

* API name: {@code username} */ @Nullable @@ -158,6 +173,8 @@ public final String username() { } /** + * Metadata of the API key + *

* API name: {@code metadata} */ public final Map metadata() { @@ -165,6 +182,10 @@ public final Map metadata() { } /** + * The role descriptors assigned to this API key when it was created or last + * updated. An empty role descriptor means the API key inherits the owner user’s + * permissions. + *

* API name: {@code role_descriptors} */ public final Map roleDescriptors() { @@ -172,6 +193,11 @@ public final Map roleDescriptors() { } /** + * The owner user’s permissions associated with the API key. It is a + * point-in-time snapshot captured at creation and subsequent updates. An API + * key’s effective permissions are an intersection of its assigned privileges + * and the owner user’s permissions. + *

* API name: {@code limited_by} */ public final List> limitedBy() { @@ -324,6 +350,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List sort; /** + * Creation time for the API key in milliseconds. + *

* API name: {@code creation} */ public final Builder creation(@Nullable Long value) { @@ -332,6 +360,8 @@ public final Builder creation(@Nullable Long value) { } /** + * Expiration time for the API key in milliseconds. + *

* API name: {@code expiration} */ public final Builder expiration(@Nullable Long value) { @@ -340,7 +370,9 @@ public final Builder expiration(@Nullable Long value) { } /** - * Required - API name: {@code id} + * Required - Id for the API key + *

+ * API name: {@code id} */ public final Builder id(String value) { this.id = value; @@ -348,6 +380,9 @@ public final Builder id(String value) { } /** + * Invalidation status for the API key. If the key has been invalidated, it has + * a value of true. Otherwise, it is false. + *

* API name: {@code invalidated} */ public final Builder invalidated(@Nullable Boolean value) { @@ -356,7 +391,9 @@ public final Builder invalidated(@Nullable Boolean value) { } /** - * Required - API name: {@code name} + * Required - Name of the API key. + *

+ * API name: {@code name} */ public final Builder name(String value) { this.name = value; @@ -364,6 +401,8 @@ public final Builder name(String value) { } /** + * Realm name of the principal for which this API key was created. + *

* API name: {@code realm} */ public final Builder realm(@Nullable String value) { @@ -372,6 +411,8 @@ public final Builder realm(@Nullable String value) { } /** + * Principal for which this API key was created + *

* API name: {@code username} */ public final Builder username(@Nullable String value) { @@ -380,6 +421,8 @@ public final Builder username(@Nullable String value) { } /** + * Metadata of the API key + *

* API name: {@code metadata} *

* Adds all entries of map to metadata. @@ -390,6 +433,8 @@ public final Builder metadata(Map map) { } /** + * Metadata of the API key + *

* API name: {@code metadata} *

* Adds an entry to metadata. @@ -400,6 +445,10 @@ public final Builder metadata(String key, JsonData value) { } /** + * The role descriptors assigned to this API key when it was created or last + * updated. An empty role descriptor means the API key inherits the owner user’s + * permissions. + *

* API name: {@code role_descriptors} *

* Adds all entries of map to roleDescriptors. @@ -410,6 +459,10 @@ public final Builder roleDescriptors(Map map) { } /** + * The role descriptors assigned to this API key when it was created or last + * updated. An empty role descriptor means the API key inherits the owner user’s + * permissions. + *

* API name: {@code role_descriptors} *

* Adds an entry to roleDescriptors. @@ -420,6 +473,10 @@ public final Builder roleDescriptors(String key, RoleDescriptor value) { } /** + * The role descriptors assigned to this API key when it was created or last + * updated. An empty role descriptor means the API key inherits the owner user’s + * permissions. + *

* API name: {@code role_descriptors} *

* Adds an entry to roleDescriptors using a builder lambda. @@ -430,6 +487,11 @@ public final Builder roleDescriptors(String key, } /** + * The owner user’s permissions associated with the API key. It is a + * point-in-time snapshot captured at creation and subsequent updates. An API + * key’s effective permissions are an intersection of its assigned privileges + * and the owner user’s permissions. + *

* API name: {@code limited_by} *

* Adds all elements of list to limitedBy. @@ -440,6 +502,11 @@ public final Builder limitedBy(List> list) { } /** + * The owner user’s permissions associated with the API key. It is a + * point-in-time snapshot captured at creation and subsequent updates. An API + * key’s effective permissions are an intersection of its assigned privileges + * and the owner user’s permissions. + *

* API name: {@code limited_by} *

* Adds one or more values to limitedBy. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java index ca246678d..2b2456852 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java @@ -40,7 +40,11 @@ /** * Enables you to submit a request with a basic auth header to authenticate a - * user and retrieve information about the authenticated user. + * user and retrieve information about the authenticated user. A successful call + * returns a JSON structure that shows user information such as their username, + * the roles that are assigned to the user, any assigned metadata, and + * information about the realms that authenticated and authorized the user. If + * the user cannot be authenticated, this API returns a 401 status code. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java index db830e3ca..950268ee3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java @@ -45,7 +45,8 @@ // typedef: security.clear_api_key_cache.Request /** - * Clear a subset or all entries from the API key cache. + * Evicts a subset of all entries from the API key cache. The cache is also + * automatically cleared on state changes of the security index. * * @see API @@ -68,7 +69,9 @@ public static ClearApiKeyCacheRequest of(Function*. Does not support other + * wildcard patterns. *

* API name: {@code ids} */ @@ -88,7 +91,9 @@ public static class Builder extends RequestBase.AbstractBuilder private List ids; /** - * Required - A comma-separated list of IDs of API keys to clear from the cache + * Required - Comma-separated list of API key IDs to evict from the API key + * cache. To evict all API keys, use *. Does not support other + * wildcard patterns. *

* API name: {@code ids} *

@@ -100,7 +105,9 @@ public final Builder ids(List list) { } /** - * Required - A comma-separated list of IDs of API keys to clear from the cache + * Required - Comma-separated list of API key IDs to evict from the API key + * cache. To evict all API keys, use *. Does not support other + * wildcard patterns. *

* API name: {@code ids} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java index aa0d49258..0751a66e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java @@ -49,7 +49,11 @@ // typedef: security.create_api_key.Request /** - * Creates an API key for access without requiring basic authentication. + * Creates an API key for access without requiring basic authentication. A + * successful request returns a JSON structure that contains the API key, its + * unique id, and its name. If applicable, it also returns expiration + * information for the API key in milliseconds. NOTE: By default, API keys never + * expire. You can specify expiration information when you create the API keys. * * @see API * specification @@ -97,8 +101,8 @@ public final Time expiration() { /** * Arbitrary metadata that you want to associate with the API key. It supports - * nested data structure. Within the metadata object, keys beginning with _ are - * reserved for system usage. + * nested data structure. Within the metadata object, keys beginning with + * _ are reserved for system usage. *

* API name: {@code metadata} */ @@ -236,8 +240,8 @@ public final Builder expiration(Function> fn) /** * Arbitrary metadata that you want to associate with the API key. It supports - * nested data structure. Within the metadata object, keys beginning with _ are - * reserved for system usage. + * nested data structure. Within the metadata object, keys beginning with + * _ are reserved for system usage. *

* API name: {@code metadata} *

@@ -250,8 +254,8 @@ public final Builder metadata(Map map) { /** * Arbitrary metadata that you want to associate with the API key. It supports - * nested data structure. Within the metadata object, keys beginning with _ are - * reserved for system usage. + * nested data structure. Within the metadata object, keys beginning with + * _ are reserved for system usage. *

* API name: {@code metadata} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index d4e2e0498..649473e40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -44,7 +44,12 @@ // typedef: security.get_api_key.Request /** - * Retrieves information for one or more API keys. + * Retrieves information for one or more API keys. NOTE: If you have only the + * manage_own_api_key privilege, this API returns only the API keys + * that you own. If you have read_security, + * manage_api_key or greater privileges (including + * manage_security), this API returns all API keys regardless of + * ownership. * * @see API * specification @@ -87,7 +92,8 @@ public static GetApiKeyRequest of(Functionname, + * realm_name or username. *

* API name: {@code id} */ @@ -97,7 +103,9 @@ public final String id() { } /** - * API key name of the API key to be retrieved + * An API key name. This parameter cannot be used with any of id, + * realm_name or username. It supports prefix search + * with wildcard. *

* API name: {@code name} */ @@ -107,7 +115,10 @@ public final String name() { } /** - * flag to query API keys owned by the currently authenticated user + * A boolean flag that can be used to query API keys owned by the currently + * authenticated user. The realm_name or username + * parameters cannot be specified when this parameter is set to + * true as they are assumed to be the currently authenticated ones. *

* API name: {@code owner} */ @@ -117,7 +128,9 @@ public final Boolean owner() { } /** - * realm name of the user who created this API key to be retrieved + * The name of an authentication realm. This parameter cannot be used with + * either id or name or when owner flag + * is set to true. *

* API name: {@code realm_name} */ @@ -127,7 +140,9 @@ public final String realmName() { } /** - * user name of the user who created this API key to be retrieved + * The username of a user. This parameter cannot be used with either + * id or name or when owner flag is set + * to true. *

* API name: {@code username} */ @@ -176,7 +191,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean withLimitedBy; /** - * API key id of the API key to be retrieved + * An API key id. This parameter cannot be used with any of name, + * realm_name or username. *

* API name: {@code id} */ @@ -186,7 +202,9 @@ public final Builder id(@Nullable String value) { } /** - * API key name of the API key to be retrieved + * An API key name. This parameter cannot be used with any of id, + * realm_name or username. It supports prefix search + * with wildcard. *

* API name: {@code name} */ @@ -196,7 +214,10 @@ public final Builder name(@Nullable String value) { } /** - * flag to query API keys owned by the currently authenticated user + * A boolean flag that can be used to query API keys owned by the currently + * authenticated user. The realm_name or username + * parameters cannot be specified when this parameter is set to + * true as they are assumed to be the currently authenticated ones. *

* API name: {@code owner} */ @@ -206,7 +227,9 @@ public final Builder owner(@Nullable Boolean value) { } /** - * realm name of the user who created this API key to be retrieved + * The name of an authentication realm. This parameter cannot be used with + * either id or name or when owner flag + * is set to true. *

* API name: {@code realm_name} */ @@ -216,7 +239,9 @@ public final Builder realmName(@Nullable String value) { } /** - * user name of the user who created this API key to be retrieved + * The username of a user. This parameter cannot be used with either + * id or name or when owner flag is set + * to true. *

* API name: {@code username} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java index 9b616c80b..e96be5bb6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java @@ -47,7 +47,26 @@ // typedef: security.grant_api_key.Request /** - * Creates an API key on behalf of another user. + * Creates an API key on behalf of another user. This API is similar to Create + * API keys, however it creates the API key for a user that is different than + * the user that runs the API. The caller must have authentication credentials + * (either an access token, or a username and password) for the user on whose + * behalf the API key will be created. It is not possible to use this API to + * create an API key without that user’s credentials. The user, for whom the + * authentication credentials is provided, can optionally "run as" + * (impersonate) another user. In this case, the API key will be created on + * behalf of the impersonated user. + *

+ * This API is intended be used by applications that need to create and manage + * API keys for end users, but cannot guarantee that those users have permission + * to create API keys on their own behalf. + *

+ * A successful grant API key API call returns a JSON structure that contains + * the API key, its unique id, and its name. If applicable, it also returns + * expiration information for the API key in milliseconds. + *

+ * By default, API keys never expire. You can specify expiration information + * when you create the API keys. * * @see API * specification @@ -88,6 +107,9 @@ public static GrantApiKeyRequest of(Functionaccess_token grant + * type, this parameter is required. It is not valid with other grant types. + *

* API name: {@code access_token} */ @Nullable @@ -96,20 +118,28 @@ public final String accessToken() { } /** - * Required - API name: {@code api_key} + * Required - Defines the API key. + *

+ * API name: {@code api_key} */ public final GrantApiKey apiKey() { return this.apiKey; } /** - * Required - API name: {@code grant_type} + * Required - The type of grant. Supported grant types are: + * access_token, password. + *

+ * API name: {@code grant_type} */ public final ApiKeyGrantType grantType() { return this.grantType; } /** + * The user’s password. If you specify the password grant type, + * this parameter is required. It is not valid with other grant types. + *

* API name: {@code password} */ @Nullable @@ -118,6 +148,8 @@ public final String password() { } /** + * The name of the user to be impersonated. + *

* API name: {@code run_as} */ @Nullable @@ -126,6 +158,10 @@ public final String runAs() { } /** + * The user name that identifies the user. If you specify the + * password grant type, this parameter is required. It is not valid + * with other grant types. + *

* API name: {@code username} */ @Nullable @@ -198,6 +234,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String username; /** + * The user’s access token. If you specify the access_token grant + * type, this parameter is required. It is not valid with other grant types. + *

* API name: {@code access_token} */ public final Builder accessToken(@Nullable String value) { @@ -206,7 +245,9 @@ public final Builder accessToken(@Nullable String value) { } /** - * Required - API name: {@code api_key} + * Required - Defines the API key. + *

+ * API name: {@code api_key} */ public final Builder apiKey(GrantApiKey value) { this.apiKey = value; @@ -214,14 +255,19 @@ public final Builder apiKey(GrantApiKey value) { } /** - * Required - API name: {@code api_key} + * Required - Defines the API key. + *

+ * API name: {@code api_key} */ public final Builder apiKey(Function> fn) { return this.apiKey(fn.apply(new GrantApiKey.Builder()).build()); } /** - * Required - API name: {@code grant_type} + * Required - The type of grant. Supported grant types are: + * access_token, password. + *

+ * API name: {@code grant_type} */ public final Builder grantType(ApiKeyGrantType value) { this.grantType = value; @@ -229,6 +275,9 @@ public final Builder grantType(ApiKeyGrantType value) { } /** + * The user’s password. If you specify the password grant type, + * this parameter is required. It is not valid with other grant types. + *

* API name: {@code password} */ public final Builder password(@Nullable String value) { @@ -237,6 +286,8 @@ public final Builder password(@Nullable String value) { } /** + * The name of the user to be impersonated. + *

* API name: {@code run_as} */ public final Builder runAs(@Nullable String value) { @@ -245,6 +296,10 @@ public final Builder runAs(@Nullable String value) { } /** + * The user name that identifies the user. If you specify the + * password grant type, this parameter is required. It is not valid + * with other grant types. + *

* API name: {@code username} */ public final Builder username(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java index 92c53d2ab..fce68cce5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java @@ -34,8 +34,16 @@ */ @JsonpDeserializable public enum GrantType implements JsonEnum { + /** + * In this type of grant, you must supply the user ID and password for which you + * want to create the API key. + */ Password("password"), + /** + * In this type of grant, you must supply an access token that was created by + * the Elasticsearch token service. + */ AccessToken("access_token"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java index 091d800c2..7f065fe4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java @@ -47,8 +47,19 @@ // typedef: security.invalidate_api_key.Request /** - * Invalidates one or more API keys. - * + * Invalidates one or more API keys. The manage_api_key privilege + * allows deleting any API keys. The manage_own_api_key only allows + * deleting API keys that are owned by the user. In addition, with the + * manage_own_api_key privilege, an invalidation request must be + * issued in one of the three formats: + *

    + *
  • Set the parameter owner=true.
  • + *
  • Or, set both username and realm_name to match + * the user’s identity.
  • + *
  • Or, if the request is issued by an API key, i.e. an API key invalidates + * itself, specify its ID in the ids field.
  • + *
+ * * @see API * specification @@ -98,6 +109,9 @@ public final String id() { } /** + * A list of API key ids. This parameter cannot be used with any of + * name, realm_name, or username. + *

* API name: {@code ids} */ public final List ids() { @@ -105,6 +119,9 @@ public final List ids() { } /** + * An API key name. This parameter cannot be used with any of ids, + * realm_name or username. + *

* API name: {@code name} */ @Nullable @@ -113,6 +130,11 @@ public final String name() { } /** + * Can be used to query API keys owned by the currently authenticated user. The + * realm_name or username parameters cannot be + * specified when this parameter is set to true as they are assumed + * to be the currently authenticated ones. + *

* API name: {@code owner} */ @Nullable @@ -121,6 +143,10 @@ public final Boolean owner() { } /** + * The name of an authentication realm. This parameter cannot be used with + * either ids or name, or when owner flag + * is set to true. + *

* API name: {@code realm_name} */ @Nullable @@ -129,6 +155,10 @@ public final String realmName() { } /** + * The username of a user. This parameter cannot be used with either + * ids or name, or when owner flag is set + * to true. + *

* API name: {@code username} */ @Nullable @@ -221,6 +251,9 @@ public final Builder id(@Nullable String value) { } /** + * A list of API key ids. This parameter cannot be used with any of + * name, realm_name, or username. + *

* API name: {@code ids} *

* Adds all elements of list to ids. @@ -231,6 +264,9 @@ public final Builder ids(List list) { } /** + * A list of API key ids. This parameter cannot be used with any of + * name, realm_name, or username. + *

* API name: {@code ids} *

* Adds one or more values to ids. @@ -241,6 +277,9 @@ public final Builder ids(String value, String... values) { } /** + * An API key name. This parameter cannot be used with any of ids, + * realm_name or username. + *

* API name: {@code name} */ public final Builder name(@Nullable String value) { @@ -249,6 +288,11 @@ public final Builder name(@Nullable String value) { } /** + * Can be used to query API keys owned by the currently authenticated user. The + * realm_name or username parameters cannot be + * specified when this parameter is set to true as they are assumed + * to be the currently authenticated ones. + *

* API name: {@code owner} */ public final Builder owner(@Nullable Boolean value) { @@ -257,6 +301,10 @@ public final Builder owner(@Nullable Boolean value) { } /** + * The name of an authentication realm. This parameter cannot be used with + * either ids or name, or when owner flag + * is set to true. + *

* API name: {@code realm_name} */ public final Builder realmName(@Nullable String value) { @@ -265,6 +313,10 @@ public final Builder realmName(@Nullable String value) { } /** + * The username of a user. This parameter cannot be used with either + * ids or name, or when owner flag is set + * to true. + *

* API name: {@code username} */ public final Builder username(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 3ffce75a3..6c188dd1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -51,7 +51,8 @@ // typedef: security.query_api_keys.Request /** - * Retrieves information for API keys using a subset of query DSL + * Retrieves information for API keys in a paginated manner. You can optionally + * filter the results with a query. * * @see API * specification @@ -94,7 +95,7 @@ public static QueryApiKeysRequest of(Functionsearch_after parameter. *

* API name: {@code from} */ @@ -105,8 +106,10 @@ public final Integer from() { /** * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, term, terms, ids, prefix, wildcard, - * and range. You can query all public information associated with an API key + * query types, including match_all, bool, + * term, terms, ids, prefix, + * wildcard, and range. You can query all public + * information associated with an API key. *

* API name: {@code query} */ @@ -116,6 +119,8 @@ public final Query query() { } /** + * Search after definition + *

* API name: {@code search_after} */ public final List searchAfter() { @@ -124,8 +129,8 @@ public final List searchAfter() { /** * The number of hits to return. By default, you cannot page through more than - * 10,000 hits using the from and size parameters. To page through more hits, - * use the search_after parameter. + * 10,000 hits using the from and size parameters. To + * page through more hits, use the search_after parameter. *

* API name: {@code size} */ @@ -135,6 +140,10 @@ public final Integer size() { } /** + * Other than id, all public fields of an API key are eligible for + * sorting. In addition, sort can also be applied to the _doc field + * to sort by index order. + *

* API name: {@code sort} */ public final List sort() { @@ -232,7 +241,7 @@ public static class Builder extends RequestBase.AbstractBuilder /** * Starting document offset. By default, you cannot page through more than * 10,000 hits using the from and size parameters. To page through more hits, - * use the search_after parameter. + * use the search_after parameter. *

* API name: {@code from} */ @@ -243,8 +252,10 @@ public final Builder from(@Nullable Integer value) { /** * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, term, terms, ids, prefix, wildcard, - * and range. You can query all public information associated with an API key + * query types, including match_all, bool, + * term, terms, ids, prefix, + * wildcard, and range. You can query all public + * information associated with an API key. *

* API name: {@code query} */ @@ -255,8 +266,10 @@ public final Builder query(@Nullable Query value) { /** * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, term, terms, ids, prefix, wildcard, - * and range. You can query all public information associated with an API key + * query types, including match_all, bool, + * term, terms, ids, prefix, + * wildcard, and range. You can query all public + * information associated with an API key. *

* API name: {@code query} */ @@ -265,6 +278,8 @@ public final Builder query(Function> fn) { } /** + * Search after definition + *

* API name: {@code search_after} *

* Adds all elements of list to searchAfter. @@ -275,6 +290,8 @@ public final Builder searchAfter(List list) { } /** + * Search after definition + *

* API name: {@code search_after} *

* Adds one or more values to searchAfter. @@ -285,6 +302,8 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { } /** + * Search after definition + *

* API name: {@code search_after} *

* Adds a value to searchAfter using a builder lambda. @@ -295,8 +314,8 @@ public final Builder searchAfter(Functionfrom and size parameters. To + * page through more hits, use the search_after parameter. *

* API name: {@code size} */ @@ -306,6 +325,10 @@ public final Builder size(@Nullable Integer value) { } /** + * Other than id, all public fields of an API key are eligible for + * sorting. In addition, sort can also be applied to the _doc field + * to sort by index order. + *

* API name: {@code sort} *

* Adds all elements of list to sort. @@ -316,6 +339,10 @@ public final Builder sort(List list) { } /** + * Other than id, all public fields of an API key are eligible for + * sorting. In addition, sort can also be applied to the _doc field + * to sort by index order. + *

* API name: {@code sort} *

* Adds one or more values to sort. @@ -326,6 +353,10 @@ public final Builder sort(SortOptions value, SortOptions... values) { } /** + * Other than id, all public fields of an API key are eligible for + * sorting. In addition, sort can also be applied to the _doc field + * to sort by index order. + *

* API name: {@code sort} *

* Adds a value to sort using a builder lambda. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java index 5af2fbe27..19ded4c67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java @@ -71,21 +71,27 @@ public static QueryApiKeysResponse of(Function + * API name: {@code total} */ public final int total() { return this.total; } /** - * Required - API name: {@code count} + * Required - The number of API keys returned in the response. + *

+ * API name: {@code count} */ public final int count() { return this.count; } /** - * Required - API name: {@code api_keys} + * Required - A list of API key information. + *

+ * API name: {@code api_keys} */ public final List apiKeys() { return this.apiKeys; @@ -142,7 +148,9 @@ public static class Builder extends WithJsonObjectBuilderBase private List apiKeys; /** - * Required - API name: {@code total} + * Required - The total number of API keys found. + *

+ * API name: {@code total} */ public final Builder total(int value) { this.total = value; @@ -150,7 +158,9 @@ public final Builder total(int value) { } /** - * Required - API name: {@code count} + * Required - The number of API keys returned in the response. + *

+ * API name: {@code count} */ public final Builder count(int value) { this.count = value; @@ -158,7 +168,9 @@ public final Builder count(int value) { } /** - * Required - API name: {@code api_keys} + * Required - A list of API key information. + *

+ * API name: {@code api_keys} *

* Adds all elements of list to apiKeys. */ @@ -168,7 +180,9 @@ public final Builder apiKeys(List list) { } /** - * Required - API name: {@code api_keys} + * Required - A list of API key information. + *

+ * API name: {@code api_keys} *

* Adds one or more values to apiKeys. */ @@ -178,7 +192,9 @@ public final Builder apiKeys(ApiKey value, ApiKey... values) { } /** - * Required - API name: {@code api_keys} + * Required - A list of API key information. + *

+ * API name: {@code api_keys} *

* Adds a value to apiKeys using a builder lambda. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java index 9ef2d8e26..8a83dc4aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java @@ -85,6 +85,9 @@ public static RoleDescriptor of(Function> } /** + * A list of cluster privileges. These privileges define the cluster level + * actions that API keys are able to execute. + *

* API name: {@code cluster} */ public final List cluster() { @@ -92,6 +95,8 @@ public final List cluster() { } /** + * A list of indices permissions entries. + *

* API name: {@code indices} */ public final List indices() { @@ -99,6 +104,10 @@ public final List indices() { } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} */ public final List global() { @@ -106,6 +115,8 @@ public final List global() { } /** + * A list of application privilege entries + *

* API name: {@code applications} */ public final List applications() { @@ -113,6 +124,9 @@ public final List applications() { } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} */ public final Map metadata() { @@ -120,6 +134,8 @@ public final Map metadata() { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} */ public final List runAs() { @@ -248,6 +264,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private TransientMetadataConfig transientMetadata; /** + * A list of cluster privileges. These privileges define the cluster level + * actions that API keys are able to execute. + *

* API name: {@code cluster} *

* Adds all elements of list to cluster. @@ -258,6 +277,9 @@ public final Builder cluster(List list) { } /** + * A list of cluster privileges. These privileges define the cluster level + * actions that API keys are able to execute. + *

* API name: {@code cluster} *

* Adds one or more values to cluster. @@ -268,6 +290,8 @@ public final Builder cluster(String value, String... values) { } /** + * A list of indices permissions entries. + *

* API name: {@code indices} *

* Adds all elements of list to indices. @@ -278,6 +302,8 @@ public final Builder indices(List list) { } /** + * A list of indices permissions entries. + *

* API name: {@code indices} *

* Adds one or more values to indices. @@ -288,6 +314,8 @@ public final Builder indices(IndicesPrivileges value, IndicesPrivileges... value } /** + * A list of indices permissions entries. + *

* API name: {@code indices} *

* Adds a value to indices using a builder lambda. @@ -297,6 +325,10 @@ public final Builder indices(Function * API name: {@code global} *

* Adds all elements of list to global. @@ -307,6 +339,10 @@ public final Builder global(List list) { } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} *

* Adds one or more values to global. @@ -317,6 +353,10 @@ public final Builder global(GlobalPrivilege value, GlobalPrivilege... values) { } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} *

* Adds a value to global using a builder lambda. @@ -326,6 +366,8 @@ public final Builder global(Function * API name: {@code applications} *

* Adds all elements of list to applications. @@ -336,6 +378,8 @@ public final Builder applications(List list) { } /** + * A list of application privilege entries + *

* API name: {@code applications} *

* Adds one or more values to applications. @@ -346,6 +390,8 @@ public final Builder applications(ApplicationPrivileges value, ApplicationPrivil } /** + * A list of application privilege entries + *

* API name: {@code applications} *

* Adds a value to applications using a builder lambda. @@ -356,6 +402,9 @@ public final Builder applications( } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds all entries of map to metadata. @@ -366,6 +415,9 @@ public final Builder metadata(Map map) { } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds an entry to metadata. @@ -376,6 +428,8 @@ public final Builder metadata(String key, JsonData value) { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} *

* Adds all elements of list to runAs. @@ -386,6 +440,8 @@ public final Builder runAs(List list) { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} *

* Adds one or more values to runAs. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java index eefc32582..cf27e9664 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java @@ -86,20 +86,29 @@ public static RoleDescriptorRead of(Function + * API name: {@code cluster} */ public final List cluster() { return this.cluster; } /** - * Required - API name: {@code indices} + * Required - A list of indices permissions entries. + *

+ * API name: {@code indices} */ public final List indices() { return this.indices; } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} */ public final List global() { @@ -107,6 +116,8 @@ public final List global() { } /** + * A list of application privilege entries + *

* API name: {@code applications} */ public final List applications() { @@ -114,6 +125,9 @@ public final List applications() { } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} */ public final Map metadata() { @@ -121,6 +135,8 @@ public final Map metadata() { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} */ public final List runAs() { @@ -249,7 +265,10 @@ public static class Builder extends WithJsonObjectBuilderBase private TransientMetadataConfig transientMetadata; /** - * Required - API name: {@code cluster} + * Required - A list of cluster privileges. These privileges define the cluster + * level actions that API keys are able to execute. + *

+ * API name: {@code cluster} *

* Adds all elements of list to cluster. */ @@ -259,7 +278,10 @@ public final Builder cluster(List list) { } /** - * Required - API name: {@code cluster} + * Required - A list of cluster privileges. These privileges define the cluster + * level actions that API keys are able to execute. + *

+ * API name: {@code cluster} *

* Adds one or more values to cluster. */ @@ -269,7 +291,9 @@ public final Builder cluster(String value, String... values) { } /** - * Required - API name: {@code indices} + * Required - A list of indices permissions entries. + *

+ * API name: {@code indices} *

* Adds all elements of list to indices. */ @@ -279,7 +303,9 @@ public final Builder indices(List list) { } /** - * Required - API name: {@code indices} + * Required - A list of indices permissions entries. + *

+ * API name: {@code indices} *

* Adds one or more values to indices. */ @@ -289,7 +315,9 @@ public final Builder indices(IndicesPrivileges value, IndicesPrivileges... value } /** - * Required - API name: {@code indices} + * Required - A list of indices permissions entries. + *

+ * API name: {@code indices} *

* Adds a value to indices using a builder lambda. */ @@ -298,6 +326,10 @@ public final Builder indices(Function * API name: {@code global} *

* Adds all elements of list to global. @@ -308,6 +340,10 @@ public final Builder global(List list) { } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} *

* Adds one or more values to global. @@ -318,6 +354,10 @@ public final Builder global(GlobalPrivilege value, GlobalPrivilege... values) { } /** + * An object defining global privileges. A global privilege is a form of cluster + * privilege that is request-aware. Support for global privileges is currently + * limited to the management of application privileges. + *

* API name: {@code global} *

* Adds a value to global using a builder lambda. @@ -327,6 +367,8 @@ public final Builder global(Function * API name: {@code applications} *

* Adds all elements of list to applications. @@ -337,6 +379,8 @@ public final Builder applications(List list) { } /** + * A list of application privilege entries + *

* API name: {@code applications} *

* Adds one or more values to applications. @@ -347,6 +391,8 @@ public final Builder applications(ApplicationPrivileges value, ApplicationPrivil } /** + * A list of application privilege entries + *

* API name: {@code applications} *

* Adds a value to applications using a builder lambda. @@ -357,6 +403,9 @@ public final Builder applications( } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds all entries of map to metadata. @@ -367,6 +416,9 @@ public final Builder metadata(Map map) { } /** + * Optional meta-data. Within the metadata object, keys that begin with + * _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds an entry to metadata. @@ -377,6 +429,8 @@ public final Builder metadata(String key, JsonData value) { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} *

* Adds all elements of list to runAs. @@ -387,6 +441,8 @@ public final Builder runAs(List list) { } /** + * A list of users that the API keys can impersonate. + *

* API name: {@code run_as} *

* Adds one or more values to runAs. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index 11ec558a1..9975c9e86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -47,7 +47,24 @@ // typedef: security.update_api_key.Request /** - * Updates attributes of an existing API key. + * Updates attributes of an existing API key. Users can only update API keys + * that they created or that were granted to them. Use this API to update API + * keys created by the create API Key or grant API Key APIs. If you need to + * apply the same update to many API keys, you can use bulk update API Keys to + * reduce overhead. It’s not possible to update expired API keys, or API keys + * that have been invalidated by invalidate API Key. This API supports updates + * to an API key’s access scope and metadata. The access scope of an API key is + * derived from the role_descriptors you specify in the request, + * and a snapshot of the owner user’s permissions at the time of the request. + * The snapshot of the owner’s permissions is updated automatically on every + * call. If you don’t specify role_descriptors in the request, a + * call to this API might still change the API key’s access scope. This change + * can occur if the owner user’s permissions have changed since the API key was + * created or last modified. To update another user’s API key, use the + * run_as feature to submit a request on behalf of another user. + * IMPORTANT: It’s not possible to use an API key as the authentication + * credential for this API. To update an API key, the owner user’s credentials + * are required. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java index d3f9a6c99..fd30a2241 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java @@ -63,7 +63,10 @@ public static UpdateApiKeyResponse of(Functiontrue, the API key was updated. If + * false, the API key didn’t change because no change was detected. + *

+ * API name: {@code updated} */ public final boolean updated() { return this.updated; @@ -102,7 +105,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean updated; /** - * Required - API name: {@code updated} + * Required - If true, the API key was updated. If + * false, the API key didn’t change because no change was detected. + *

+ * API name: {@code updated} */ public final Builder updated(boolean value) { this.updated = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java index 371fd9143..f01a1431a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java @@ -86,6 +86,8 @@ public final String name() { } /** + * Expiration time for the API key. By default, API keys never expire. + *

* API name: {@code expiration} */ @Nullable @@ -94,6 +96,12 @@ public final Time expiration() { } /** + * The role descriptors for this API key. This parameter is optional. When it is + * not specified or is an empty array, the API key has a point in time snapshot + * of permissions of the specified user or access token. If you supply role + * descriptors, the resultant permissions are an intersection of API keys + * permissions and the permissions of the user or access token. + *

* API name: {@code role_descriptors} */ public final List> roleDescriptors() { @@ -101,6 +109,10 @@ public final List> roleDescriptors() { } /** + * Arbitrary metadata that you want to associate with the API key. It supports + * nested data structure. Within the metadata object, keys + * beginning with _ are reserved for system usage. + *

* API name: {@code metadata} */ public final Map metadata() { @@ -190,6 +202,8 @@ public final Builder name(String value) { } /** + * Expiration time for the API key. By default, API keys never expire. + *

* API name: {@code expiration} */ public final Builder expiration(@Nullable Time value) { @@ -198,6 +212,8 @@ public final Builder expiration(@Nullable Time value) { } /** + * Expiration time for the API key. By default, API keys never expire. + *

* API name: {@code expiration} */ public final Builder expiration(Function> fn) { @@ -205,6 +221,12 @@ public final Builder expiration(Function> fn) } /** + * The role descriptors for this API key. This parameter is optional. When it is + * not specified or is an empty array, the API key has a point in time snapshot + * of permissions of the specified user or access token. If you supply role + * descriptors, the resultant permissions are an intersection of API keys + * permissions and the permissions of the user or access token. + *

* API name: {@code role_descriptors} *

* Adds all elements of list to roleDescriptors. @@ -215,6 +237,12 @@ public final Builder roleDescriptors(List> list) { } /** + * The role descriptors for this API key. This parameter is optional. When it is + * not specified or is an empty array, the API key has a point in time snapshot + * of permissions of the specified user or access token. If you supply role + * descriptors, the resultant permissions are an intersection of API keys + * permissions and the permissions of the user or access token. + *

* API name: {@code role_descriptors} *

* Adds one or more values to roleDescriptors. @@ -225,6 +253,10 @@ public final Builder roleDescriptors(Map value, Mapmetadata object, keys + * beginning with _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds all entries of map to metadata. @@ -235,6 +267,10 @@ public final Builder metadata(Map map) { } /** + * Arbitrary metadata that you want to associate with the API key. It supports + * nested data structure. Within the metadata object, keys + * beginning with _ are reserved for system usage. + *

* API name: {@code metadata} *

* Adds an entry to metadata. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java index 19c6112f3..445e8f7ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java @@ -23,6 +23,7 @@ package co.elastic.clients.elasticsearch.security.has_privileges; +import co.elastic.clients.elasticsearch.security.IndexPrivilege; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java index 3a45546c0..b7d33f057 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java @@ -23,6 +23,7 @@ package co.elastic.clients.elasticsearch.security.has_privileges_user_profile; +import co.elastic.clients.elasticsearch.security.ClusterPrivilege; import co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck; import co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck; import co.elastic.clients.json.JsonpDeserializable; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java new file mode 100644 index 000000000..306616a57 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java @@ -0,0 +1,153 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.delete_synonym.Request + +/** + * Deletes a synonym set + * + * @see API + * specification + */ + +public class DeleteSynonymRequest extends RequestBase { + private final String id; + + // --------------------------------------------------------------------------------------------- + + private DeleteSynonymRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + + } + + public static DeleteSynonymRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The id of the synonyms set to be deleted + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSynonymRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + /** + * Required - The id of the synonyms set to be deleted + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSynonymRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSynonymRequest build() { + _checkSingleUse(); + + return new DeleteSynonymRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.delete_synonym}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.delete_synonym", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteSynonymResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java new file mode 100644 index 000000000..0db18ccb5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: synonyms.delete_synonym.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteSynonymResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteSynonymResponse(Builder builder) { + super(builder); + + } + + public static DeleteSynonymResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSynonymResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSynonymResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSynonymResponse build() { + _checkSingleUse(); + + return new DeleteSynonymResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteSynonymResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteSynonymResponse::setupDeleteSynonymResponseDeserializer); + + protected static void setupDeleteSynonymResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java new file mode 100644 index 000000000..cb0964d38 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -0,0 +1,182 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.delete_synonym_rule.Request + +/** + * Deletes a synonym rule in a synonym set + * + * @see API + * specification + */ + +public class DeleteSynonymRuleRequest extends RequestBase { + private final String ruleId; + + private final String setId; + + // --------------------------------------------------------------------------------------------- + + private DeleteSynonymRuleRequest(Builder builder) { + + this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); + this.setId = ApiTypeHelper.requireNonNull(builder.setId, this, "setId"); + + } + + public static DeleteSynonymRuleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The id of the synonym rule to be deleted + *

+ * API name: {@code rule_id} + */ + public final String ruleId() { + return this.ruleId; + } + + /** + * Required - The id of the synonym set to be updated + *

+ * API name: {@code set_id} + */ + public final String setId() { + return this.setId; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSynonymRuleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String ruleId; + + private String setId; + + /** + * Required - The id of the synonym rule to be deleted + *

+ * API name: {@code rule_id} + */ + public final Builder ruleId(String value) { + this.ruleId = value; + return this; + } + + /** + * Required - The id of the synonym set to be updated + *

+ * API name: {@code set_id} + */ + public final Builder setId(String value) { + this.setId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSynonymRuleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSynonymRuleRequest build() { + _checkSingleUse(); + + return new DeleteSynonymRuleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.delete_synonym_rule}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.delete_synonym_rule", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.setId, buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.ruleId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteSynonymRuleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java new file mode 100644 index 000000000..8aef72699 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: synonyms.delete_synonym_rule.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteSynonymRuleResponse extends SynonymsUpdateResult { + // --------------------------------------------------------------------------------------------- + + private DeleteSynonymRuleResponse(Builder builder) { + super(builder); + + } + + public static DeleteSynonymRuleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSynonymRuleResponse}. + */ + + public static class Builder extends SynonymsUpdateResult.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSynonymRuleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSynonymRuleResponse build() { + _checkSingleUse(); + + return new DeleteSynonymRuleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteSynonymRuleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteSynonymRuleResponse::setupDeleteSynonymRuleResponseDeserializer); + + protected static void setupDeleteSynonymRuleResponseDeserializer( + ObjectDeserializer op) { + SynonymsUpdateResult.setupSynonymsUpdateResultDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java new file mode 100644 index 000000000..cfdec96f6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java @@ -0,0 +1,303 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the synonyms namespace. + */ +public class ElasticsearchSynonymsAsyncClient + extends + ApiClient { + + public ElasticsearchSynonymsAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSynonymsAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSynonymsAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSynonymsAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: synonyms.delete_synonym + + /** + * Deletes a synonym set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteSynonym(DeleteSynonymRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSynonymRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteSynonym( + Function> fn) { + return deleteSynonym(fn.apply(new DeleteSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.delete_synonym_rule + + /** + * Deletes a synonym rule in a synonym set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteSynonymRule(DeleteSynonymRuleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes a synonym rule in a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteSynonymRule( + Function> fn) { + return deleteSynonymRule(fn.apply(new DeleteSynonymRuleRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonym + + /** + * Retrieves a synonym set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSynonym(GetSynonymRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSynonym( + Function> fn) { + return getSynonym(fn.apply(new GetSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonym_rule + + /** + * Retrieves a synonym rule from a synonym set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSynonymRule(GetSynonymRuleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a synonym rule from a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSynonymRule( + Function> fn) { + return getSynonymRule(fn.apply(new GetSynonymRuleRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonyms_sets + + /** + * Retrieves a summary of all defined synonym sets + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSynonymsSets(GetSynonymsSetsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymsSetsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a summary of all defined synonym sets + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymsSetsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSynonymsSets( + Function> fn) { + return getSynonymsSets(fn.apply(new GetSynonymsSetsRequest.Builder()).build()); + } + + /** + * Retrieves a summary of all defined synonym sets + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSynonymsSets() { + return this.transport.performRequestAsync(new GetSynonymsSetsRequest.Builder().build(), + GetSynonymsSetsRequest._ENDPOINT, this.transportOptions); + } + + // ----- Endpoint: synonyms.put_synonym + + /** + * Creates or updates a synonyms set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putSynonym(PutSynonymRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSynonymRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a synonyms set + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putSynonym( + Function> fn) { + return putSynonym(fn.apply(new PutSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.put_synonym_rule + + /** + * Creates or updates a synonym rule in a synonym set + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putSynonymRule(PutSynonymRuleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a synonym rule in a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putSynonymRule( + Function> fn) { + return putSynonymRule(fn.apply(new PutSynonymRuleRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java new file mode 100644 index 000000000..e3b9491f5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java @@ -0,0 +1,311 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the synonyms namespace. + */ +public class ElasticsearchSynonymsClient extends ApiClient { + + public ElasticsearchSynonymsClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSynonymsClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSynonymsClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSynonymsClient(this.transport, transportOptions); + } + + // ----- Endpoint: synonyms.delete_synonym + + /** + * Deletes a synonym set + * + * @see Documentation + * on elastic.co + */ + + public DeleteSynonymResponse deleteSynonym(DeleteSynonymRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSynonymRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteSynonymResponse deleteSynonym( + Function> fn) + throws IOException, ElasticsearchException { + return deleteSynonym(fn.apply(new DeleteSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.delete_synonym_rule + + /** + * Deletes a synonym rule in a synonym set + * + * @see Documentation + * on elastic.co + */ + + public DeleteSynonymRuleResponse deleteSynonymRule(DeleteSynonymRuleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes a synonym rule in a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteSynonymRuleResponse deleteSynonymRule( + Function> fn) + throws IOException, ElasticsearchException { + return deleteSynonymRule(fn.apply(new DeleteSynonymRuleRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonym + + /** + * Retrieves a synonym set + * + * @see Documentation + * on elastic.co + */ + + public GetSynonymResponse getSynonym(GetSynonymRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSynonymResponse getSynonym(Function> fn) + throws IOException, ElasticsearchException { + return getSynonym(fn.apply(new GetSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonym_rule + + /** + * Retrieves a synonym rule from a synonym set + * + * @see Documentation + * on elastic.co + */ + + public GetSynonymRuleResponse getSynonymRule(GetSynonymRuleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a synonym rule from a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSynonymRuleResponse getSynonymRule( + Function> fn) + throws IOException, ElasticsearchException { + return getSynonymRule(fn.apply(new GetSynonymRuleRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.get_synonyms_sets + + /** + * Retrieves a summary of all defined synonym sets + * + * @see Documentation + * on elastic.co + */ + + public GetSynonymsSetsResponse getSynonymsSets(GetSynonymsSetsRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSynonymsSetsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Retrieves a summary of all defined synonym sets + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSynonymsSetsRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSynonymsSetsResponse getSynonymsSets( + Function> fn) + throws IOException, ElasticsearchException { + return getSynonymsSets(fn.apply(new GetSynonymsSetsRequest.Builder()).build()); + } + + /** + * Retrieves a summary of all defined synonym sets + * + * @see Documentation + * on elastic.co + */ + + public GetSynonymsSetsResponse getSynonymsSets() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetSynonymsSetsRequest.Builder().build(), + GetSynonymsSetsRequest._ENDPOINT, this.transportOptions); + } + + // ----- Endpoint: synonyms.put_synonym + + /** + * Creates or updates a synonyms set + * + * @see Documentation + * on elastic.co + */ + + public PutSynonymResponse putSynonym(PutSynonymRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSynonymRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a synonyms set + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSynonymRequest} + * @see Documentation + * on elastic.co + */ + + public final PutSynonymResponse putSynonym(Function> fn) + throws IOException, ElasticsearchException { + return putSynonym(fn.apply(new PutSynonymRequest.Builder()).build()); + } + + // ----- Endpoint: synonyms.put_synonym_rule + + /** + * Creates or updates a synonym rule in a synonym set + * + * @see Documentation + * on elastic.co + */ + + public PutSynonymRuleResponse putSynonymRule(PutSynonymRuleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSynonymRuleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a synonym rule in a synonym set + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSynonymRuleRequest} + * @see Documentation + * on elastic.co + */ + + public final PutSynonymRuleResponse putSynonymRule( + Function> fn) + throws IOException, ElasticsearchException { + return putSynonymRule(fn.apply(new PutSynonymRuleRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java new file mode 100644 index 000000000..d54413ea9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java @@ -0,0 +1,216 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonym.Request + +/** + * Retrieves a synonym set + * + * @see API + * specification + */ + +public class GetSynonymRequest extends RequestBase { + @Nullable + private final Integer from; + + private final String id; + + @Nullable + private final Integer size; + + // --------------------------------------------------------------------------------------------- + + private GetSynonymRequest(Builder builder) { + + this.from = builder.from; + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.size = builder.size; + + } + + public static GetSynonymRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Starting offset for query rules to be retrieved + *

+ * API name: {@code from} + */ + @Nullable + public final Integer from() { + return this.from; + } + + /** + * Required - "The id of the synonyms set to be retrieved + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * specifies a max number of query rules to retrieve + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Integer from; + + private String id; + + @Nullable + private Integer size; + + /** + * Starting offset for query rules to be retrieved + *

+ * API name: {@code from} + */ + public final Builder from(@Nullable Integer value) { + this.from = value; + return this; + } + + /** + * Required - "The id of the synonyms set to be retrieved + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * specifies a max number of query rules to retrieve + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymRequest build() { + _checkSingleUse(); + + return new GetSynonymRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.get_synonym}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.get_synonym", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.size != null) { + params.put("size", String.valueOf(request.size)); + } + if (request.from != null) { + params.put("from", String.valueOf(request.from)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetSynonymResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java new file mode 100644 index 000000000..ed287c090 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java @@ -0,0 +1,199 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonym.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSynonymResponse implements JsonpSerializable { + private final int count; + + private final List synonymsSet; + + // --------------------------------------------------------------------------------------------- + + private GetSynonymResponse(Builder builder) { + + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.synonymsSet = ApiTypeHelper.unmodifiableRequired(builder.synonymsSet, this, "synonymsSet"); + + } + + public static GetSynonymResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code count} + */ + public final int count() { + return this.count; + } + + /** + * Required - API name: {@code synonyms_set} + */ + public final List synonymsSet() { + return this.synonymsSet; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("count"); + generator.write(this.count); + + if (ApiTypeHelper.isDefined(this.synonymsSet)) { + generator.writeKey("synonyms_set"); + generator.writeStartArray(); + for (SynonymRuleRead item0 : this.synonymsSet) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Integer count; + + private List synonymsSet; + + /** + * Required - API name: {@code count} + */ + public final Builder count(int value) { + this.count = value; + return this; + } + + /** + * Required - API name: {@code synonyms_set} + *

+ * Adds all elements of list to synonymsSet. + */ + public final Builder synonymsSet(List list) { + this.synonymsSet = _listAddAll(this.synonymsSet, list); + return this; + } + + /** + * Required - API name: {@code synonyms_set} + *

+ * Adds one or more values to synonymsSet. + */ + public final Builder synonymsSet(SynonymRuleRead value, SynonymRuleRead... values) { + this.synonymsSet = _listAdd(this.synonymsSet, value, values); + return this; + } + + /** + * Required - API name: {@code synonyms_set} + *

+ * Adds a value to synonymsSet using a builder lambda. + */ + public final Builder synonymsSet(Function> fn) { + return synonymsSet(fn.apply(new SynonymRuleRead.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymResponse build() { + _checkSingleUse(); + + return new GetSynonymResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSynonymResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSynonymResponse::setupGetSynonymResponseDeserializer); + + protected static void setupGetSynonymResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); + op.add(Builder::synonymsSet, JsonpDeserializer.arrayDeserializer(SynonymRuleRead._DESERIALIZER), + "synonyms_set"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java new file mode 100644 index 000000000..17e5940bb --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -0,0 +1,182 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonym_rule.Request + +/** + * Retrieves a synonym rule from a synonym set + * + * @see API + * specification + */ + +public class GetSynonymRuleRequest extends RequestBase { + private final String ruleId; + + private final String setId; + + // --------------------------------------------------------------------------------------------- + + private GetSynonymRuleRequest(Builder builder) { + + this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); + this.setId = ApiTypeHelper.requireNonNull(builder.setId, this, "setId"); + + } + + public static GetSynonymRuleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The id of the synonym rule to retrieve + *

+ * API name: {@code rule_id} + */ + public final String ruleId() { + return this.ruleId; + } + + /** + * Required - The id of the synonym set to retrieve the synonym rule from + *

+ * API name: {@code set_id} + */ + public final String setId() { + return this.setId; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymRuleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String ruleId; + + private String setId; + + /** + * Required - The id of the synonym rule to retrieve + *

+ * API name: {@code rule_id} + */ + public final Builder ruleId(String value) { + this.ruleId = value; + return this; + } + + /** + * Required - The id of the synonym set to retrieve the synonym rule from + *

+ * API name: {@code set_id} + */ + public final Builder setId(String value) { + this.setId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymRuleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymRuleRequest build() { + _checkSingleUse(); + + return new GetSynonymRuleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.get_synonym_rule}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.get_synonym_rule", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.setId, buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.ruleId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetSynonymRuleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java new file mode 100644 index 000000000..cb12fb6d6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: synonyms.get_synonym_rule.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSynonymRuleResponse extends SynonymRuleRead { + // --------------------------------------------------------------------------------------------- + + private GetSynonymRuleResponse(Builder builder) { + super(builder); + + } + + public static GetSynonymRuleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymRuleResponse}. + */ + + public static class Builder extends SynonymRuleRead.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymRuleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymRuleResponse build() { + _checkSingleUse(); + + return new GetSynonymRuleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSynonymRuleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSynonymRuleResponse::setupGetSynonymRuleResponseDeserializer); + + protected static void setupGetSynonymRuleResponseDeserializer( + ObjectDeserializer op) { + SynonymRuleRead.setupSynonymRuleReadDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java new file mode 100644 index 000000000..01922cf19 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -0,0 +1,178 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonyms_sets.Request + +/** + * Retrieves a summary of all defined synonym sets + * + * @see API + * specification + */ + +public class GetSynonymsSetsRequest extends RequestBase { + @Nullable + private final Integer from; + + @Nullable + private final Integer size; + + // --------------------------------------------------------------------------------------------- + + private GetSynonymsSetsRequest(Builder builder) { + + this.from = builder.from; + this.size = builder.size; + + } + + public static GetSynonymsSetsRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Starting offset + *

+ * API name: {@code from} + */ + @Nullable + public final Integer from() { + return this.from; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymsSetsRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Integer from; + + @Nullable + private Integer size; + + /** + * Starting offset + *

+ * API name: {@code from} + */ + public final Builder from(@Nullable Integer value) { + this.from = value; + return this; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymsSetsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymsSetsRequest build() { + _checkSingleUse(); + + return new GetSynonymsSetsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.get_synonyms_sets}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.get_synonyms_sets", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_synonyms"; + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.size != null) { + params.put("size", String.valueOf(request.size)); + } + if (request.from != null) { + params.put("from", String.valueOf(request.from)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetSynonymsSetsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java new file mode 100644 index 000000000..2095ab0a7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java @@ -0,0 +1,201 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets.SynonymsSetItem; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonyms_sets.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSynonymsSetsResponse implements JsonpSerializable { + private final int count; + + private final List results; + + // --------------------------------------------------------------------------------------------- + + private GetSynonymsSetsResponse(Builder builder) { + + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.results = ApiTypeHelper.unmodifiableRequired(builder.results, this, "results"); + + } + + public static GetSynonymsSetsResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code count} + */ + public final int count() { + return this.count; + } + + /** + * Required - API name: {@code results} + */ + public final List results() { + return this.results; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("count"); + generator.write(this.count); + + if (ApiTypeHelper.isDefined(this.results)) { + generator.writeKey("results"); + generator.writeStartArray(); + for (SynonymsSetItem item0 : this.results) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSynonymsSetsResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Integer count; + + private List results; + + /** + * Required - API name: {@code count} + */ + public final Builder count(int value) { + this.count = value; + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds all elements of list to results. + */ + public final Builder results(List list) { + this.results = _listAddAll(this.results, list); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds one or more values to results. + */ + public final Builder results(SynonymsSetItem value, SynonymsSetItem... values) { + this.results = _listAdd(this.results, value, values); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds a value to results using a builder lambda. + */ + public final Builder results(Function> fn) { + return results(fn.apply(new SynonymsSetItem.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSynonymsSetsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSynonymsSetsResponse build() { + _checkSingleUse(); + + return new GetSynonymsSetsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSynonymsSetsResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSynonymsSetsResponse::setupGetSynonymsSetsResponseDeserializer); + + protected static void setupGetSynonymsSetsResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); + op.add(Builder::results, JsonpDeserializer.arrayDeserializer(SynonymsSetItem._DESERIALIZER), "results"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java new file mode 100644 index 000000000..d31aaf56a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -0,0 +1,243 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.put_synonym.Request + +/** + * Creates or updates a synonym set. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSynonymRequest extends RequestBase implements JsonpSerializable { + private final String id; + + private final List synonymsSet; + + // --------------------------------------------------------------------------------------------- + + private PutSynonymRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.synonymsSet = ApiTypeHelper.unmodifiableRequired(builder.synonymsSet, this, "synonymsSet"); + + } + + public static PutSynonymRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The id of the synonyms set to be created or updated + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - The synonym set information to update + *

+ * API name: {@code synonyms_set} + */ + public final List synonymsSet() { + return this.synonymsSet; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.synonymsSet)) { + generator.writeKey("synonyms_set"); + generator.writeStartArray(); + for (SynonymRule item0 : this.synonymsSet) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSynonymRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + private List synonymsSet; + + /** + * Required - The id of the synonyms set to be created or updated + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - The synonym set information to update + *

+ * API name: {@code synonyms_set} + *

+ * Adds all elements of list to synonymsSet. + */ + public final Builder synonymsSet(List list) { + this.synonymsSet = _listAddAll(this.synonymsSet, list); + return this; + } + + /** + * Required - The synonym set information to update + *

+ * API name: {@code synonyms_set} + *

+ * Adds one or more values to synonymsSet. + */ + public final Builder synonymsSet(SynonymRule value, SynonymRule... values) { + this.synonymsSet = _listAdd(this.synonymsSet, value, values); + return this; + } + + /** + * Required - The synonym set information to update + *

+ * API name: {@code synonyms_set} + *

+ * Adds a value to synonymsSet using a builder lambda. + */ + public final Builder synonymsSet(Function> fn) { + return synonymsSet(fn.apply(new SynonymRule.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSynonymRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSynonymRequest build() { + _checkSingleUse(); + + return new PutSynonymRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSynonymRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSynonymRequest::setupPutSynonymRequestDeserializer); + + protected static void setupPutSynonymRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::synonymsSet, JsonpDeserializer.arrayDeserializer(SynonymRule._DESERIALIZER), "synonyms_set"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.put_synonym}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.put_synonym", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutSynonymResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java new file mode 100644 index 000000000..e95aa7299 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java @@ -0,0 +1,176 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.Result; +import co.elastic.clients.elasticsearch.indices.reload_search_analyzers.ReloadDetails; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.put_synonym.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSynonymResponse implements JsonpSerializable { + private final Result result; + + private final ReloadDetails reloadAnalyzersDetails; + + // --------------------------------------------------------------------------------------------- + + private PutSynonymResponse(Builder builder) { + + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); + this.reloadAnalyzersDetails = ApiTypeHelper.requireNonNull(builder.reloadAnalyzersDetails, this, + "reloadAnalyzersDetails"); + + } + + public static PutSynonymResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code result} + */ + public final Result result() { + return this.result; + } + + /** + * Required - API name: {@code reload_analyzers_details} + */ + public final ReloadDetails reloadAnalyzersDetails() { + return this.reloadAnalyzersDetails; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("result"); + this.result.serialize(generator, mapper); + generator.writeKey("reload_analyzers_details"); + this.reloadAnalyzersDetails.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSynonymResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Result result; + + private ReloadDetails reloadAnalyzersDetails; + + /** + * Required - API name: {@code result} + */ + public final Builder result(Result value) { + this.result = value; + return this; + } + + /** + * Required - API name: {@code reload_analyzers_details} + */ + public final Builder reloadAnalyzersDetails(ReloadDetails value) { + this.reloadAnalyzersDetails = value; + return this; + } + + /** + * Required - API name: {@code reload_analyzers_details} + */ + public final Builder reloadAnalyzersDetails(Function> fn) { + return this.reloadAnalyzersDetails(fn.apply(new ReloadDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSynonymResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSynonymResponse build() { + _checkSingleUse(); + + return new PutSynonymResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSynonymResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSynonymResponse::setupPutSynonymResponseDeserializer); + + protected static void setupPutSynonymResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::result, Result._DESERIALIZER, "result"); + op.add(Builder::reloadAnalyzersDetails, ReloadDetails._DESERIALIZER, "reload_analyzers_details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java new file mode 100644 index 000000000..1f278fd55 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -0,0 +1,256 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.put_synonym_rule.Request + +/** + * Creates or updates a synonym rule in a synonym set + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSynonymRuleRequest extends RequestBase implements JsonpSerializable { + private final String ruleId; + + private final String setId; + + private final List synonyms; + + // --------------------------------------------------------------------------------------------- + + private PutSynonymRuleRequest(Builder builder) { + + this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); + this.setId = ApiTypeHelper.requireNonNull(builder.setId, this, "setId"); + this.synonyms = ApiTypeHelper.unmodifiableRequired(builder.synonyms, this, "synonyms"); + + } + + public static PutSynonymRuleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The id of the synonym rule to be updated or created + *

+ * API name: {@code rule_id} + */ + public final String ruleId() { + return this.ruleId; + } + + /** + * Required - The id of the synonym set to be updated with the synonym rule + *

+ * API name: {@code set_id} + */ + public final String setId() { + return this.setId; + } + + /** + * Required - API name: {@code synonyms} + */ + public final List synonyms() { + return this.synonyms; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.synonyms)) { + generator.writeKey("synonyms"); + generator.writeStartArray(); + for (String item0 : this.synonyms) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSynonymRuleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String ruleId; + + private String setId; + + private List synonyms; + + /** + * Required - The id of the synonym rule to be updated or created + *

+ * API name: {@code rule_id} + */ + public final Builder ruleId(String value) { + this.ruleId = value; + return this; + } + + /** + * Required - The id of the synonym set to be updated with the synonym rule + *

+ * API name: {@code set_id} + */ + public final Builder setId(String value) { + this.setId = value; + return this; + } + + /** + * Required - API name: {@code synonyms} + *

+ * Adds all elements of list to synonyms. + */ + public final Builder synonyms(List list) { + this.synonyms = _listAddAll(this.synonyms, list); + return this; + } + + /** + * Required - API name: {@code synonyms} + *

+ * Adds one or more values to synonyms. + */ + public final Builder synonyms(String value, String... values) { + this.synonyms = _listAdd(this.synonyms, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSynonymRuleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSynonymRuleRequest build() { + _checkSingleUse(); + + return new PutSynonymRuleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSynonymRuleRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSynonymRuleRequest::setupPutSynonymRuleRequestDeserializer); + + protected static void setupPutSynonymRuleRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::synonyms, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "synonyms"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code synonyms.put_synonym_rule}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/synonyms.put_synonym_rule", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_synonyms"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.setId, buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.ruleId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutSynonymRuleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java new file mode 100644 index 000000000..3ccfe320c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: synonyms.put_synonym_rule.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSynonymRuleResponse extends SynonymsUpdateResult { + // --------------------------------------------------------------------------------------------- + + private PutSynonymRuleResponse(Builder builder) { + super(builder); + + } + + public static PutSynonymRuleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSynonymRuleResponse}. + */ + + public static class Builder extends SynonymsUpdateResult.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSynonymRuleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSynonymRuleResponse build() { + _checkSingleUse(); + + return new PutSynonymRuleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSynonymRuleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSynonymRuleResponse::setupPutSynonymRuleResponseDeserializer); + + protected static void setupPutSynonymRuleResponseDeserializer( + ObjectDeserializer op) { + SynonymsUpdateResult.setupSynonymsUpdateResultDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java new file mode 100644 index 000000000..dd45a5ede --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java @@ -0,0 +1,183 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms._types.SynonymRule + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SynonymRule implements JsonpSerializable { + @Nullable + private final String id; + + private final String synonyms; + + // --------------------------------------------------------------------------------------------- + + private SynonymRule(Builder builder) { + + this.id = builder.id; + this.synonyms = ApiTypeHelper.requireNonNull(builder.synonyms, this, "synonyms"); + + } + + public static SynonymRule of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Synonym Rule identifier + *

+ * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + + /** + * Required - Synonyms, in Solr format, that conform the synonym rule. See + * https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + *

+ * API name: {@code synonyms} + */ + public final String synonyms() { + return this.synonyms; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + generator.writeKey("synonyms"); + generator.write(this.synonyms); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SynonymRule}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private String id; + + private String synonyms; + + /** + * Synonym Rule identifier + *

+ * API name: {@code id} + */ + public final Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * Required - Synonyms, in Solr format, that conform the synonym rule. See + * https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + *

+ * API name: {@code synonyms} + */ + public final Builder synonyms(String value) { + this.synonyms = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SynonymRule}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SynonymRule build() { + _checkSingleUse(); + + return new SynonymRule(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SynonymRule} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + SynonymRule::setupSynonymRuleDeserializer); + + protected static void setupSynonymRuleDeserializer(ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::synonyms, JsonpDeserializer.stringDeserializer(), "synonyms"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java new file mode 100644 index 000000000..def90b689 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java @@ -0,0 +1,188 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms._types.SynonymRuleRead + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SynonymRuleRead implements JsonpSerializable { + private final String id; + + private final String synonyms; + + // --------------------------------------------------------------------------------------------- + + protected SynonymRuleRead(AbstractBuilder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.synonyms = ApiTypeHelper.requireNonNull(builder.synonyms, this, "synonyms"); + + } + + public static SynonymRuleRead synonymRuleReadOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Synonym Rule identifier + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - Synonyms, in Solr format, that conform the synonym rule. See + * https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + *

+ * API name: {@code synonyms} + */ + public final String synonyms() { + return this.synonyms; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("id"); + generator.write(this.id); + + generator.writeKey("synonyms"); + generator.write(this.synonyms); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SynonymRuleRead}. + */ + + public static class Builder extends SynonymRuleRead.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SynonymRuleRead}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SynonymRuleRead build() { + _checkSingleUse(); + + return new SynonymRuleRead(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private String id; + + private String synonyms; + + /** + * Required - Synonym Rule identifier + *

+ * API name: {@code id} + */ + public final BuilderT id(String value) { + this.id = value; + return self(); + } + + /** + * Required - Synonyms, in Solr format, that conform the synonym rule. See + * https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + *

+ * API name: {@code synonyms} + */ + public final BuilderT synonyms(String value) { + this.synonyms = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SynonymRuleRead} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + SynonymRuleRead::setupSynonymRuleReadDeserializer); + + protected static > void setupSynonymRuleReadDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(AbstractBuilder::synonyms, JsonpDeserializer.stringDeserializer(), "synonyms"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java new file mode 100644 index 000000000..ff281e36f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java @@ -0,0 +1,160 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms; + +import co.elastic.clients.elasticsearch._types.Result; +import co.elastic.clients.elasticsearch.indices.reload_search_analyzers.ReloadResult; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms._types.SynonymsUpdateResult + +/** + * + * @see API + * specification + */ + +public abstract class SynonymsUpdateResult implements JsonpSerializable { + private final Result result; + + private final ReloadResult reloadAnalyzersDetails; + + // --------------------------------------------------------------------------------------------- + + protected SynonymsUpdateResult(AbstractBuilder builder) { + + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); + this.reloadAnalyzersDetails = ApiTypeHelper.requireNonNull(builder.reloadAnalyzersDetails, this, + "reloadAnalyzersDetails"); + + } + + /** + * Required - Update operation result + *

+ * API name: {@code result} + */ + public final Result result() { + return this.result; + } + + /** + * Required - Updating synonyms in a synonym set reloads the associated + * analyzers. This is the analyzers reloading result + *

+ * API name: {@code reload_analyzers_details} + */ + public final ReloadResult reloadAnalyzersDetails() { + return this.reloadAnalyzersDetails; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("result"); + this.result.serialize(generator, mapper); + generator.writeKey("reload_analyzers_details"); + this.reloadAnalyzersDetails.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private Result result; + + private ReloadResult reloadAnalyzersDetails; + + /** + * Required - Update operation result + *

+ * API name: {@code result} + */ + public final BuilderT result(Result value) { + this.result = value; + return self(); + } + + /** + * Required - Updating synonyms in a synonym set reloads the associated + * analyzers. This is the analyzers reloading result + *

+ * API name: {@code reload_analyzers_details} + */ + public final BuilderT reloadAnalyzersDetails(ReloadResult value) { + this.reloadAnalyzersDetails = value; + return self(); + } + + /** + * Required - Updating synonyms in a synonym set reloads the associated + * analyzers. This is the analyzers reloading result + *

+ * API name: {@code reload_analyzers_details} + */ + public final BuilderT reloadAnalyzersDetails(Function> fn) { + return this.reloadAnalyzersDetails(fn.apply(new ReloadResult.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupSynonymsUpdateResultDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::result, Result._DESERIALIZER, "result"); + op.add(AbstractBuilder::reloadAnalyzersDetails, ReloadResult._DESERIALIZER, "reload_analyzers_details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java new file mode 100644 index 000000000..b52e58954 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java @@ -0,0 +1,176 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: synonyms.get_synonyms_sets.SynonymsSetItem + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SynonymsSetItem implements JsonpSerializable { + private final String synonymsSet; + + private final int count; + + // --------------------------------------------------------------------------------------------- + + private SynonymsSetItem(Builder builder) { + + this.synonymsSet = ApiTypeHelper.requireNonNull(builder.synonymsSet, this, "synonymsSet"); + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + + } + + public static SynonymsSetItem of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Synonyms set identifier + *

+ * API name: {@code synonyms_set} + */ + public final String synonymsSet() { + return this.synonymsSet; + } + + /** + * Required - Number of synonym rules that the synonym set contains + *

+ * API name: {@code count} + */ + public final int count() { + return this.count; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("synonyms_set"); + generator.write(this.synonymsSet); + + generator.writeKey("count"); + generator.write(this.count); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SynonymsSetItem}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String synonymsSet; + + private Integer count; + + /** + * Required - Synonyms set identifier + *

+ * API name: {@code synonyms_set} + */ + public final Builder synonymsSet(String value) { + this.synonymsSet = value; + return this; + } + + /** + * Required - Number of synonym rules that the synonym set contains + *

+ * API name: {@code count} + */ + public final Builder count(int value) { + this.count = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SynonymsSetItem}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SynonymsSetItem build() { + _checkSingleUse(); + + return new SynonymsSetItem(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SynonymsSetItem} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + SynonymsSetItem::setupSynonymsSetItemDeserializer); + + protected static void setupSynonymsSetItemDeserializer(ObjectDeserializer op) { + + op.add(Builder::synonymsSet, JsonpDeserializer.stringDeserializer(), "synonyms_set"); + op.add(Builder::count, JsonpDeserializer.integerDeserializer(), "count"); + + } + +} From caba4f621daeaa20776c96d280c0ca183b9925e1 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 16 Aug 2023 17:05:16 +0200 Subject: [PATCH 4/6] Add docs for Exception caused by rest-client version mismatch (#647) --- docs/troubleshooting/index.asciidoc | 10 ++++-- .../no-such-method-request-options.asciidoc | 36 +++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 docs/troubleshooting/no-such-method-request-options.asciidoc diff --git a/docs/troubleshooting/index.asciidoc b/docs/troubleshooting/index.asciidoc index 25435df68..f011fbf94 100644 --- a/docs/troubleshooting/index.asciidoc +++ b/docs/troubleshooting/index.asciidoc @@ -4,11 +4,16 @@ // * <> // * <> -.Exceptions +[discrete] +=== Exceptions * <> -* <> +* <> + +[discrete] +=== Miscellaneous +* <> // [[debugging]] // === Debugging @@ -17,4 +22,5 @@ // === Elasticsearch deprecation warnings include::missing-required-property.asciidoc[] +include::no-such-method-request-options.asciidoc[] include::serialize-without-typed-keys.asciidoc[] diff --git a/docs/troubleshooting/no-such-method-request-options.asciidoc b/docs/troubleshooting/no-such-method-request-options.asciidoc new file mode 100644 index 000000000..942f79588 --- /dev/null +++ b/docs/troubleshooting/no-such-method-request-options.asciidoc @@ -0,0 +1,36 @@ + +[[no-such-method-request-options]] +=== `NoSuchMethodError RequestOptions$Builder.removeHeader` when creating a client + +In certain contexts you may encounter an error when creating the `ElasticsearchClient` saying that the method `RequestOptions$Builder.removeHeader` does not exist: + +["source","java"] +-------------------------------------------------- +java.lang.NoSuchMethodError: 'org.elasticsearch.client.RequestOptions$Builder org.elasticsearch.client.RequestOptions$Builder.removeHeader(java.lang.String)' +-------------------------------------------------- + +This method was introduced in `elasticsearch-rest-client` version 7.16.0. The error happens because your project is using an older version of this dependency. + +This happens in particular when the project is using the https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/[Spring Boot Maven Plugin], as this plugin https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-dependencies/build.gradle[defines versions for commonly used libraries], including `elasticsearch-rest-client`. Depending on the version of Spring Boot used in the project, that version may be outdated. + +To solve this issue, you have to add the `elasticsearch-rest-client` dependency explicitly in your project, with the same version as `elasticsearch-java` (see also <>). + +Using Gradle: + +["source","groovy",subs="attributes+"] +-------------------------------------------------- +implementation 'org.elasticsearch.client:elasticsearch-rest-client:{version}' +-------------------------------------------------- + + +Using Maven: + +["source","xml",subs="attributes+"] +-------------------------------------------------- + + org.elasticsearch.client + elasticsearch-rest-client + {version} + +-------------------------------------------------- + From 6c49b1285087b66e741033859a64acc4038bd092 Mon Sep 17 00:00:00 2001 From: Alexander Wert Date: Mon, 21 Aug 2023 21:39:06 +0200 Subject: [PATCH 5/6] Add instrumentation API and native OpenTelemetry implementation (#588) Signed-off-by: Alexander Wert Co-authored-by: Sylvain Wallez --- .../netty/NettyTransportHttpClient.java | 10 +- java-client/build.gradle.kts | 40 +- .../AsyncSearchStatusRequest.java | 17 + .../DeleteAsyncSearchRequest.java | 17 + .../async_search/GetAsyncSearchRequest.java | 15 + .../async_search/SubmitRequest.java | 18 + .../DeleteAutoscalingPolicyRequest.java | 17 + .../GetAutoscalingCapacityRequest.java | 5 + .../GetAutoscalingPolicyRequest.java | 17 + .../PutAutoscalingPolicyRequest.java | 17 + .../elasticsearch/cat/AliasesRequest.java | 18 + .../elasticsearch/cat/AllocationRequest.java | 18 + .../cat/ComponentTemplatesRequest.java | 18 + .../elasticsearch/cat/CountRequest.java | 18 + .../elasticsearch/cat/FielddataRequest.java | 18 + .../elasticsearch/cat/HealthRequest.java | 6 + .../elasticsearch/cat/HelpRequest.java | 6 + .../elasticsearch/cat/IndicesRequest.java | 18 + .../elasticsearch/cat/MasterRequest.java | 6 + .../cat/MlDataFrameAnalyticsRequest.java | 18 + .../elasticsearch/cat/MlDatafeedsRequest.java | 18 + .../elasticsearch/cat/MlJobsRequest.java | 18 + .../cat/MlTrainedModelsRequest.java | 18 + .../elasticsearch/cat/NodeattrsRequest.java | 6 + .../elasticsearch/cat/NodesRequest.java | 6 + .../cat/PendingTasksRequest.java | 6 + .../elasticsearch/cat/PluginsRequest.java | 6 + .../elasticsearch/cat/RecoveryRequest.java | 18 + .../cat/RepositoriesRequest.java | 6 + .../elasticsearch/cat/SegmentsRequest.java | 18 + .../elasticsearch/cat/ShardsRequest.java | 18 + .../elasticsearch/cat/SnapshotsRequest.java | 18 + .../elasticsearch/cat/TasksRequest.java | 6 + .../elasticsearch/cat/TemplatesRequest.java | 18 + .../elasticsearch/cat/ThreadPoolRequest.java | 19 + .../elasticsearch/cat/TransformsRequest.java | 18 + .../elasticsearch/ccr/CcrStatsRequest.java | 5 + .../ccr/DeleteAutoFollowPatternRequest.java | 17 + .../elasticsearch/ccr/FollowInfoRequest.java | 17 + .../elasticsearch/ccr/FollowRequest.java | 15 + .../elasticsearch/ccr/FollowStatsRequest.java | 17 + .../ccr/ForgetFollowerRequest.java | 17 + .../ccr/GetAutoFollowPatternRequest.java | 20 + .../ccr/PauseAutoFollowPatternRequest.java | 17 + .../elasticsearch/ccr/PauseFollowRequest.java | 17 + .../ccr/PutAutoFollowPatternRequest.java | 16 + .../ccr/ResumeAutoFollowPatternRequest.java | 17 + .../ccr/ResumeFollowRequest.java | 17 + .../elasticsearch/ccr/UnfollowRequest.java | 17 + .../cluster/AllocationExplainRequest.java | 6 + .../cluster/ClusterInfoRequest.java | 18 + .../cluster/ClusterStatsRequest.java | 18 + .../DeleteComponentTemplateRequest.java | 15 + .../DeleteVotingConfigExclusionsRequest.java | 6 + .../ExistsComponentTemplateRequest.java | 15 + .../cluster/GetClusterSettingsRequest.java | 6 + .../cluster/GetComponentTemplateRequest.java | 18 + .../elasticsearch/cluster/HealthRequest.java | 18 + .../cluster/PendingTasksRequest.java | 6 + .../PostVotingConfigExclusionsRequest.java | 6 + .../cluster/PutClusterSettingsRequest.java | 6 + .../cluster/PutComponentTemplateRequest.java | 15 + .../cluster/RemoteInfoRequest.java | 5 + .../elasticsearch/cluster/RerouteRequest.java | 6 + .../elasticsearch/cluster/StateRequest.java | 25 ++ .../elasticsearch/core/BulkRequest.java | 18 + .../core/ClearScrollRequest.java | 5 + .../core/ClosePointInTimeRequest.java | 5 + .../elasticsearch/core/CountRequest.java | 18 + .../elasticsearch/core/CreateRequest.java | 18 + .../core/DeleteByQueryRequest.java | 15 + .../core/DeleteByQueryRethrottleRequest.java | 15 + .../elasticsearch/core/DeleteRequest.java | 18 + .../core/DeleteScriptRequest.java | 15 + .../elasticsearch/core/ExistsRequest.java | 18 + .../core/ExistsSourceRequest.java | 18 + .../elasticsearch/core/ExplainRequest.java | 18 + .../elasticsearch/core/FieldCapsRequest.java | 18 + .../elasticsearch/core/GetRequest.java | 18 + .../core/GetScriptContextRequest.java | 5 + .../core/GetScriptLanguagesRequest.java | 5 + .../elasticsearch/core/GetScriptRequest.java | 15 + .../elasticsearch/core/GetSourceRequest.java | 18 + .../core/HealthReportRequest.java | 18 + .../elasticsearch/core/IndexRequest.java | 22 ++ .../elasticsearch/core/InfoRequest.java | 5 + .../elasticsearch/core/KnnSearchRequest.java | 15 + .../elasticsearch/core/MgetRequest.java | 18 + .../elasticsearch/core/MsearchRequest.java | 18 + .../core/MsearchTemplateRequest.java | 18 + .../core/MtermvectorsRequest.java | 18 + .../core/OpenPointInTimeRequest.java | 15 + .../elasticsearch/core/PingRequest.java | 5 + .../elasticsearch/core/PutScriptRequest.java | 22 ++ .../elasticsearch/core/RankEvalRequest.java | 18 + .../elasticsearch/core/ReindexRequest.java | 6 + .../core/ReindexRethrottleRequest.java | 15 + .../core/RenderSearchTemplateRequest.java | 19 + .../core/ScriptsPainlessExecuteRequest.java | 5 + .../elasticsearch/core/ScrollRequest.java | 5 + .../elasticsearch/core/SearchMvtRequest.java | 28 ++ .../elasticsearch/core/SearchRequest.java | 18 + .../core/SearchShardsRequest.java | 18 + .../core/SearchTemplateRequest.java | 18 + .../elasticsearch/core/TermsEnumRequest.java | 17 + .../core/TermvectorsRequest.java | 22 ++ .../core/UpdateByQueryRequest.java | 15 + .../core/UpdateByQueryRethrottleRequest.java | 15 + .../elasticsearch/core/UpdateRequest.java | 18 + .../DeleteDanglingIndexRequest.java | 15 + .../ImportDanglingIndexRequest.java | 15 + .../ListDanglingIndicesRequest.java | 5 + .../enrich/DeletePolicyRequest.java | 17 + .../enrich/EnrichStatsRequest.java | 5 + .../enrich/ExecutePolicyRequest.java | 15 + .../enrich/GetPolicyRequest.java | 20 + .../enrich/PutPolicyRequest.java | 17 + .../elasticsearch/eql/EqlDeleteRequest.java | 17 + .../elasticsearch/eql/EqlGetRequest.java | 15 + .../elasticsearch/eql/EqlSearchRequest.java | 15 + .../eql/GetEqlStatusRequest.java | 17 + .../features/GetFeaturesRequest.java | 5 + .../features/ResetFeaturesRequest.java | 5 + .../fleet/FleetSearchRequest.java | 15 + .../elasticsearch/graph/ExploreRequest.java | 15 + .../ilm/DeleteLifecycleRequest.java | 15 + .../ilm/ExplainLifecycleRequest.java | 15 + .../ilm/GetIlmStatusRequest.java | 5 + .../ilm/GetLifecycleRequest.java | 18 + .../ilm/MigrateToDataTiersRequest.java | 6 + .../elasticsearch/ilm/MoveToStepRequest.java | 17 + .../ilm/PutLifecycleRequest.java | 15 + .../ilm/RemovePolicyRequest.java | 17 + .../elasticsearch/ilm/RetryRequest.java | 17 + .../elasticsearch/ilm/StartIlmRequest.java | 6 + .../elasticsearch/ilm/StopIlmRequest.java | 6 + .../indices/AddBlockRequest.java | 18 + .../elasticsearch/indices/AnalyzeRequest.java | 20 + .../indices/ClearCacheRequest.java | 18 + .../indices/CloneIndexRequest.java | 18 + .../indices/CloseIndexRequest.java | 15 + .../indices/CreateDataStreamRequest.java | 17 + .../indices/CreateIndexRequest.java | 15 + .../indices/DataStreamsStatsRequest.java | 18 + .../indices/DeleteAliasRequest.java | 22 ++ .../indices/DeleteDataLifecycleRequest.java | 15 + .../indices/DeleteDataStreamRequest.java | 15 + .../indices/DeleteIndexRequest.java | 15 + .../indices/DeleteIndexTemplateRequest.java | 15 + .../indices/DeleteTemplateRequest.java | 15 + .../indices/DiskUsageRequest.java | 15 + .../indices/DownsampleRequest.java | 20 + .../indices/ExistsAliasRequest.java | 22 ++ .../indices/ExistsIndexTemplateRequest.java | 15 + .../elasticsearch/indices/ExistsRequest.java | 15 + .../indices/ExistsTemplateRequest.java | 15 + .../indices/ExplainDataLifecycleRequest.java | 15 + .../indices/FieldUsageStatsRequest.java | 15 + .../elasticsearch/indices/FlushRequest.java | 18 + .../indices/ForcemergeRequest.java | 18 + .../indices/GetAliasRequest.java | 28 ++ .../indices/GetDataLifecycleRequest.java | 15 + .../indices/GetDataStreamRequest.java | 18 + .../indices/GetFieldMappingRequest.java | 22 ++ .../indices/GetIndexRequest.java | 15 + .../indices/GetIndexTemplateRequest.java | 18 + .../indices/GetIndicesSettingsRequest.java | 28 ++ .../indices/GetMappingRequest.java | 18 + .../indices/GetTemplateRequest.java | 18 + .../indices/IndicesStatsRequest.java | 28 ++ .../indices/MigrateToDataStreamRequest.java | 17 + .../indices/ModifyDataStreamRequest.java | 5 + .../elasticsearch/indices/OpenRequest.java | 15 + .../indices/PromoteDataStreamRequest.java | 17 + .../indices/PutAliasRequest.java | 22 ++ .../indices/PutDataLifecycleRequest.java | 15 + .../indices/PutIndexTemplateRequest.java | 15 + .../indices/PutIndicesSettingsRequest.java | 18 + .../indices/PutMappingRequest.java | 15 + .../indices/PutTemplateRequest.java | 15 + .../indices/RecoveryRequest.java | 18 + .../elasticsearch/indices/RefreshRequest.java | 18 + .../indices/ReloadSearchAnalyzersRequest.java | 15 + .../indices/ResolveIndexRequest.java | 15 + .../indices/RolloverRequest.java | 22 ++ .../indices/SegmentsRequest.java | 18 + .../indices/ShardStoresRequest.java | 18 + .../elasticsearch/indices/ShrinkRequest.java | 18 + .../indices/SimulateIndexTemplateRequest.java | 15 + .../indices/SimulateTemplateRequest.java | 18 + .../elasticsearch/indices/SplitRequest.java | 18 + .../indices/UnfreezeRequest.java | 15 + .../indices/UpdateAliasesRequest.java | 6 + .../indices/ValidateQueryRequest.java | 18 + .../ingest/DeletePipelineRequest.java | 15 + .../ingest/GeoIpStatsRequest.java | 5 + .../ingest/GetPipelineRequest.java | 18 + .../ingest/ProcessorGrokRequest.java | 5 + .../ingest/PutPipelineRequest.java | 15 + .../elasticsearch/ingest/SimulateRequest.java | 18 + .../license/DeleteLicenseRequest.java | 5 + .../license/GetBasicStatusRequest.java | 5 + .../license/GetLicenseRequest.java | 6 + .../license/GetTrialStatusRequest.java | 5 + .../elasticsearch/license/PostRequest.java | 6 + .../license/PostStartBasicRequest.java | 6 + .../license/PostStartTrialRequest.java | 6 + .../logstash/DeletePipelineRequest.java | 17 + .../logstash/GetPipelineRequest.java | 19 + .../logstash/PutPipelineRequest.java | 17 + .../migration/DeprecationsRequest.java | 20 + .../GetFeatureUpgradeStatusRequest.java | 5 + .../migration/PostFeatureUpgradeRequest.java | 5 + ...earTrainedModelDeploymentCacheRequest.java | 17 + .../elasticsearch/ml/CloseJobRequest.java | 17 + .../ml/DeleteCalendarEventRequest.java | 20 + .../ml/DeleteCalendarJobRequest.java | 20 + .../ml/DeleteCalendarRequest.java | 17 + .../ml/DeleteDataFrameAnalyticsRequest.java | 15 + .../ml/DeleteDatafeedRequest.java | 15 + .../ml/DeleteExpiredDataRequest.java | 20 + .../elasticsearch/ml/DeleteFilterRequest.java | 17 + .../ml/DeleteForecastRequest.java | 22 ++ .../elasticsearch/ml/DeleteJobRequest.java | 15 + .../ml/DeleteModelSnapshotRequest.java | 20 + .../ml/DeleteTrainedModelAliasRequest.java | 20 + .../ml/DeleteTrainedModelRequest.java | 15 + .../ml/EstimateModelMemoryRequest.java | 5 + .../ml/EvaluateDataFrameRequest.java | 5 + .../ml/ExplainDataFrameAnalyticsRequest.java | 20 + .../elasticsearch/ml/FlushJobRequest.java | 17 + .../elasticsearch/ml/ForecastRequest.java | 17 + .../elasticsearch/ml/GetBucketsRequest.java | 22 ++ .../ml/GetCalendarEventsRequest.java | 15 + .../elasticsearch/ml/GetCalendarsRequest.java | 18 + .../ml/GetCategoriesRequest.java | 22 ++ .../ml/GetDataFrameAnalyticsRequest.java | 18 + .../ml/GetDataFrameAnalyticsStatsRequest.java | 18 + .../ml/GetDatafeedStatsRequest.java | 18 + .../elasticsearch/ml/GetDatafeedsRequest.java | 18 + .../elasticsearch/ml/GetFiltersRequest.java | 18 + .../ml/GetInfluencersRequest.java | 15 + .../elasticsearch/ml/GetJobStatsRequest.java | 18 + .../elasticsearch/ml/GetJobsRequest.java | 18 + .../ml/GetMemoryStatsRequest.java | 18 + .../GetModelSnapshotUpgradeStatsRequest.java | 18 + .../ml/GetModelSnapshotsRequest.java | 22 ++ .../ml/GetOverallBucketsRequest.java | 17 + .../elasticsearch/ml/GetRecordsRequest.java | 15 + .../ml/GetTrainedModelsRequest.java | 18 + .../ml/GetTrainedModelsStatsRequest.java | 18 + .../ml/InferTrainedModelRequest.java | 18 + .../elasticsearch/ml/MlInfoRequest.java | 5 + .../elasticsearch/ml/OpenJobRequest.java | 17 + .../ml/PostCalendarEventsRequest.java | 17 + .../elasticsearch/ml/PostDataRequest.java | 15 + .../ml/PreviewDataFrameAnalyticsRequest.java | 20 + .../ml/PreviewDatafeedRequest.java | 18 + .../ml/PutCalendarJobRequest.java | 20 + .../elasticsearch/ml/PutCalendarRequest.java | 17 + .../ml/PutDataFrameAnalyticsRequest.java | 16 + .../elasticsearch/ml/PutDatafeedRequest.java | 15 + .../elasticsearch/ml/PutFilterRequest.java | 17 + .../elasticsearch/ml/PutJobRequest.java | 17 + .../ml/PutTrainedModelAliasRequest.java | 18 + .../PutTrainedModelDefinitionPartRequest.java | 20 + .../ml/PutTrainedModelRequest.java | 15 + .../ml/PutTrainedModelVocabularyRequest.java | 17 + .../elasticsearch/ml/ResetJobRequest.java | 15 + .../ml/RevertModelSnapshotRequest.java | 20 + .../ml/SetUpgradeModeRequest.java | 6 + .../ml/StartDataFrameAnalyticsRequest.java | 15 + .../ml/StartDatafeedRequest.java | 17 + .../StartTrainedModelDeploymentRequest.java | 15 + .../ml/StopDataFrameAnalyticsRequest.java | 15 + .../elasticsearch/ml/StopDatafeedRequest.java | 17 + .../ml/StopTrainedModelDeploymentRequest.java | 15 + .../ml/UpdateDataFrameAnalyticsRequest.java | 17 + .../ml/UpdateDatafeedRequest.java | 15 + .../elasticsearch/ml/UpdateFilterRequest.java | 17 + .../elasticsearch/ml/UpdateJobRequest.java | 16 + .../ml/UpdateModelSnapshotRequest.java | 20 + .../ml/UpgradeJobSnapshotRequest.java | 18 + .../ml/ValidateDetectorRequest.java | 5 + .../elasticsearch/ml/ValidateRequest.java | 5 + .../elasticsearch/monitoring/BulkRequest.java | 18 + ...earRepositoriesMeteringArchiveRequest.java | 20 + .../GetRepositoriesMeteringInfoRequest.java | 17 + .../nodes/HotThreadsRequest.java | 18 + .../elasticsearch/nodes/NodesInfoRequest.java | 28 ++ .../nodes/NodesStatsRequest.java | 42 ++ .../nodes/NodesUsageRequest.java | 28 ++ .../nodes/ReloadSecureSettingsRequest.java | 18 + .../DeleteQueryRulesetRequest.java | 17 + .../query_ruleset/GetQueryRulesetRequest.java | 17 + .../query_ruleset/ListRequest.java | 6 + .../query_ruleset/PutRequest.java | 17 + .../rollup/DeleteJobRequest.java | 17 + .../elasticsearch/rollup/GetJobsRequest.java | 20 + .../rollup/GetRollupCapsRequest.java | 20 + .../rollup/GetRollupIndexCapsRequest.java | 17 + .../elasticsearch/rollup/PutJobRequest.java | 16 + .../rollup/RollupSearchRequest.java | 16 + .../elasticsearch/rollup/StartJobRequest.java | 17 + .../elasticsearch/rollup/StopJobRequest.java | 15 + .../DeleteBehavioralAnalyticsRequest.java | 17 + .../DeleteSearchApplicationRequest.java | 17 + .../GetBehavioralAnalyticsRequest.java | 20 + .../GetSearchApplicationRequest.java | 17 + .../search_application/ListRequest.java | 6 + .../PutBehavioralAnalyticsRequest.java | 17 + .../search_application/PutRequest.java | 15 + .../SearchApplicationSearchRequest.java | 16 + .../CacheStatsRequest.java | 18 + .../ClearCacheRequest.java | 18 + .../searchable_snapshots/MountRequest.java | 18 + .../SearchableSnapshotsStatsRequest.java | 18 + .../security/ActivateUserProfileRequest.java | 5 + .../security/AuthenticateRequest.java | 5 + .../security/ChangePasswordRequest.java | 18 + .../security/ClearApiKeyCacheRequest.java | 17 + .../ClearCachedPrivilegesRequest.java | 17 + .../security/ClearCachedRealmsRequest.java | 15 + .../security/ClearCachedRolesRequest.java | 17 + .../ClearCachedServiceTokensRequest.java | 23 ++ .../security/CreateApiKeyRequest.java | 6 + .../security/CreateServiceTokenRequest.java | 26 ++ .../security/DeletePrivilegesRequest.java | 18 + .../security/DeleteRoleMappingRequest.java | 15 + .../security/DeleteRoleRequest.java | 15 + .../security/DeleteServiceTokenRequest.java | 21 + .../security/DeleteUserRequest.java | 15 + .../security/DisableUserProfileRequest.java | 15 + .../security/DisableUserRequest.java | 15 + .../security/EnableUserProfileRequest.java | 15 + .../security/EnableUserRequest.java | 15 + .../security/EnrollKibanaRequest.java | 5 + .../security/EnrollNodeRequest.java | 5 + .../security/GetApiKeyRequest.java | 6 + .../security/GetBuiltinPrivilegesRequest.java | 5 + .../security/GetPrivilegesRequest.java | 27 ++ .../security/GetRoleMappingRequest.java | 20 + .../security/GetRoleRequest.java | 20 + .../security/GetServiceAccountsRequest.java | 27 ++ .../GetServiceCredentialsRequest.java | 20 + .../security/GetTokenRequest.java | 5 + .../security/GetUserPrivilegesRequest.java | 6 + .../security/GetUserProfileRequest.java | 15 + .../security/GetUserRequest.java | 18 + .../security/GrantApiKeyRequest.java | 5 + .../security/HasPrivilegesRequest.java | 20 + .../HasPrivilegesUserProfileRequest.java | 5 + .../security/InvalidateApiKeyRequest.java | 5 + .../security/InvalidateTokenRequest.java | 5 + .../security/PutPrivilegesRequest.java | 6 + .../security/PutRoleMappingRequest.java | 15 + .../security/PutRoleRequest.java | 15 + .../security/PutUserRequest.java | 15 + .../security/QueryApiKeysRequest.java | 6 + .../security/SamlAuthenticateRequest.java | 5 + .../security/SamlCompleteLogoutRequest.java | 5 + .../security/SamlInvalidateRequest.java | 5 + .../security/SamlLogoutRequest.java | 5 + .../SamlPrepareAuthenticationRequest.java | 5 + .../SamlServiceProviderMetadataRequest.java | 17 + .../security/SuggestUserProfilesRequest.java | 5 + .../security/UpdateApiKeyRequest.java | 16 + .../UpdateUserProfileDataRequest.java | 15 + .../shutdown/DeleteNodeRequest.java | 15 + .../shutdown/GetNodeRequest.java | 18 + .../shutdown/PutNodeRequest.java | 15 + .../slm/DeleteLifecycleRequest.java | 17 + .../slm/ExecuteLifecycleRequest.java | 17 + .../slm/ExecuteRetentionRequest.java | 5 + .../slm/GetLifecycleRequest.java | 20 + .../slm/GetSlmStatusRequest.java | 5 + .../elasticsearch/slm/GetStatsRequest.java | 5 + .../slm/PutLifecycleRequest.java | 15 + .../elasticsearch/slm/StartSlmRequest.java | 5 + .../elasticsearch/slm/StopSlmRequest.java | 5 + .../snapshot/CleanupRepositoryRequest.java | 15 + .../snapshot/CloneSnapshotRequest.java | 21 + .../snapshot/CreateRepositoryRequest.java | 15 + .../snapshot/CreateSnapshotRequest.java | 18 + .../snapshot/DeleteRepositoryRequest.java | 15 + .../snapshot/DeleteSnapshotRequest.java | 18 + .../snapshot/GetRepositoryRequest.java | 18 + .../snapshot/GetSnapshotRequest.java | 18 + .../snapshot/RestoreRequest.java | 18 + .../snapshot/SnapshotStatusRequest.java | 25 ++ .../snapshot/VerifyRepositoryRequest.java | 15 + .../elasticsearch/sql/ClearCursorRequest.java | 5 + .../elasticsearch/sql/DeleteAsyncRequest.java | 17 + .../elasticsearch/sql/GetAsyncRequest.java | 15 + .../sql/GetAsyncStatusRequest.java | 17 + .../elasticsearch/sql/QueryRequest.java | 6 + .../elasticsearch/sql/TranslateRequest.java | 5 + .../ssl/CertificatesRequest.java | 5 + .../synonyms/DeleteSynonymRequest.java | 17 + .../synonyms/DeleteSynonymRuleRequest.java | 20 + .../synonyms/GetSynonymRequest.java | 15 + .../synonyms/GetSynonymRuleRequest.java | 20 + .../synonyms/GetSynonymsSetsRequest.java | 6 + .../synonyms/PutSynonymRequest.java | 17 + .../synonyms/PutSynonymRuleRequest.java | 20 + .../elasticsearch/tasks/CancelRequest.java | 18 + .../elasticsearch/tasks/GetTasksRequest.java | 15 + .../elasticsearch/tasks/ListRequest.java | 6 + .../transform/DeleteTransformRequest.java | 15 + .../transform/GetTransformRequest.java | 19 + .../transform/GetTransformStatsRequest.java | 16 + .../transform/PreviewTransformRequest.java | 18 + .../transform/PutTransformRequest.java | 15 + .../transform/ResetTransformRequest.java | 15 + .../ScheduleNowTransformRequest.java | 15 + .../transform/StartTransformRequest.java | 15 + .../transform/StopTransformRequest.java | 15 + .../transform/UpdateTransformRequest.java | 15 + .../transform/UpgradeTransformsRequest.java | 6 + .../watcher/AckWatchRequest.java | 24 ++ .../watcher/ActivateWatchRequest.java | 17 + .../watcher/DeactivateWatchRequest.java | 17 + .../watcher/DeleteWatchRequest.java | 17 + .../watcher/ExecuteWatchRequest.java | 18 + .../watcher/GetWatchRequest.java | 17 + .../watcher/PutWatchRequest.java | 15 + .../watcher/QueryWatchesRequest.java | 5 + .../watcher/StartWatcherRequest.java | 5 + .../watcher/StopWatcherRequest.java | 5 + .../watcher/WatcherStatsRequest.java | 19 + .../elasticsearch/xpack/XpackInfoRequest.java | 6 + .../xpack/XpackUsageRequest.java | 6 + .../transport/ElasticsearchTransportBase.java | 82 +++- .../elastic/clients/transport/Endpoint.java | 8 + .../transport/endpoints/BinaryEndpoint.java | 8 +- .../transport/endpoints/BooleanEndpoint.java | 4 +- .../endpoints/DelegatingJsonEndpoint.java | 5 + .../transport/endpoints/EndpointBase.java | 9 + .../transport/endpoints/SimpleEndpoint.java | 6 +- .../endpoints/SimpleJsonEndpoint.java | 6 +- .../instrumentation/Instrumentation.java | 79 ++++ .../instrumentation/NoopInstrumentation.java | 70 ++++ .../OpenTelemetryForElasticsearch.java | 367 ++++++++++++++++++ .../rest_client/RestClientTransport.java | 9 +- .../experiments/api/FooOptRequest.java | 1 + .../experiments/api/FooRequest.java | 1 + .../experiments/generics/GenericClass.java | 5 +- .../OpenTelemetryForElasticsearchTest.java | 275 +++++++++++++ 448 files changed, 7351 insertions(+), 46 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/transport/instrumentation/Instrumentation.java create mode 100644 java-client/src/main/java/co/elastic/clients/transport/instrumentation/NoopInstrumentation.java create mode 100644 java-client/src/main/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearch.java create mode 100644 java-client/src/test/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearchTest.java diff --git a/example-transports/src/main/java/co/elastic/clients/transport/netty/NettyTransportHttpClient.java b/example-transports/src/main/java/co/elastic/clients/transport/netty/NettyTransportHttpClient.java index adad5d9be..fcd4b9747 100644 --- a/example-transports/src/main/java/co/elastic/clients/transport/netty/NettyTransportHttpClient.java +++ b/example-transports/src/main/java/co/elastic/clients/transport/netty/NettyTransportHttpClient.java @@ -56,9 +56,9 @@ import javax.annotation.Nullable; import javax.net.ssl.SSLException; import java.io.IOException; -import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -231,12 +231,8 @@ private String queryString(Request request, TransportOptions options) { .entrySet() .stream() .map(e -> { - try { - return URLEncoder.encode(e.getKey(), "UTF-8") + "=" + - URLEncoder.encode(e.getValue(), "UTF-8"); - } catch(UnsupportedEncodingException ex) { - throw new RuntimeException(ex); - } + return URLEncoder.encode(e.getKey(), StandardCharsets.UTF_8) + "=" + + URLEncoder.encode(e.getValue(), StandardCharsets.UTF_8); }) .collect(Collectors.joining("&")); } diff --git a/java-client/build.gradle.kts b/java-client/build.gradle.kts index 8a2f9ae91..ebe28ac34 100644 --- a/java-client/build.gradle.kts +++ b/java-client/build.gradle.kts @@ -18,8 +18,8 @@ */ import com.github.jk1.license.ProjectData -import com.github.jk1.license.render.ReportRenderer import com.github.jk1.license.render.LicenseDataCollector +import com.github.jk1.license.render.ReportRenderer import java.io.FileWriter plugins { @@ -53,8 +53,8 @@ tasks.getByName("processResources") { if (name != "apis.json") { // Only process main source-set resources (test files are large) expand( - "version" to version, - "git_revision" to (if (rootProject.extra.has("gitHashFull")) rootProject.extra["gitHashFull"] else "unknown") + "version" to version, + "git_revision" to (if (rootProject.extra.has("gitHashFull")) rootProject.extra["gitHashFull"] else "unknown") ) } } @@ -69,7 +69,7 @@ tasks.withType { if (rootProject.extra.has("gitHashFull")) { val jar = this as Jar jar.manifest.attributes["X-Git-Revision"] = rootProject.extra["gitHashFull"] - jar.manifest.attributes["X-Git-Commit-Time"] = rootProject .extra["gitCommitTime"] + jar.manifest.attributes["X-Git-Commit-Time"] = rootProject.extra["gitCommitTime"] } else { throw GradleException("No git information available") } @@ -154,7 +154,7 @@ publishing { // are the same as the one used in the dependency section below. val xPathFactory = javax.xml.xpath.XPathFactory.newInstance() val depSelector = xPathFactory.newXPath() - .compile("/project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']") + .compile("/project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']") val versionSelector = xPathFactory.newXPath().compile("version") var foundVersion = false; @@ -183,6 +183,7 @@ dependencies { // the Java API client coexists with a 7.x HLRC work fine val elasticsearchVersion = "7.17.7" val jacksonVersion = "2.13.3" + val openTelemetryVersion = "1.29.0" // Apache 2.0 // https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html @@ -201,6 +202,13 @@ dependencies { // https://github.com/eclipse-ee4j/parsson api("org.eclipse.parsson:parsson:1.0.0") + // OpenTelemetry API for native instrumentation of the client. + // Apache 2.0 + // https://github.com/open-telemetry/opentelemetry-java + implementation("io.opentelemetry", "opentelemetry-api", openTelemetryVersion) + // Use it once it's stable (see Instrumentation.java). Limited to tests for now. + testImplementation("io.opentelemetry", "opentelemetry-semconv", "$openTelemetryVersion-alpha") + // EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 // https://github.com/eclipse-ee4j/jsonb-api compileOnly("jakarta.json.bind", "jakarta.json.bind-api", "2.0.0") @@ -236,6 +244,9 @@ dependencies { // https://www.testcontainers.org/ testImplementation("org.testcontainers", "testcontainers", "1.17.3") testImplementation("org.testcontainers", "elasticsearch", "1.17.3") + + + testImplementation("io.opentelemetry", "opentelemetry-sdk", openTelemetryVersion) } @@ -247,17 +258,18 @@ licenseReport { class SpdxReporter(val dest: File) : ReportRenderer { // License names to their SPDX identifier val spdxIds = mapOf( - "Apache License, Version 2.0" to "Apache-2.0", - "The Apache Software License, Version 2.0" to "Apache-2.0", - "BSD Zero Clause License" to "0BSD", - "Eclipse Public License 2.0" to "EPL-2.0", - "Eclipse Public License v. 2.0" to "EPL-2.0", - "Eclipse Public License - v 2.0" to "EPL-2.0", - "GNU General Public License, version 2 with the GNU Classpath Exception" to "GPL-2.0 WITH Classpath-exception-2.0", - "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0" to "CDDL-1.0" + "The Apache License, Version 2.0" to "Apache-2.0", + "Apache License, Version 2.0" to "Apache-2.0", + "The Apache Software License, Version 2.0" to "Apache-2.0", + "BSD Zero Clause License" to "0BSD", + "Eclipse Public License 2.0" to "EPL-2.0", + "Eclipse Public License v. 2.0" to "EPL-2.0", + "Eclipse Public License - v 2.0" to "EPL-2.0", + "GNU General Public License, version 2 with the GNU Classpath Exception" to "GPL-2.0 WITH Classpath-exception-2.0", + "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0" to "CDDL-1.0" ) - private fun quote(str: String) : String { + private fun quote(str: String): String { return if (str.contains(',') || str.contains("\"")) { "\"" + str.replace("\"", "\"\"") + "\"" } else { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java index 843aa740a..e1bcbcf53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -149,6 +151,21 @@ public AsyncSearchStatusRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java index 39a040cdc..af4cd974f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -150,6 +152,21 @@ public DeleteAsyncSearchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java index 0b7746fd6..646a47c2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java @@ -248,6 +248,21 @@ public GetAsyncSearchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java index 6f5422e97..68f544715 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java @@ -2436,6 +2436,24 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java index 810a27395..d4874e4c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -149,6 +151,21 @@ public DeleteAutoscalingPolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java index 3d6db10dc..09825f147 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java @@ -77,6 +77,11 @@ public GetAutoscalingCapacityRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java index 88fb7bed3..0a93b6740 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public GetAutoscalingPolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java index 14a02d79b..53297c74d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonParser; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -203,6 +205,21 @@ protected static JsonpDeserializer createPutAutosca }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index f091381b8..65b2e10f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -223,6 +223,24 @@ public AliasesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index 12a032037..808c96d33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -205,6 +205,24 @@ public AllocationRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index 11bafaaf2..56f1f6de9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -162,6 +162,24 @@ public ComponentTemplatesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index f11816dab..ab705c297 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -179,6 +179,24 @@ public CountRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java index 377d956c1..3698de1da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java @@ -206,6 +206,24 @@ public FielddataRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _fields = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.fields())) + propsSet |= _fields; + + if (propsSet == 0) { + } + if (propsSet == (_fields)) { + params.put("fields", request.fields.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java index 9b880025b..5696e8fc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -173,6 +174,11 @@ public HealthRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java index f4601d261..8a29eac44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -74,6 +75,11 @@ public HelpRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java index c7ad9575a..43bc9771d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java @@ -369,6 +369,24 @@ public IndicesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java index 83171f1bd..b3646eb18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -77,6 +78,11 @@ public MasterRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java index 3d4849d84..e1906df5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java @@ -344,6 +344,24 @@ public MlDataFrameAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java index 028b40e0d..28c9c5b15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java @@ -327,6 +327,24 @@ public MlDatafeedsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + if (request.datafeedId() != null) + propsSet |= _datafeedId; + + if (propsSet == 0) { + } + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java index 581c402bf..e012626ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java @@ -355,6 +355,24 @@ public MlJobsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + if (request.jobId() != null) + propsSet |= _jobId; + + if (propsSet == 0) { + } + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java index c253df989..627354866 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java @@ -365,6 +365,24 @@ public MlTrainedModelsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + if (request.modelId() != null) + propsSet |= _modelId; + + if (propsSet == 0) { + } + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java index 85d301192..1fc9c8506 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -77,6 +78,11 @@ public NodeattrsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java index bf74a3b65..8f9cdbeab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -194,6 +195,11 @@ public NodesRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java index 8e44439ba..c98cd94e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -77,6 +78,11 @@ public PendingTasksRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java index 27515f069..9a269c258 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -77,6 +78,11 @@ public PluginsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java index 596dc11ea..494566743 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java @@ -269,6 +269,24 @@ public RecoveryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java index 6b7b87671..dc6074e6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -77,6 +78,11 @@ public RepositoriesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java index 2a75522ab..69757c181 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java @@ -208,6 +208,24 @@ public SegmentsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java index 597406086..72e73aabd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java @@ -207,6 +207,24 @@ public ShardsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java index f1f152c5f..9e97811ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java @@ -211,6 +211,24 @@ public SnapshotsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.repository())) + propsSet |= _repository; + + if (propsSet == 0) { + } + if (propsSet == (_repository)) { + params.put("repository", request.repository.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java index 98404b933..d171332c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java @@ -35,6 +35,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -246,6 +247,11 @@ public TasksRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java index f3d71ab49..5fd596da4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java @@ -161,6 +161,24 @@ public TemplatesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java index ac1305566..a74cca0d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java @@ -206,6 +206,25 @@ public ThreadPoolRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _threadPoolPatterns = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.threadPoolPatterns())) + propsSet |= _threadPoolPatterns; + + if (propsSet == 0) { + } + if (propsSet == (_threadPoolPatterns)) { + params.put("threadPoolPatterns", + request.threadPoolPatterns.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java index c734a711a..aa26799fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java @@ -368,6 +368,24 @@ public TransformsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + if (request.transformId() != null) + propsSet |= _transformId; + + if (propsSet == 0) { + } + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java index 88d7f7e2f..26999c5a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java @@ -74,6 +74,11 @@ public CcrStatsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java index 158fdba5e..24d91d91a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeleteAutoFollowPatternRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java index ff667eb0a..24358c82f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -166,6 +168,21 @@ public FollowInfoRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java index 903cfe95e..7c641026b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java @@ -590,6 +590,21 @@ protected static void setupFollowRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java index bea8a1b69..233def2c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -166,6 +168,21 @@ public FollowStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java index 545bd5557..89300b1b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java @@ -38,6 +38,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -293,6 +295,21 @@ protected static void setupForgetFollowerRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java index 82ecec4aa..80e71113c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java @@ -35,6 +35,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -159,6 +161,24 @@ public GetAutoFollowPatternRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java index 083a36e0d..cd56942f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -150,6 +152,21 @@ public PauseAutoFollowPatternRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java index d7aaa1401..0313f07ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -149,6 +151,21 @@ public PauseFollowRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java index c9ccf2232..db94d4bbd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java @@ -41,6 +41,7 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -802,6 +803,21 @@ protected static void setupPutAutoFollowPatternRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java index 6445669c1..5bd47b266 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -151,6 +153,21 @@ public ResumeAutoFollowPatternRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java index 8ba93d5d8..13ccecf9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java @@ -40,6 +40,8 @@ import java.lang.Long; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -485,6 +487,21 @@ protected static void setupResumeFollowRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java index 63567d9a3..f97957fd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -147,6 +149,21 @@ public UnfollowRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java index 9d0ca948c..4fdb340a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java @@ -38,6 +38,7 @@ import java.lang.Boolean; import java.lang.Integer; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -329,6 +330,11 @@ protected static void setupAllocationExplainRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java index 8fb7fd909..3bc667697 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java @@ -36,7 +36,9 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -165,6 +167,22 @@ public ClusterInfoRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _target = 1 << 0; + + int propsSet = 0; + + propsSet |= _target; + + if (propsSet == (_target)) { + params.put("target", + request.target.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java index fc78f7cd1..c6336c710 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java @@ -253,6 +253,24 @@ public ClusterStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index 3e0663ac9..bd5d10e54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -248,6 +248,21 @@ public DeleteComponentTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java index 90aff5f7e..ff5d32272 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java @@ -36,6 +36,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -149,6 +150,11 @@ public DeleteVotingConfigExclusionsRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index 76fcac2f4..a22ccf9e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -239,6 +239,21 @@ public ExistsComponentTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java index 8dbdee211..77f24d69e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -242,6 +243,11 @@ public GetClusterSettingsRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index 9c2f62a94..7c7179e4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -281,6 +281,24 @@ public GetComponentTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java index b8b61e2d3..06c6d8d30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java @@ -561,6 +561,24 @@ public HealthRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index 3d6ef81f9..4add9d310 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -184,6 +185,11 @@ public PendingTasksRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java index 147f52ab1..f72882910 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java @@ -38,6 +38,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -245,6 +246,11 @@ public PostVotingConfigExclusionsRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java index bee61d1a3..6d0f7a331 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java @@ -40,6 +40,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -331,6 +332,11 @@ protected static void setupPutClusterSettingsRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 613b1a322..126549052 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -456,6 +456,21 @@ protected static void setupPutComponentTemplateRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java index c759cc97d..3e32134a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java @@ -76,6 +76,11 @@ public RemoteInfoRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java index 56c01e2f8..ddfe93079 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java @@ -40,6 +40,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -406,6 +407,11 @@ protected static void setupRerouteRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java index 55c0caa92..c0b895ba7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java @@ -489,6 +489,31 @@ public StateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_metric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_metric | _index)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java index 46537b152..fe1e6a4bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java @@ -545,6 +545,24 @@ public BulkRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java index 81573e194..423d02c83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java @@ -183,6 +183,11 @@ protected static void setupClearScrollRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java index ba2a69a88..943f8e18d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java @@ -162,6 +162,11 @@ protected static void setupClosePointInTimeRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java index cfee22c74..2c6c92d9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java @@ -651,6 +651,24 @@ protected static void setupCountRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java index 1cc304d4c..a985597e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java @@ -486,6 +486,24 @@ public static JsonpDeserializer> createCrea }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java index e9f0580cf..c6b2b897a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java @@ -1189,6 +1189,21 @@ protected static void setupDeleteByQueryRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java index eba1ca70b..6fce6a54f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java @@ -180,6 +180,21 @@ public DeleteByQueryRethrottleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java index b0c630046..8cd658a77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java @@ -434,6 +434,24 @@ public DeleteRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java index f32969d90..da3d6c4f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java @@ -219,6 +219,21 @@ public DeleteScriptRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java index 6f7b73e5a..b86dd3793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java @@ -500,6 +500,24 @@ public ExistsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java index dd910da5d..fef36572e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java @@ -463,6 +463,24 @@ public ExistsSourceRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java index 36892805f..a4e54b0c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java @@ -620,6 +620,24 @@ protected static void setupExplainRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java index 475d1b063..024c68591 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java @@ -589,6 +589,24 @@ protected static void setupFieldCapsRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java index bfeec1ef3..8b40ddae4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java @@ -501,6 +501,24 @@ public GetRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java index 2ffa65477..b5042f5e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java @@ -75,6 +75,11 @@ public GetScriptContextRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java index 34a2bae3e..3d4b9c43b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java @@ -75,6 +75,11 @@ public GetScriptLanguagesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java index ab06f493a..65d057ae2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java @@ -183,6 +183,21 @@ public GetScriptRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java index eea22029f..12cfa2aef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java @@ -497,6 +497,24 @@ public GetSourceRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java index 351a94a94..bc557f369 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java @@ -263,6 +263,24 @@ public HealthReportRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _feature = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.feature())) + propsSet |= _feature; + + if (propsSet == 0) { + } + if (propsSet == (_feature)) { + params.put("feature", request.feature.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java index 660a4aacc..4ea3ab8f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java @@ -625,6 +625,28 @@ public static JsonpDeserializer> createIndex }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java index 56ae434fd..82863a2fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java @@ -73,6 +73,11 @@ public InfoRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java index a1889d691..7f959eca4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java @@ -560,6 +560,21 @@ protected static void setupKnnSearchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java index be37ff98c..23298d8c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java @@ -597,6 +597,24 @@ protected static void setupMgetRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java index 401902958..0102bfe59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java @@ -545,6 +545,24 @@ public MsearchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java index dab42b2aa..722f286c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java @@ -323,6 +323,24 @@ public MsearchTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java index f52598fa3..6b9a77957 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java @@ -628,6 +628,24 @@ protected static void setupMtermvectorsRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java index dbdcc963e..0a60e2767 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java @@ -336,6 +336,21 @@ public OpenPointInTimeRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java index 2764e4570..7e72b9812 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java @@ -76,6 +76,11 @@ public PingRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java index 388a5fa94..69998a95d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java @@ -318,6 +318,28 @@ protected static void setupPutScriptRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _context = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + if (request.context() != null) + propsSet |= _context; + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + if (propsSet == (_id | _context)) { + params.put("id", request.id); + params.put("context", request.context); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java index e2abd0242..660c1a146 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java @@ -451,6 +451,24 @@ protected static void setupRankEvalRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java index 572b95850..b7e3d017a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java @@ -46,6 +46,7 @@ import java.lang.Boolean; import java.lang.Float; import java.lang.Long; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -599,6 +600,11 @@ protected static void setupReindexRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java index 7e2e0fa68..a957fe1d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java @@ -178,6 +178,21 @@ public ReindexRethrottleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java index 10965da64..b7c559c64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java @@ -39,6 +39,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -292,6 +293,24 @@ protected static void setupRenderSearchTemplateRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java index 57bf4f5d2..ddd8f6834 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java @@ -242,6 +242,11 @@ protected static void setupScriptsPainlessExecuteRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java index 86cd9274e..0854bb4fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java @@ -204,6 +204,11 @@ protected static void setupScrollRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java index 9f0407c0e..c28b4de83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java @@ -49,6 +49,7 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -992,6 +993,33 @@ protected static void setupSearchMvtRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _field = 1 << 0; + final int _x = 1 << 1; + final int _index = 1 << 2; + final int _y = 1 << 3; + final int _zoom = 1 << 4; + + int propsSet = 0; + + propsSet |= _field; + propsSet |= _x; + propsSet |= _index; + propsSet |= _y; + propsSet |= _zoom; + + if (propsSet == (_index | _field | _zoom | _x | _y)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("field", request.field); + params.put("zoom", String.valueOf(request.zoom)); + params.put("x", String.valueOf(request.x)); + params.put("y", String.valueOf(request.y)); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index b7469f368..2c26e6f3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -2571,6 +2571,24 @@ protected static void setupSearchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java index 836001595..bcf0eead0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java @@ -362,6 +362,24 @@ public SearchShardsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java index 9cdc33470..4c8f997f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java @@ -664,6 +664,24 @@ protected static void setupSearchTemplateRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java index 4cd1f8854..665625707 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java @@ -42,6 +42,8 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -436,6 +438,21 @@ protected static void setupTermsEnumRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 291fab0b0..2e9cc837e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java @@ -681,6 +681,28 @@ protected static void setupTermvectorsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index 713383b72..a9ee3638f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java @@ -1259,6 +1259,21 @@ protected static void setupUpdateByQueryRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java index c2f4ef043..dce0a8722 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java @@ -180,6 +180,21 @@ public UpdateByQueryRethrottleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java index 7ea0be419..a619ce5f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java @@ -808,6 +808,24 @@ protected static void setupUpdateRequestDeserializ }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java index 5091548b7..79878be5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java @@ -245,6 +245,21 @@ public DeleteDanglingIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _indexUuid = 1 << 0; + + int propsSet = 0; + + propsSet |= _indexUuid; + + if (propsSet == (_indexUuid)) { + params.put("indexUuid", request.indexUuid); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java index 1a23cad0a..d77f63268 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java @@ -245,6 +245,21 @@ public ImportDanglingIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _indexUuid = 1 << 0; + + int propsSet = 0; + + propsSet |= _indexUuid; + + if (propsSet == (_indexUuid)) { + params.put("indexUuid", request.indexUuid); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java index 5c7ced395..c7562228f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java @@ -75,6 +75,11 @@ public ListDanglingIndicesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index 2eb4ebc76..4acb57e2d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public DeletePolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index be4cfed93..60bb42209 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -75,6 +75,11 @@ public EnrichStatsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index a7b970ece..541ac4f7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -178,6 +178,21 @@ public ExecutePolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 3ea06000c..67c7de99f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -173,6 +175,24 @@ public GetPolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index bb0b9c240..d66b72551 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -38,6 +38,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -307,6 +309,21 @@ protected static void setupPutPolicyRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java index 5cefe087d..058eb564b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -153,6 +155,21 @@ public EqlDeleteRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java index de08ed595..af43a6a43 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -224,6 +224,21 @@ public EqlGetRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java index 6d47dca89..dd44482c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java @@ -821,6 +821,21 @@ protected static void setupEqlSearchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java index da61bcb45..52ef1acff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public GetEqlStatusRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java index 0c94bc08a..54bf8a2ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java @@ -75,6 +75,11 @@ public GetFeaturesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java index 595fd3a8a..36fa758f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java @@ -74,6 +74,11 @@ public ResetFeaturesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java index 8d623d8e6..cc9b133f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java @@ -2186,6 +2186,21 @@ protected static void setupFleetSearchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index 7daaed745..cfb0047d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -459,6 +459,21 @@ protected static void setupExploreRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java index 879c2c2c6..b3b6c1525 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java @@ -228,6 +228,21 @@ public DeleteLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java index 3864d0745..9c4e5cde9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java @@ -292,6 +292,21 @@ public ExplainLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java index 1be621404..55e5dd66f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java @@ -74,6 +74,11 @@ public GetIlmStatusRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java index 44ac11d71..31f477077 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java @@ -235,6 +235,24 @@ public GetLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java index 9ebed6718..6f1057961 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java @@ -37,6 +37,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -233,6 +234,11 @@ protected static void setupMigrateToDataTiersRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java index 366d4ef4e..0d02debb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -248,6 +250,21 @@ protected static void setupMoveToStepRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java index 5ab2a2bdd..75a0a8d25 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java @@ -292,6 +292,21 @@ protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java index 4366296fc..efa1d2c85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public RemovePolicyRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java index 4aeef4981..7b1335c1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public RetryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java index 645be3752..eb8ce80a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -166,6 +167,11 @@ public StartIlmRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java index e733ade0a..d23df9c59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -167,6 +168,11 @@ public StopIlmRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java index 6a9026a62..1a06ec1fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java @@ -352,6 +352,24 @@ public AddBlockRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _block = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _block; + + if (propsSet == (_index | _block)) { + params.put("index", request.index); + params.put("block", request.block.jsonValue()); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index 37f94c937..aadb9a1f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -42,7 +42,9 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -607,6 +609,24 @@ protected static void setupAnalyzeRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java index a576085c2..6cd9eb820 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java @@ -421,6 +421,24 @@ public ClearCacheRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java index e1807ec49..9ea351431 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java @@ -440,6 +440,24 @@ protected static void setupCloneIndexRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _target = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _target; + + if (propsSet == (_index | _target)) { + params.put("index", request.index); + params.put("target", request.target); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java index 835de37f8..8f4df6b98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java @@ -406,6 +406,21 @@ public CloseIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java index 42f1c7832..05c23df8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -161,6 +163,21 @@ public CreateDataStreamRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index ed3fcc3da..e6089255a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -459,6 +459,21 @@ protected static void setupCreateIndexRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index ea78cef1b..678a91d9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -207,6 +207,24 @@ public DataStreamsStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index 42a119e41..4c9857640 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -301,6 +301,28 @@ public DeleteAliasRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + propsSet |= _name; + propsSet |= _index; + + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java index 18dc37d66..8eb914779 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java @@ -283,6 +283,21 @@ public DeleteDataLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index 739411f14..1e5f101b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -209,6 +209,21 @@ public DeleteDataStreamRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index ba6b244d9..6247195db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -370,6 +370,21 @@ public DeleteIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java index 7638cf34e..6c3516d64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java @@ -248,6 +248,21 @@ public DeleteIndexTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java index adbf3cf54..20971b748 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java @@ -227,6 +227,21 @@ public DeleteTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java index 7f9a7829a..c1ba4255c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java @@ -343,6 +343,21 @@ public DiskUsageRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java index e24c1a262..3732c2628 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonParser; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -231,6 +233,24 @@ protected static JsonpDeserializer createDownsampleRequestDes }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _targetIndex = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + propsSet |= _targetIndex; + propsSet |= _index; + + if (propsSet == (_index | _targetIndex)) { + params.put("index", request.index); + params.put("targetIndex", request.targetIndex); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java index 1bd822176..f7da54657 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java @@ -371,6 +371,28 @@ public ExistsAliasRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + propsSet |= _name; + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java index d6bac38dc..c8600fd8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java @@ -191,6 +191,21 @@ public ExistsIndexTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index eab94021f..e49e82a04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -365,6 +365,21 @@ public ExistsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java index 48a9dc5e4..380c4ebde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java @@ -258,6 +258,21 @@ public ExistsTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java index 15c304296..20a59a102 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -232,6 +232,21 @@ public ExplainDataLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java index 390d21901..a559e3c7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java @@ -447,6 +447,21 @@ public FieldUsageStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java index 1e2a30c2e..ff8a34d3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java @@ -351,6 +351,24 @@ public FlushRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java index 0f84f5dc9..598569ae7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java @@ -387,6 +387,24 @@ public ForcemergeRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index 55b6b032a..d8b7b1f82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -384,6 +384,34 @@ public GetAliasRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java index 615f70e07..eb009bc39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -247,6 +247,21 @@ public GetDataLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 9e47ed0fc..1ba10dce6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -246,6 +246,24 @@ public GetDataStreamRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java index 753b64924..294260e42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java @@ -402,6 +402,28 @@ public GetFieldMappingRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _fields = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + propsSet |= _fields; + + if (propsSet == (_fields)) { + params.put("fields", request.fields.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _fields)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("fields", request.fields.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java index 3d5e8fb4d..a664fdc1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java @@ -435,6 +435,21 @@ public GetIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index e2ccabe8e..68a2e269f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -281,6 +281,24 @@ public GetIndexTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index 8372536ed..c07d5e8a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -471,6 +471,34 @@ public GetIndicesSettingsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index f2c3df7f0..e25b1d52a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -363,6 +363,24 @@ public GetMappingRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java index 1af53dc35..85ef8c5c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java @@ -275,6 +275,24 @@ public GetTemplateRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java index fcfc2dd99..dcab3140b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java @@ -563,6 +563,34 @@ public IndicesStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_metric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_index | _metric)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index 5b4d06195..a7c7d13f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -155,6 +157,21 @@ public MigrateToDataStreamRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index 46bc7e160..f3fca2a41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java @@ -201,6 +201,11 @@ protected static void setupModifyDataStreamRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java index 2d48b2858..019289be0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java @@ -420,6 +420,21 @@ public OpenRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java index 7b2f955b1..1904aad99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public PromoteDataStreamRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java index 280b2100d..da1bae0e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java @@ -511,6 +511,28 @@ protected static void setupPutAliasRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _name = 1 << 0; + final int _index = 1 << 1; + + int propsSet = 0; + + propsSet |= _name; + propsSet |= _index; + + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name); + } + if (propsSet == (_index | _name)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java index 178a2dc94..4e38a30ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java @@ -379,6 +379,21 @@ protected static void setupPutDataLifecycleRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index 350c62569..03d25f990 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -545,6 +545,21 @@ protected static void setupPutIndexTemplateRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java index 89c49a165..adf2e5d0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java @@ -478,6 +478,24 @@ protected static JsonpDeserializer createPutIndicesSe }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index a8c0648f1..de3f08a08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -975,6 +975,21 @@ protected static void setupPutMappingRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index 1a3cef3be..281ea7a6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -600,6 +600,21 @@ protected static void setupPutTemplateRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java index a14d5a7d4..fe266416b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java @@ -232,6 +232,24 @@ public RecoveryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java index 79c99a943..a0936aa7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -293,6 +293,24 @@ public RefreshRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java index 7d77c929c..f0a7d6509 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java @@ -267,6 +267,21 @@ public ReloadSearchAnalyzersRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index 72243b720..02618e6b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -228,6 +228,21 @@ public ResolveIndexRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index de3403eb7..ea5837c32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -588,6 +588,28 @@ protected static void setupRolloverRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _newIndex = 1 << 0; + final int _alias = 1 << 1; + + int propsSet = 0; + + if (request.newIndex() != null) + propsSet |= _newIndex; + propsSet |= _alias; + + if (propsSet == (_alias)) { + params.put("alias", request.alias); + } + if (propsSet == (_alias | _newIndex)) { + params.put("alias", request.alias); + params.put("newIndex", request.newIndex); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java index 2d120ea51..9d2d3e4da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java @@ -319,6 +319,24 @@ public SegmentsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java index b8ea5c6e4..f3ef353dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java @@ -316,6 +316,24 @@ public ShardStoresRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java index 6be8559fe..5b8aef73e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java @@ -438,6 +438,24 @@ protected static void setupShrinkRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _target = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _target; + + if (propsSet == (_index | _target)) { + params.put("index", request.index); + params.put("target", request.target); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index 5182c71fd..ef4aedff7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -663,6 +663,21 @@ protected static void setupSimulateIndexTemplateRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java index 29975804f..4bafcbf29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java @@ -319,6 +319,24 @@ protected static JsonpDeserializer createSimulateTempla }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java index 69f664710..a7c3fcf18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java @@ -438,6 +438,24 @@ protected static void setupSplitRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _target = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _target; + + if (propsSet == (_index | _target)) { + params.put("index", request.index); + params.put("target", request.target); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java index 2d8985c9f..f577645f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java @@ -374,6 +374,21 @@ public UnfreezeRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java index 481d13657..3702a9217 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java @@ -38,6 +38,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -279,6 +280,11 @@ protected static void setupUpdateAliasesRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java index 8a6c38380..ab53caf1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java @@ -627,6 +627,24 @@ protected static void setupValidateQueryRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java index 5de14ec61..ce3c5baa2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java @@ -220,6 +220,21 @@ public DeletePipelineRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java index 0a57969a4..c6868e514 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java @@ -74,6 +74,11 @@ public GeoIpStatsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java index 3032a1e1b..a2c89ad61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java @@ -221,6 +221,24 @@ public GetPipelineRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java index 1974a400e..cb6479acc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java @@ -74,6 +74,11 @@ public ProcessorGrokRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java index af6ab38bb..8e27524a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java @@ -555,6 +555,21 @@ protected static void setupPutPipelineRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java index 2df942355..abe26484d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java @@ -305,6 +305,24 @@ protected static void setupSimulateRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java index 4450214c5..8b7e16e61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java @@ -74,6 +74,11 @@ public DeleteLicenseRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java index 72699c60a..0ff846e85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java @@ -75,6 +75,11 @@ public GetBasicStatusRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java index 9e028a449..c9435eacc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -183,6 +184,11 @@ public GetLicenseRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java index 1f6a87440..7cc79b78d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java @@ -75,6 +75,11 @@ public GetTrialStatusRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java index d34327d64..4d443b1c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java @@ -37,6 +37,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -261,6 +262,11 @@ protected static void setupPostRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java index f41723780..216f2efd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -143,6 +144,11 @@ public PostStartBasicRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java index 0bac2ed65..fdeb8ccb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java @@ -35,6 +35,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -161,6 +162,11 @@ public PostStartTrialRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java index 3fc0e7a71..24708dc48 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java @@ -38,6 +38,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -149,6 +151,21 @@ public DeletePipelineRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index 8869ac543..bb5cfcf38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -168,6 +170,23 @@ public GetPipelineRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java index b0b3d340a..ed6d1939c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java @@ -41,6 +41,8 @@ import jakarta.json.stream.JsonParser; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -203,6 +205,21 @@ protected static JsonpDeserializer createPutPipelineRequestD }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java index ada4a88c6..542d21304 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java @@ -35,6 +35,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -159,6 +161,24 @@ public DeprecationsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java index ef2343ee0..35cd11e08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java @@ -75,6 +75,11 @@ public GetFeatureUpgradeStatusRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java index 2ca799f29..c08097b72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java @@ -75,6 +75,11 @@ public PostFeatureUpgradeRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java index 3bece35fd..ed58711d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -155,6 +157,21 @@ public ClearTrainedModelDeploymentCacheRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java index be7d40bb9..0f61f2f21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java @@ -40,6 +40,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -307,6 +309,21 @@ protected static void setupCloseJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java index 7745c5af5..5a998f2bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -176,6 +178,24 @@ public DeleteCalendarEventRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _eventId = 1 << 0; + final int _calendarId = 1 << 1; + + int propsSet = 0; + + propsSet |= _eventId; + propsSet |= _calendarId; + + if (propsSet == (_calendarId | _eventId)) { + params.put("calendarId", request.calendarId); + params.put("eventId", request.eventId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java index aebf4dc7b..62fffa7a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -194,6 +196,24 @@ public DeleteCalendarJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _calendarId; + propsSet |= _jobId; + + if (propsSet == (_calendarId | _jobId)) { + params.put("calendarId", request.calendarId); + params.put("jobId", request.jobId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java index e9094e81f..ed34ebe87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public DeleteCalendarRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + + int propsSet = 0; + + propsSet |= _calendarId; + + if (propsSet == (_calendarId)) { + params.put("calendarId", request.calendarId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java index 11a043a3e..6a7553822 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java @@ -217,6 +217,21 @@ public DeleteDataFrameAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java index 017f73a24..42a2c6eec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java @@ -183,6 +183,21 @@ public DeleteDatafeedRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java index 58415c87c..035603dcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java @@ -39,6 +39,8 @@ import java.lang.Float; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -273,6 +275,24 @@ protected static void setupDeleteExpiredDataRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + if (request.jobId() != null) + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java index f9d3d550c..60fed8a2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeleteFilterRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _filterId = 1 << 0; + + int propsSet = 0; + + propsSet |= _filterId; + + if (propsSet == (_filterId)) { + params.put("filterId", request.filterId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java index 100572c84..1a5e66fe3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java @@ -271,6 +271,28 @@ public DeleteForecastRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + final int _forecastId = 1 << 1; + + int propsSet = 0; + + propsSet |= _jobId; + if (request.forecastId() != null) + propsSet |= _forecastId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + if (propsSet == (_jobId | _forecastId)) { + params.put("jobId", request.jobId); + params.put("forecastId", request.forecastId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java index af5fabf3a..ca1786d55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java @@ -242,6 +242,21 @@ public DeleteJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java index c9a122739..ba98ef6e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -179,6 +181,24 @@ public DeleteModelSnapshotRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java index 551d07626..8064542b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -180,6 +182,24 @@ public DeleteTrainedModelAliasRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelAlias = 1 << 0; + final int _modelId = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelAlias; + propsSet |= _modelId; + + if (propsSet == (_modelId | _modelAlias)) { + params.put("modelId", request.modelId); + params.put("modelAlias", request.modelAlias); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java index ef98f1d9f..eb9ef1b77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java @@ -178,6 +178,21 @@ public DeleteTrainedModelRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java index 875f4463f..61219b96e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java @@ -326,6 +326,11 @@ protected static void setupEstimateModelMemoryRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java index ad9703856..b10266148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java @@ -252,6 +252,11 @@ protected static void setupEvaluateDataFrameRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java index 614bd74c5..8b16e4415 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java @@ -39,6 +39,8 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -549,6 +551,24 @@ protected static void setupExplainDataFrameAnalyticsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java index 518570bd0..12ff8c216 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java @@ -40,6 +40,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -344,6 +346,21 @@ protected static void setupFlushJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java index af3c013d3..e506b8095 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -301,6 +303,21 @@ protected static void setupForecastRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java index e472c97c1..43dbfda72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java @@ -548,6 +548,28 @@ protected static void setupGetBucketsRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + final int _timestamp = 1 << 1; + + int propsSet = 0; + + propsSet |= _jobId; + if (request.timestamp() != null) + propsSet |= _timestamp; + + if (propsSet == (_jobId | _timestamp)) { + params.put("jobId", request.jobId); + params.put("timestamp", request.timestamp.toString()); + } + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java index 763675322..351d28a69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java @@ -295,6 +295,21 @@ public GetCalendarEventsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + + int propsSet = 0; + + propsSet |= _calendarId; + + if (propsSet == (_calendarId)) { + params.put("calendarId", request.calendarId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java index 58b275bd6..1ced7cd12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java @@ -292,6 +292,24 @@ protected static void setupGetCalendarsRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + + int propsSet = 0; + + if (request.calendarId() != null) + propsSet |= _calendarId; + + if (propsSet == 0) { + } + if (propsSet == (_calendarId)) { + params.put("calendarId", request.calendarId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java index 7cccc36c9..e6be6d429 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java @@ -346,6 +346,28 @@ protected static void setupGetCategoriesRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _categoryId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + if (request.categoryId() != null) + propsSet |= _categoryId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _categoryId)) { + params.put("jobId", request.jobId); + params.put("categoryId", request.categoryId); + } + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java index bc0125126..d938e0c15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java @@ -304,6 +304,24 @@ public GetDataFrameAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java index 45c51f2d8..7759f6b40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java @@ -300,6 +300,24 @@ public GetDataFrameAnalyticsStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java index 05309c5b4..6c130972b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java @@ -239,6 +239,24 @@ public GetDatafeedStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.datafeedId())) + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java index d97aff4e8..f98aa3f52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java @@ -266,6 +266,24 @@ public GetDatafeedsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.datafeedId())) + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java index 33fa747cd..c06c6696e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java @@ -227,6 +227,24 @@ public GetFiltersRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _filterId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.filterId())) + propsSet |= _filterId; + + if (propsSet == 0) { + } + if (propsSet == (_filterId)) { + params.put("filterId", request.filterId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java index 69b56194e..9504a7d1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java @@ -445,6 +445,21 @@ protected static void setupGetInfluencersRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java index a4849113f..c1db35a63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java @@ -212,6 +212,24 @@ public GetJobStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + if (request.jobId() != null) + propsSet |= _jobId; + + if (propsSet == 0) { + } + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java index dbe480c99..c2dc94b5e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java @@ -261,6 +261,24 @@ public GetJobsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.jobId())) + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java index 35e52da8f..0d38c308c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java @@ -273,6 +273,24 @@ public GetMemoryStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (request.nodeId() != null) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java index cf6beafb6..7bc519570 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java @@ -237,6 +237,24 @@ public GetModelSnapshotUpgradeStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java index 73964a9bb..e4acac23c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java @@ -450,6 +450,28 @@ protected static void setupGetModelSnapshotsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + if (request.snapshotId() != null) + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java index f823622d7..3b120fcfe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java @@ -42,6 +42,8 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -450,6 +452,21 @@ protected static void setupGetOverallBucketsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java index d9a06a791..50af47362 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java @@ -478,6 +478,21 @@ protected static void setupGetRecordsRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java index 77335e217..97d445206 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java @@ -373,6 +373,24 @@ public GetTrainedModelsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + if (request.modelId() != null) + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java index fc4b672c1..e5a763456 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java @@ -279,6 +279,24 @@ public GetTrainedModelsStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.modelId())) + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java index b584b9252..a4ca08ce2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java @@ -338,6 +338,24 @@ protected static void setupInferTrainedModelRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java index a2a653ad8..77c97f954 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java @@ -79,6 +79,11 @@ public MlInfoRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java index 5fa4c57be..ad701401d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -222,6 +224,21 @@ protected static void setupOpenJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java index d3840ba6a..2d31c7a29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -246,6 +248,21 @@ protected static void setupPostCalendarEventsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + + int propsSet = 0; + + propsSet |= _calendarId; + + if (propsSet == (_calendarId)) { + params.put("calendarId", request.calendarId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java index bc552b5dd..751ed3097 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java @@ -309,6 +309,21 @@ public static JsonpDeserializer> createPostDataRe }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java index 1d2b455b9..774d5bad6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java @@ -38,6 +38,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -241,6 +243,24 @@ protected static void setupPreviewDataFrameAnalyticsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + } + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java index dc414937f..989897f6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java @@ -362,6 +362,24 @@ protected static void setupPreviewDatafeedRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + if (request.datafeedId() != null) + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java index 225a4b971..b9f07a0af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -177,6 +179,24 @@ public PutCalendarJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _calendarId; + propsSet |= _jobId; + + if (propsSet == (_calendarId | _jobId)) { + params.put("calendarId", request.calendarId); + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java index 9117e4010..139e8db3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -259,6 +261,21 @@ protected static void setupPutCalendarRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _calendarId = 1 << 0; + + int propsSet = 0; + + propsSet |= _calendarId; + + if (propsSet == (_calendarId)) { + params.put("calendarId", request.calendarId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java index cd7943e95..d87ae33d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java @@ -40,6 +40,7 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -679,6 +680,21 @@ protected static void setupPutDataFrameAnalyticsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java index e13726a32..efbef6de4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java @@ -1087,6 +1087,21 @@ protected static void setupPutDatafeedRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java index 288ab02ee..394d7583c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -267,6 +269,21 @@ protected static void setupPutFilterRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _filterId = 1 << 0; + + int propsSet = 0; + + propsSet |= _filterId; + + if (propsSet == (_filterId)) { + params.put("filterId", request.filterId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java index b5180aa98..56634f7a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java @@ -42,7 +42,9 @@ import java.lang.Long; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -872,6 +874,21 @@ protected static void setupPutJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java index 7476ce6f3..fb698b6a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java @@ -221,6 +221,24 @@ public PutTrainedModelAliasRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelAlias = 1 << 0; + final int _modelId = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelAlias; + propsSet |= _modelId; + + if (propsSet == (_modelId | _modelAlias)) { + params.put("modelId", request.modelId); + params.put("modelAlias", request.modelAlias); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java index 26a4fb285..30b451df0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java @@ -40,6 +40,8 @@ import java.lang.Long; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -306,6 +308,24 @@ protected static void setupPutTrainedModelDefinitionPartRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _part = 1 << 0; + final int _modelId = 1 << 1; + + int propsSet = 0; + + propsSet |= _part; + propsSet |= _modelId; + + if (propsSet == (_modelId | _part)) { + params.put("modelId", request.modelId); + params.put("part", String.valueOf(request.part)); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index 89366846c..392cb7db9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -576,6 +576,21 @@ protected static void setupPutTrainedModelRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index d1e8aa854..437abb717 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -283,6 +285,21 @@ protected static void setupPutTrainedModelVocabularyRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java index aae92a3e0..e99774ddb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java @@ -206,6 +206,21 @@ public ResetJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java index e9d7694f3..1878d07c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java @@ -39,6 +39,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -255,6 +257,24 @@ protected static void setupRevertModelSnapshotRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java index 1693a7994..787fdb5e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -186,6 +187,11 @@ public SetUpgradeModeRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java index 9a25986e8..e9b1a237e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java @@ -205,6 +205,21 @@ public StartDataFrameAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java index 0d163e4be..047155d0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java @@ -40,6 +40,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -306,6 +308,21 @@ protected static void setupStartDatafeedRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index be0e9d8ca..fea7d41ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -384,6 +384,21 @@ public StartTrainedModelDeploymentRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java index 39763ec88..738f4acce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java @@ -272,6 +272,21 @@ public StopDataFrameAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java index 1d3748114..347d3de4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java @@ -40,6 +40,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -294,6 +296,21 @@ protected static void setupStopDatafeedRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java index e9d062770..e0e8d4cc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java @@ -220,6 +220,21 @@ public StopTrainedModelDeploymentRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + + int propsSet = 0; + + propsSet |= _modelId; + + if (propsSet == (_modelId)) { + params.put("modelId", request.modelId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java index 598d041fe..a3e2238bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java @@ -40,6 +40,8 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -334,6 +336,21 @@ protected static void setupUpdateDataFrameAnalyticsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java index 9562c32c6..2c4268a2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java @@ -1076,6 +1076,21 @@ protected static void setupUpdateDatafeedRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + propsSet |= _datafeedId; + + if (propsSet == (_datafeedId)) { + params.put("datafeedId", request.datafeedId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java index 015f8a3cb..dc989c388 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -313,6 +315,21 @@ protected static void setupUpdateFilterRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _filterId = 1 << 0; + + int propsSet = 0; + + propsSet |= _filterId; + + if (propsSet == (_filterId)) { + params.put("filterId", request.filterId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java index 06f6ce928..d43d3848d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java @@ -42,6 +42,7 @@ import java.lang.Long; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -855,6 +856,21 @@ protected static void setupUpdateJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _jobId = 1 << 0; + + int propsSet = 0; + + propsSet |= _jobId; + + if (propsSet == (_jobId)) { + params.put("jobId", request.jobId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java index c586821cf..06ce5b071 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java @@ -39,6 +39,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -278,6 +280,24 @@ protected static void setupUpdateModelSnapshotRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java index 3a0c56e4c..f1764e56e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java @@ -253,6 +253,24 @@ public UpgradeJobSnapshotRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _snapshotId = 1 << 0; + final int _jobId = 1 << 1; + + int propsSet = 0; + + propsSet |= _snapshotId; + propsSet |= _jobId; + + if (propsSet == (_jobId | _snapshotId)) { + params.put("jobId", request.jobId); + params.put("snapshotId", request.snapshotId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java index c642a82f9..391dbaa3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java @@ -162,6 +162,11 @@ protected static JsonpDeserializer createValidateDetect }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java index 906b082e6..29d735a18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java @@ -425,6 +425,11 @@ protected static void setupValidateRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java index bc0487372..c2f2e29df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java @@ -307,6 +307,24 @@ public BulkRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _type = 1 << 0; + + int propsSet = 0; + + if (request.type() != null) + propsSet |= _type; + + if (propsSet == 0) { + } + if (propsSet == (_type)) { + params.put("type", request.type); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java index 048050b68..c1645c560 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java @@ -37,7 +37,9 @@ import java.lang.Long; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -205,6 +207,24 @@ public ClearRepositoriesMeteringArchiveRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _maxArchiveVersion = 1 << 0; + final int _nodeId = 1 << 1; + + int propsSet = 0; + + propsSet |= _maxArchiveVersion; + propsSet |= _nodeId; + + if (propsSet == (_nodeId | _maxArchiveVersion)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("maxArchiveVersion", String.valueOf(request.maxArchiveVersion)); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java index e14383d9e..fd2c6ba69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -176,6 +178,21 @@ public GetRepositoriesMeteringInfoRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + propsSet |= _nodeId; + + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java index 26bd45f8d..9d4635a21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java @@ -429,6 +429,24 @@ public HotThreadsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java index 98a334550..508de3ca2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java @@ -341,6 +341,34 @@ public NodesInfoRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + final int _nodeId = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_metric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_nodeId | _metric)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java index e5a41190a..454f33c78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java @@ -667,6 +667,48 @@ public NodesStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + final int _indexMetric = 1 << 1; + final int _nodeId = 1 << 2; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + if (ApiTypeHelper.isDefined(request.indexMetric())) + propsSet |= _indexMetric; + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_metric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_nodeId | _metric)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_metric | _indexMetric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("indexMetric", + request.indexMetric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_nodeId | _metric | _indexMetric)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("indexMetric", + request.indexMetric.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java index 13d425e55..30017aa2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java @@ -278,6 +278,34 @@ public NodesUsageRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + final int _nodeId = 1 << 1; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_metric)) { + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == (_nodeId | _metric)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java index 0f93807f2..965b8ddaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java @@ -272,6 +272,24 @@ protected static void setupReloadSecureSettingsRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java index 97fa96632..7670af893 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -145,6 +147,21 @@ public DeleteQueryRulesetRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + params.put("rulesetId", request.rulesetId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java index 74312a2e8..b510f576d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -145,6 +147,21 @@ public GetQueryRulesetRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + params.put("rulesetId", request.rulesetId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java index 745566a89..f7a555a96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -160,6 +161,11 @@ public ListRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java index a7c82781e..9925d24b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java @@ -39,6 +39,8 @@ import jakarta.json.stream.JsonParser; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -200,6 +202,21 @@ protected static JsonpDeserializer createPutRequestDeserializer() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _rulesetId = 1 << 0; + + int propsSet = 0; + + propsSet |= _rulesetId; + + if (propsSet == (_rulesetId)) { + params.put("rulesetId", request.rulesetId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java index 4c7106606..6132b5da4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public DeleteJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java index b64a0c45a..fe7695819 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java @@ -35,6 +35,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -155,6 +157,24 @@ public GetJobsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java index 771a253d9..23759ed95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java @@ -35,6 +35,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -158,6 +160,24 @@ public GetRollupCapsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java index 0873337f4..11630b7ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -167,6 +169,21 @@ public GetRollupIndexCapsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java index 462bac5ee..26e25502b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java @@ -40,6 +40,7 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -557,6 +558,21 @@ protected static void setupPutJobRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java index 05a70547f..7732dae59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java @@ -41,6 +41,7 @@ import java.lang.Integer; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -321,6 +322,21 @@ protected static void setupRollupSearchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java index f733b25d1..47f9be989 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -145,6 +147,21 @@ public StartJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java index 5c946e077..7a9f780e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java @@ -216,6 +216,21 @@ public StopJobRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java index 4014560a7..f22e337b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeleteBehavioralAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java index e3eceecba..b5515a8ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeleteSearchApplicationRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java index b2aa3e9bf..067ca4a6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -171,6 +173,24 @@ public GetBehavioralAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java index 9a617546d..352e4551f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public GetSearchApplicationRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java index 0f1578953..13f63afca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -35,6 +35,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Integer; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -188,6 +189,11 @@ public ListRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java index bccdedcd7..08f2ff35b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -147,6 +149,21 @@ public PutBehavioralAnalyticsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java index 478d1d9b0..9f89595fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java @@ -231,6 +231,21 @@ protected static JsonpDeserializer createPutRequestDeserializer() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java index 0332cd4b0..17923d133 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -39,6 +39,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -226,6 +227,21 @@ protected static void setupSearchApplicationSearchRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java index 6fa7cb4c2..d7e2f3a7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java @@ -212,6 +212,24 @@ public CacheStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java index 857994a34..dfbad3898 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java @@ -324,6 +324,24 @@ public ClearCacheRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java index 37088951a..13eef2d84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java @@ -445,6 +445,24 @@ protected static void setupMountRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java index e5239a6ac..01cc1e9fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java @@ -200,6 +200,24 @@ public SearchableSnapshotsStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java index 53c570996..37b725dcc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java @@ -249,6 +249,11 @@ protected static void setupActivateUserProfileRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java index 2b2456852..ca9a05186 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java @@ -79,6 +79,11 @@ public AuthenticateRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java index 5e1c1b418..a6273dd49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java @@ -296,6 +296,24 @@ protected static void setupChangePasswordRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + if (request.username() != null) + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java index 950268ee3..56f69b4e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -171,6 +173,21 @@ public ClearApiKeyCacheRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _ids = 1 << 0; + + int propsSet = 0; + + propsSet |= _ids; + + if (propsSet == (_ids)) { + params.put("ids", request.ids.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java index f04977bde..8f48ce180 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public ClearCachedPrivilegesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _application = 1 << 0; + + int propsSet = 0; + + propsSet |= _application; + + if (propsSet == (_application)) { + params.put("application", request.application); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java index 767883db4..0f36721a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java @@ -206,6 +206,21 @@ public ClearCachedRealmsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _realms = 1 << 0; + + int propsSet = 0; + + propsSet |= _realms; + + if (propsSet == (_realms)) { + params.put("realms", request.realms.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java index ecf136343..61ccedfbd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -164,6 +166,21 @@ public ClearCachedRolesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java index b3f9a4868..c0b508e22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -223,6 +225,27 @@ public ClearCachedServiceTokensRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _service = 1 << 0; + final int _namespace = 1 << 1; + final int _name = 1 << 2; + + int propsSet = 0; + + propsSet |= _service; + propsSet |= _namespace; + propsSet |= _name; + + if (propsSet == (_namespace | _service | _name)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java index 0751a66e8..0a5cb5dd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java @@ -40,6 +40,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -402,6 +403,11 @@ protected static void setupCreateApiKeyRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java index 930c7fef9..0416b6cb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java @@ -272,6 +272,32 @@ public CreateServiceTokenRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _service = 1 << 0; + final int _namespace = 1 << 1; + final int _name = 1 << 2; + + int propsSet = 0; + + propsSet |= _service; + propsSet |= _namespace; + if (request.name() != null) + propsSet |= _name; + + if (propsSet == (_namespace | _service | _name)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + params.put("name", request.name); + } + if (propsSet == (_namespace | _service)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java index 286532445..d0994affe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java @@ -226,6 +226,24 @@ public DeletePrivilegesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _application = 1 << 0; + final int _name = 1 << 1; + + int propsSet = 0; + + propsSet |= _application; + propsSet |= _name; + + if (propsSet == (_application | _name)) { + params.put("application", request.application); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java index 2fd83ce3b..59c5bf954 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java @@ -182,6 +182,21 @@ public DeleteRoleMappingRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java index 4e81e5764..4e8ee4925 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java @@ -181,6 +181,21 @@ public DeleteRoleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java index e8e24aecc..4f3381ed3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java @@ -240,6 +240,27 @@ public DeleteServiceTokenRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _service = 1 << 0; + final int _namespace = 1 << 1; + final int _name = 1 << 2; + + int propsSet = 0; + + propsSet |= _service; + propsSet |= _namespace; + propsSet |= _name; + + if (propsSet == (_namespace | _service | _name)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java index 900fd86e6..8f7fbf2a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java @@ -181,6 +181,21 @@ public DeleteUserRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java index 004d1f782..cfdc044f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java @@ -181,6 +181,21 @@ public DisableUserProfileRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _uid = 1 << 0; + + int propsSet = 0; + + propsSet |= _uid; + + if (propsSet == (_uid)) { + params.put("uid", request.uid); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java index 1670345de..96a924995 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java @@ -182,6 +182,21 @@ public DisableUserRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java index 1ac51a0b0..990c38ece 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java @@ -181,6 +181,21 @@ public EnableUserProfileRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _uid = 1 << 0; + + int propsSet = 0; + + propsSet |= _uid; + + if (propsSet == (_uid)) { + params.put("uid", request.uid); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java index 2884f5b85..3af25c0fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java @@ -182,6 +182,21 @@ public EnableUserRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollKibanaRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollKibanaRequest.java index 70a0f8afb..4b9769cde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollKibanaRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollKibanaRequest.java @@ -75,6 +75,11 @@ public EnrollKibanaRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollNodeRequest.java index 634deb905..9f3be6dca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnrollNodeRequest.java @@ -74,6 +74,11 @@ public EnrollNodeRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 649473e40..56e60e2d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -35,6 +35,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -300,6 +301,11 @@ public GetApiKeyRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java index ebd2dd833..57799108a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java @@ -76,6 +76,11 @@ public GetBuiltinPrivilegesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java index 415eafb65..0fbd3ee90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -210,6 +212,31 @@ public GetPrivilegesRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _application = 1 << 0; + final int _name = 1 << 1; + + int propsSet = 0; + + if (request.application() != null) + propsSet |= _application; + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_application)) { + params.put("application", request.application); + } + if (propsSet == (_application | _name)) { + params.put("application", request.application); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java index 0616449f2..7ff0ae9f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -183,6 +185,24 @@ public GetRoleMappingRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java index 25d08bde8..e94a4dad0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -176,6 +178,24 @@ public GetRoleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java index ddf4a1a5f..5ccf14f1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java @@ -35,6 +35,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -203,6 +205,31 @@ public GetServiceAccountsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _service = 1 << 0; + final int _namespace = 1 << 1; + + int propsSet = 0; + + if (request.service() != null) + propsSet |= _service; + if (request.namespace() != null) + propsSet |= _namespace; + + if (propsSet == (_namespace | _service)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + } + if (propsSet == (_namespace)) { + params.put("namespace", request.namespace); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java index 4c52e306f..1e672e81a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -176,6 +178,24 @@ public GetServiceCredentialsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _service = 1 << 0; + final int _namespace = 1 << 1; + + int propsSet = 0; + + propsSet |= _service; + propsSet |= _namespace; + + if (propsSet == (_namespace | _service)) { + params.put("namespace", request.namespace); + params.put("service", request.service); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java index 14eb21db7..cc36998a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java @@ -308,6 +308,11 @@ protected static void setupGetTokenRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java index 9562b58e9..f6de89f65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -192,6 +193,11 @@ public GetUserPrivilegesRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java index aec1d5c3f..0d898b72d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java @@ -212,6 +212,21 @@ public GetUserProfileRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _uid = 1 << 0; + + int propsSet = 0; + + propsSet |= _uid; + + if (propsSet == (_uid)) { + params.put("uid", request.uid.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java index 74ed8f87d..9fde87b2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java @@ -204,6 +204,24 @@ public GetUserRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.username())) + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java index e96be5bb6..7604f224b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java @@ -364,6 +364,11 @@ protected static void setupGrantApiKeyRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java index f1e5247ae..3c84c04c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java @@ -40,7 +40,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -349,6 +351,24 @@ protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _user = 1 << 0; + + int propsSet = 0; + + if (request.user() != null) + propsSet |= _user; + + if (propsSet == 0) { + } + if (propsSet == (_user)) { + params.put("user", request.user); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java index 7bc5613dd..f905f71ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java @@ -226,6 +226,11 @@ protected static void setupHasPrivilegesUserProfileRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java index 7f065fe4d..10de48a67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java @@ -382,6 +382,11 @@ protected static void setupInvalidateApiKeyRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java index 498bae584..af7351cf8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java @@ -254,6 +254,11 @@ protected static void setupInvalidateTokenRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java index ca0d6452b..09babc723 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java @@ -40,6 +40,7 @@ import jakarta.json.stream.JsonGenerator; import jakarta.json.stream.JsonParser; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -228,6 +229,11 @@ protected static JsonpDeserializer createPutPrivilegesRequ }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java index 6194febc6..290277e03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java @@ -412,6 +412,21 @@ protected static void setupPutRoleMappingRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java index b55343e68..8be0eac01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java @@ -609,6 +609,21 @@ protected static void setupPutRoleRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java index d862d7b23..3781bae56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java @@ -446,6 +446,21 @@ protected static void setupPutUserRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _username = 1 << 0; + + int propsSet = 0; + + propsSet |= _username; + + if (propsSet == (_username)) { + params.put("username", request.username); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 6c188dd1b..9fa998210 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -41,6 +41,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Integer; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -433,6 +434,11 @@ protected static void setupQueryApiKeysRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java index 62a7968b3..fec9195b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java @@ -257,6 +257,11 @@ protected static void setupSamlAuthenticateRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java index fad37458e..e22704c16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java @@ -295,6 +295,11 @@ protected static void setupSamlCompleteLogoutRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java index 052f0e0d2..0b16ae226 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java @@ -256,6 +256,11 @@ protected static void setupSamlInvalidateRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java index 6ed784bf2..d81dea4b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java @@ -205,6 +205,11 @@ protected static void setupSamlLogoutRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java index 83ae97f77..369cc30dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java @@ -251,6 +251,11 @@ protected static void setupSamlPrepareAuthenticationRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java index 1a06d15cf..9642a1e38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -149,6 +151,21 @@ public SamlServiceProviderMetadataRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _realmName = 1 << 0; + + int propsSet = 0; + + propsSet |= _realmName; + + if (propsSet == (_realmName)) { + params.put("realmName", request.realmName); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java index 76c967807..1b09e3cfc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java @@ -322,6 +322,11 @@ protected static void setupSuggestUserProfilesRequestDeserializer( }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index 9975c9e86..c3dd49510 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -39,6 +39,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -343,6 +344,21 @@ protected static void setupUpdateApiKeyRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java index c01abef48..db6a5ef57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java @@ -376,6 +376,21 @@ protected static void setupUpdateUserProfileDataRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _uid = 1 << 0; + + int propsSet = 0; + + propsSet |= _uid; + + if (propsSet == (_uid)) { + params.put("uid", request.uid); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java index c1e73e003..a588ff0d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java @@ -207,6 +207,21 @@ public DeleteNodeRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + propsSet |= _nodeId; + + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java index 704b7aa08..4103944f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java @@ -231,6 +231,24 @@ public GetNodeRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.nodeId())) + propsSet |= _nodeId; + + if (propsSet == 0) { + } + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java index b2261ea81..a5fe8cf1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java @@ -397,6 +397,21 @@ protected static void setupPutNodeRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _nodeId = 1 << 0; + + int propsSet = 0; + + propsSet |= _nodeId; + + if (propsSet == (_nodeId)) { + params.put("nodeId", request.nodeId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java index 50a6b3daa..f2640553a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public DeleteLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _policyId = 1 << 0; + + int propsSet = 0; + + propsSet |= _policyId; + + if (propsSet == (_policyId)) { + params.put("policyId", request.policyId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java index c0be63ec4..967bf36ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public ExecuteLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _policyId = 1 << 0; + + int propsSet = 0; + + propsSet |= _policyId; + + if (propsSet == (_policyId)) { + params.put("policyId", request.policyId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java index 21e29e51e..ec83bd3f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java @@ -75,6 +75,11 @@ public ExecuteRetentionRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java index 528688a0b..699698ac2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -172,6 +174,24 @@ public GetLifecycleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _policyId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.policyId())) + propsSet |= _policyId; + + if (propsSet == (_policyId)) { + params.put("policyId", request.policyId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java index 970712d48..ffe24f811 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java @@ -74,6 +74,11 @@ public GetSlmStatusRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java index ad9664fab..65cb0147b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java @@ -75,6 +75,11 @@ public GetStatsRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java index fcff1896a..c16f6c700 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java @@ -448,6 +448,21 @@ protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _policyId = 1 << 0; + + int propsSet = 0; + + propsSet |= _policyId; + + if (propsSet == (_policyId)) { + params.put("policyId", request.policyId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java index 2b5278667..7355d125a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java @@ -74,6 +74,11 @@ public StartSlmRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java index 589ceba03..58afecbcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java @@ -74,6 +74,11 @@ public StopSlmRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java index b7a3d76a6..52b261425 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java @@ -222,6 +222,21 @@ public CleanupRepositoryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java index e20b0e197..dcde79f9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java @@ -323,6 +323,27 @@ protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _targetSnapshot = 1 << 0; + final int _repository = 1 << 1; + final int _snapshot = 1 << 2; + + int propsSet = 0; + + propsSet |= _targetSnapshot; + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot | _targetSnapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot); + params.put("targetSnapshot", request.targetSnapshot); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java index 100675aef..6d3e37857 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java @@ -368,6 +368,21 @@ protected static void setupCreateRepositoryRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java index c3e40f146..9171b89d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java @@ -572,6 +572,24 @@ protected static void setupCreateSnapshotRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java index 6535486ad..e35373b01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java @@ -239,6 +239,21 @@ public DeleteRepositoryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java index 9341b8ce3..489db88bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java @@ -211,6 +211,24 @@ public DeleteSnapshotRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java index 26c8aedf5..78571d7bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java @@ -236,6 +236,24 @@ public GetRepositoryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java index 7e46ef8e8..ae3f5ee01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java @@ -619,6 +619,24 @@ public GetSnapshotRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java index 0b59a387a..bcc62a939 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java @@ -614,6 +614,24 @@ protected static void setupRestoreRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + propsSet |= _repository; + propsSet |= _snapshot; + + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java index fe967ee28..a43bc3148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java @@ -279,6 +279,31 @@ public SnapshotStatusRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _repository = 1 << 0; + final int _snapshot = 1 << 1; + + int propsSet = 0; + + if (request.repository() != null) + propsSet |= _repository; + if (ApiTypeHelper.isDefined(request.snapshot())) + propsSet |= _snapshot; + + if (propsSet == 0) { + } + if (propsSet == (_repository)) { + params.put("repository", request.repository); + } + if (propsSet == (_repository | _snapshot)) { + params.put("repository", request.repository); + params.put("snapshot", request.snapshot.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java index ec1ced4d9..be1c65044 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java @@ -221,6 +221,21 @@ public VerifyRepositoryRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java index 2f6324d66..4063ceeb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java @@ -160,6 +160,11 @@ protected static void setupClearCursorRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java index ace358310..44ed8cfcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeleteAsyncRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java index f5c290313..c77995ef4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -283,6 +283,21 @@ public GetAsyncRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java index 0f92af7c6..751783f75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public GetAsyncStatusRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java index 9e66af3d3..72e567ebe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -43,6 +43,7 @@ import java.lang.Boolean; import java.lang.Integer; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -811,6 +812,11 @@ protected static void setupQueryRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java index 3cc958dfa..23d1c0d17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java @@ -257,6 +257,11 @@ protected static void setupTranslateRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java index e78e8181a..5986027dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java @@ -75,6 +75,11 @@ public CertificatesRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java index 306616a57..2b708693d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -145,6 +147,21 @@ public DeleteSynonymRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java index cb0964d38..37137c86e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -174,6 +176,24 @@ public DeleteSynonymRuleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + params.put("setId", request.setId); + params.put("ruleId", request.ruleId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java index d54413ea9..a6ce5de5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java @@ -201,6 +201,21 @@ public GetSynonymRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java index 17e5940bb..476888f09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -174,6 +176,24 @@ public GetSynonymRuleRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + params.put("setId", request.setId); + params.put("ruleId", request.ruleId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java index 01922cf19..9bf9b2fe5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -163,6 +164,11 @@ public GetSynonymsSetsRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java index d31aaf56a..b03200b5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -235,6 +237,21 @@ protected static void setupPutSynonymRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index 1f278fd55..279192a2d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -38,7 +38,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -248,6 +250,24 @@ protected static void setupPutSynonymRuleRequestDeserializer(ObjectDeserializer< }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _ruleId = 1 << 0; + final int _setId = 1 << 1; + + int propsSet = 0; + + propsSet |= _ruleId; + propsSet |= _setId; + + if (propsSet == (_setId | _ruleId)) { + params.put("setId", request.setId); + params.put("ruleId", request.ruleId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java index d4209068c..007779343 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java @@ -303,6 +303,24 @@ public CancelRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + if (request.taskId() != null) + propsSet |= _taskId; + + if (propsSet == 0) { + } + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index 130551175..11c0556f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -209,6 +209,21 @@ public GetTasksRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java index cccb356ec..11a8aaf93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java @@ -37,6 +37,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -383,6 +384,11 @@ public ListRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java index dbdf0e811..5ce014a31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java @@ -217,6 +217,21 @@ public DeleteTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java index ae634d44f..80c9d173b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java @@ -314,6 +314,25 @@ public GetTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.transformId())) + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", + request.transformId.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java index 9a8511746..6a50ce899 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java @@ -315,6 +315,22 @@ public GetTransformStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", + request.transformId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java index 2ea43d7e5..8cf7f5c07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java @@ -621,6 +621,24 @@ protected static void setupPreviewTransformRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + if (request.transformId() != null) + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java index 734cd1e44..e17867d59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java @@ -717,6 +717,21 @@ protected static void setupPutTransformRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java index f69307f4f..e38b01b40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java @@ -186,6 +186,21 @@ public ResetTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java index 29c537330..f49ba9d6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java @@ -190,6 +190,21 @@ public ScheduleNowTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java index efcf4fcd6..5fcaaac1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java @@ -241,6 +241,21 @@ public StartTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java index ca8a1d6b0..507cb6676 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java @@ -335,6 +335,21 @@ public StopTransformRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java index 3fad37f98..46bf96597 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java @@ -606,6 +606,21 @@ protected static void setupUpdateTransformRequestDeserializer( }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + params.put("transformId", request.transformId); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java index ffeabcbbc..8b24d66b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -182,6 +183,11 @@ public UpgradeTransformsRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java index af83548c2..02895825f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java @@ -36,7 +36,9 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -202,6 +204,28 @@ public AckWatchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _watchId = 1 << 0; + final int _actionId = 1 << 1; + + int propsSet = 0; + + propsSet |= _watchId; + if (ApiTypeHelper.isDefined(request.actionId())) + propsSet |= _actionId; + + if (propsSet == (_watchId)) { + params.put("watchId", request.watchId); + } + if (propsSet == (_watchId | _actionId)) { + params.put("watchId", request.watchId); + params.put("actionId", request.actionId.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java index bf81f91d1..3f30042fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -147,6 +149,21 @@ public ActivateWatchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _watchId = 1 << 0; + + int propsSet = 0; + + propsSet |= _watchId; + + if (propsSet == (_watchId)) { + params.put("watchId", request.watchId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java index bd7a6f8fc..69e3a2d2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -148,6 +150,21 @@ public DeactivateWatchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _watchId = 1 << 0; + + int propsSet = 0; + + propsSet |= _watchId; + + if (propsSet == (_watchId)) { + params.put("watchId", request.watchId); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java index 6f4060f69..2e4eae757 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -146,6 +148,21 @@ public DeleteWatchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java index 436ea2d67..1a2a71843 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java @@ -532,6 +532,24 @@ protected static void setupExecuteWatchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + if (propsSet == 0) { + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java index 44110ee19..d54689f7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java @@ -36,6 +36,8 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -144,6 +146,21 @@ public GetWatchRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java index 07a8f886c..de3817614 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java @@ -562,6 +562,21 @@ protected static void setupPutWatchRequestDeserializer(ObjectDeserializer { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java index 69601c1b8..f21b74140 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java @@ -371,6 +371,11 @@ protected static void setupQueryWatchesRequestDeserializer(ObjectDeserializer { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java index 6e9c314cf..c0a21390d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java @@ -74,6 +74,11 @@ public StartWatcherRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java index 55bae6c3f..97d936a07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java @@ -74,6 +74,11 @@ public StopWatcherRequest() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { return Collections.emptyMap(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java index 7c6f42541..87f547439 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java @@ -200,6 +200,25 @@ public WatcherStatsRequest build() { }, + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _metric = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.metric())) + propsSet |= _metric; + + if (propsSet == 0) { + } + if (propsSet == (_metric)) { + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + return params; + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java index e91423bcf..7e78fe803 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java @@ -36,6 +36,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -210,6 +211,11 @@ public XpackInfoRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java index 82c1c73b3..a3462d719 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java @@ -34,6 +34,7 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -148,6 +149,11 @@ public XpackUsageRequest build() { }, + // Path parameters + request -> { + return Collections.emptyMap(); + }, + // Request parameters request -> { Map params = new HashMap<>(); diff --git a/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java b/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java index 2a27db247..e8e0b8459 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java +++ b/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java @@ -30,6 +30,9 @@ import co.elastic.clients.transport.endpoints.BooleanResponse; import co.elastic.clients.transport.http.HeaderMap; import co.elastic.clients.transport.http.TransportHttpClient; +import co.elastic.clients.transport.instrumentation.Instrumentation; +import co.elastic.clients.transport.instrumentation.NoopInstrumentation; +import co.elastic.clients.transport.instrumentation.OpenTelemetryForElasticsearch; import co.elastic.clients.util.LanguageRuntimeVersions; import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.BinaryData; @@ -74,6 +77,7 @@ public abstract class ElasticsearchTransportBase implements ElasticsearchTranspo } private final TransportHttpClient httpClient; + private final Instrumentation instrumentation; @Override public void close() throws IOException { @@ -84,9 +88,27 @@ public void close() throws IOException { protected final TransportOptions transportOptions; public ElasticsearchTransportBase(TransportHttpClient httpClient, TransportOptions options, JsonpMapper jsonpMapper) { + this(httpClient, options, jsonpMapper, null); + } + + public ElasticsearchTransportBase( + TransportHttpClient httpClient, + TransportOptions options, + JsonpMapper jsonpMapper, + @Nullable Instrumentation instrumentation + ) { this.mapper = jsonpMapper; this.httpClient = httpClient; this.transportOptions = httpClient.createOptions(options); + + // If no instrumentation is provided, fallback to OpenTelemetry and ultimately noop + if (instrumentation == null) { + instrumentation = OpenTelemetryForElasticsearch.getDefault(); + } + if (instrumentation == null) { + instrumentation = NoopInstrumentation.INSTANCE; + } + this.instrumentation = instrumentation; } @Override @@ -105,10 +127,25 @@ public final ResponseT performRequest( Endpoint endpoint, @Nullable TransportOptions options ) throws IOException { - TransportOptions opts = options == null ? transportOptions : options; - TransportHttpClient.Request req = prepareTransportRequest(request, endpoint); - TransportHttpClient.Response resp = httpClient.performRequest(endpoint.id(), null, req, opts); - return getApiResponse(resp, endpoint); + try (Instrumentation.Context ctx = instrumentation.newContext(request, endpoint)) { + try (Instrumentation.ThreadScope ts = ctx.makeCurrent()) { + + TransportOptions opts = options == null ? transportOptions : options; + TransportHttpClient.Request req = prepareTransportRequest(request, endpoint); + ctx.beforeSendingHttpRequest(req, options); + + TransportHttpClient.Response resp = httpClient.performRequest(endpoint.id(), null, req, opts); + ctx.afterReceivingHttpResponse(resp); + + ResponseT apiResponse = getApiResponse(resp, endpoint); + ctx.afterDecodingApiResponse(apiResponse); + + return apiResponse; + } catch (Throwable throwable){ + ctx.recordException(throwable); + throw throwable; + } + } } @Override @@ -117,12 +154,17 @@ public final CompletableFuture performR Endpoint endpoint, @Nullable TransportOptions options ) { + Instrumentation.Context ctx = instrumentation.newContext(request, endpoint); + TransportOptions opts = options == null ? transportOptions : options; TransportHttpClient.Request clientReq; - try { + try (Instrumentation.ThreadScope ss = ctx.makeCurrent()) { clientReq = prepareTransportRequest(request, endpoint); + ctx.beforeSendingHttpRequest(clientReq, options); } catch (Exception e) { // Terminate early + ctx.recordException(e); + ctx.close(); CompletableFuture future = new CompletableFuture<>(); future.completeExceptionally(e); return future; @@ -148,17 +190,27 @@ public boolean cancel(boolean mayInterruptIfRunning) { }; clientFuture.handle((clientResp, thr) -> { - if (thr != null) { - future.completeExceptionally(thr); - } else { - try (ApiTypeHelper.DisabledChecksHandle h = - ApiTypeHelper.DANGEROUS_disableRequiredPropertiesCheck(disableRequiredChecks)) { - - ResponseT response = getApiResponse(clientResp, endpoint); - future.complete(response); + try (Instrumentation.ThreadScope ts = ctx.makeCurrent()) { + if (thr != null) { + // Exception executing the http request + ctx.recordException(thr); + ctx.close(); + future.completeExceptionally(thr); - } catch (Throwable e) { - future.completeExceptionally(e); + } else { + try (ApiTypeHelper.DisabledChecksHandle h = + ApiTypeHelper.DANGEROUS_disableRequiredPropertiesCheck(disableRequiredChecks)) { + ctx.afterReceivingHttpResponse(clientResp); + ResponseT response = getApiResponse(clientResp, endpoint); + ctx.afterDecodingApiResponse(response); + future.complete(response); + + } catch (Throwable e) { + ctx.recordException(e); + future.completeExceptionally(e); + } finally { + ctx.close(); + } } } return null; diff --git a/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java b/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java index 2ef0a0989..3ed47254d 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java @@ -56,6 +56,13 @@ public interface Endpoint { */ String requestUrl(RequestT request); + /** + * Get the path parameters for a request. + */ + default Map pathParameters(RequestT request) { + return Collections.emptyMap(); + } + /** * Get the query parameters for a request. */ @@ -104,6 +111,7 @@ default BinaryEndpoint withBinaryResponse() { this.id(), this::method, this::requestUrl, + this::pathParameters, this::queryParameters, this::headers, this::body, diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryEndpoint.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryEndpoint.java index 5a7d52b0f..4a7e56b69 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryEndpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryEndpoint.java @@ -28,26 +28,30 @@ public BinaryEndpoint( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, Function body, Object ignored // same number of arguments as SimpleEndpoint ) { - super(id, method, requestUrl, queryParameters, headers, body); + super(id, method, requestUrl, pathParameters, queryParameters, headers, body); } public BinaryEndpoint( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, boolean hasRequestBody, Object ignored // same number of arguments as SimpleEndpoint ) { - super(id, method, requestUrl, queryParameters, headers, hasRequestBody ? returnSelf() : returnNull()); + super(id, method, requestUrl, pathParameters, queryParameters, headers, hasRequestBody ? returnSelf() : returnNull()); } @Override diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BooleanEndpoint.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BooleanEndpoint.java index e9c386c8e..f2cbf967a 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BooleanEndpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BooleanEndpoint.java @@ -28,13 +28,15 @@ public BooleanEndpoint( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, boolean hasRequestBody, Object ignored // same number of arguments as SimpleEndpoint ) { - super(id, method, requestUrl, queryParameters, headers, hasRequestBody ? returnSelf() : returnNull()); + super(id, method, requestUrl, pathParameters, queryParameters, headers, hasRequestBody ? returnSelf() : returnNull()); } @Override diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/DelegatingJsonEndpoint.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/DelegatingJsonEndpoint.java index d79ba91f6..1ef0d816f 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/DelegatingJsonEndpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/DelegatingJsonEndpoint.java @@ -48,6 +48,11 @@ public String requestUrl(Req request) { return endpoint.requestUrl(request); } + @Override + public Map pathParameters(Req request) { + return endpoint.pathParameters(request); + } + @Override public Map queryParameters(Req request) { return endpoint.queryParameters(request); diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/EndpointBase.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/EndpointBase.java index e845e0a35..04610f707 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/EndpointBase.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/EndpointBase.java @@ -66,6 +66,7 @@ static Function returnSelf() { protected final String id; protected final Function method; protected final Function requestUrl; + protected final Function> pathParameters; protected final Function> queryParameters; protected final Function> headers; protected final Function body; @@ -74,6 +75,7 @@ public EndpointBase( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, Function body @@ -81,6 +83,7 @@ public EndpointBase( this.id = id; this.method = method; this.requestUrl = requestUrl; + this.pathParameters = pathParameters; this.queryParameters = queryParameters; this.headers = headers; this.body = body; @@ -101,6 +104,11 @@ public String requestUrl(RequestT request) { return this.requestUrl.apply(request); } + @Override + public Map pathParameters(RequestT request) { + return this.pathParameters.apply(request); + } + @Override public Map queryParameters(RequestT request) { return this.queryParameters.apply(request); @@ -135,6 +143,7 @@ public SimpleEndpoint withResponseDeseria id, method, requestUrl, + pathParameters, queryParameters, headers, body, diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleEndpoint.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleEndpoint.java index b5df37c90..9e3cb592d 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleEndpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleEndpoint.java @@ -35,12 +35,13 @@ public SimpleEndpoint( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, Function body, JsonpDeserializer responseParser ) { - super(id, method, requestUrl, queryParameters, headers, body); + super(id, method, requestUrl, pathParameters, queryParameters, headers, body); this.responseParser = responseParser; } @@ -48,6 +49,7 @@ public SimpleEndpoint( String id, Function method, Function requestUrl, + Function> pathParameters, Function> queryParameters, Function> headers, boolean hasResponseBody, @@ -57,6 +59,7 @@ public SimpleEndpoint( id, method, requestUrl, + pathParameters, queryParameters, headers, hasResponseBody ? returnSelf() : returnNull(), @@ -81,6 +84,7 @@ public SimpleEndpoint withResponseDeseria id, method, requestUrl, + pathParameters, queryParameters, headers, body, diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleJsonEndpoint.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleJsonEndpoint.java index c97a03675..6d480b2fe 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleJsonEndpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/SimpleJsonEndpoint.java @@ -34,11 +34,13 @@ public SimpleJsonEndpoint( Function method, Function requestUrl, Function> queryParameters, + Map> pathParameters, + Function> queryParameters, Function> headers, boolean hasRequestBody, JsonpDeserializer responseParser ) { - super(id, method, requestUrl, queryParameters, headers, hasRequestBody, responseParser); + super(id, method, requestUrl, pathParameters, queryParameters, headers, hasRequestBody, responseParser); } } diff --git a/java-client/src/main/java/co/elastic/clients/transport/instrumentation/Instrumentation.java b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/Instrumentation.java new file mode 100644 index 000000000..f4eca1ab0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/Instrumentation.java @@ -0,0 +1,79 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.transport.instrumentation; + +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.http.TransportHttpClient; + +/** + * Instrumentation for an Elasticsearch client. It allows creating a {@link Instrumentation.Context} for each request, + * with callbacks for the various stages of request and response processing. + */ +public interface Instrumentation { + + /** + * Create a context for a given request and the corresponding endpoint. + */ + Context newContext(TRequest request, Endpoint endpoint); + + /** + * A context with lifecycle callbacks for the various stages of request and response processing. Must be {@link #close()}d. + */ + interface Context extends AutoCloseable { + + /** + * Sets this context (or the underlying abstraction) as the current thread's scope, so that neste call can + * nest child contexts. + */ + ThreadScope makeCurrent(); + + /** + * Called once the initial API request has been serialized and the http request has been prepared. + */ + void beforeSendingHttpRequest(TransportHttpClient.Request httpRequest, TransportOptions options); + + /** + * Called after the http response has been received, and before analyzing it. + */ + void afterReceivingHttpResponse(TransportHttpClient.Response httpResponse); + + /** + * Called after the http response has been deserialized + */ + void afterDecodingApiResponse(TResponse apiResponse); + + /** + * Called when any stage of request processing caused a failure. + */ + void recordException(Throwable thr); + + @Override + void close(); + } + + /** + * A thread scope. Closing it will detach the scope from the current thread. + */ + interface ThreadScope extends AutoCloseable { + @Override + void close(); + } +} diff --git a/java-client/src/main/java/co/elastic/clients/transport/instrumentation/NoopInstrumentation.java b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/NoopInstrumentation.java new file mode 100644 index 000000000..c3b5a2b6d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/NoopInstrumentation.java @@ -0,0 +1,70 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.transport.instrumentation; + +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.http.TransportHttpClient; + +/** + * A no-operation instrumentation. Used when no instrumentation has been set. It can also be used to + * bypass OpenTelemetry automatic discovery. + */ +public class NoopInstrumentation implements Instrumentation { + + public static NoopInstrumentation INSTANCE = new NoopInstrumentation(); + + private NoopInstrumentation() {} + + @Override + public Context newContext(TRequest request, Endpoint endpoint) { + return CONTEXT; + } + + private static final NoopContext CONTEXT = new NoopContext(); + private static final NoopScope SCOPE = new NoopScope(); + + private static class NoopContext implements Instrumentation.Context { + @Override + public ThreadScope makeCurrent() { + return SCOPE; + } + + @Override + public void beforeSendingHttpRequest(TransportHttpClient.Request httpRequest, TransportOptions options) {} + + @Override + public void afterReceivingHttpResponse(TransportHttpClient.Response httpResponse) {} + + @Override + public void afterDecodingApiResponse(TResponse apiResponse) {} + + @Override + public void recordException(Throwable thr) {} + + @Override + public void close() {} + } + + private static class NoopScope implements Instrumentation.ThreadScope { + @Override + public void close() {} + } +} diff --git a/java-client/src/main/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearch.java b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearch.java new file mode 100644 index 000000000..03d6dcfc6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearch.java @@ -0,0 +1,367 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.transport.instrumentation; + +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.Version; +import co.elastic.clients.transport.http.TransportHttpClient; +import io.opentelemetry.api.GlobalOpenTelemetry; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.context.Scope; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import javax.annotation.Nullable; +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URLEncoder; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Locale; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; + +/** + * An OpenTelemetry instrumentation for the Elasticsearch client. + * + * @see OpenTelemetry semantic conventions + * for Elasticsearch + */ + +public class OpenTelemetryForElasticsearch implements Instrumentation { + + private static final Set SEARCH_ENDPOINTS = new HashSet<>(Arrays.asList( + "render_search_template", + "terms_enum", + "msearch_template", + "eql.search", + "msearch", + "search_template", + "async_search.submit", + "search" + )); + + private static final AttributeKey ATTR_DB_SYSTEM = AttributeKey.stringKey("db.system"); + private static final AttributeKey ATTR_DB_OPERATION = AttributeKey.stringKey("db.operation"); + private static final AttributeKey ATTR_DB_STATEMENT = AttributeKey.stringKey("db.statement"); + // Use Semantic Convention keys once opentelemetry-semconv is stable + //private static final AttributeKey ATTR_DB_SYSTEM = SemanticAttributes.DB_SYSTEM; + //private static final AttributeKey ATTR_DB_OPERATION = SemanticAttributes.DB_OPERATION; + //private static final AttributeKey ATTR_DB_STATEMENT = SemanticAttributes.DB_STATEMENT; + + private static final AttributeKey ATTR_HTTP_REQUEST_METHOD = AttributeKey.stringKey("http.request.method"); + private static final AttributeKey ATTR_URL_FULL = AttributeKey.stringKey("url.full"); + private static final AttributeKey ATTR_SERVER_ADDRESS = AttributeKey.stringKey("server.address"); + private static final AttributeKey ATTR_SERVER_PORT = AttributeKey.longKey("server.port"); + + // Caching attributes keys to avoid unnecessary memory allocation + private static final Map> attributesKeyCache = new ConcurrentHashMap<>(); + + private static final String PATH_PART_PREFIX = "db.elasticsearch.path_parts."; + + // these reflect the config options in the OTel Java agent + private static final boolean INSTRUMENTATION_ENABLED = Boolean.parseBoolean( + ConfigUtil.getConfigOption("otel.instrumentation.elasticsearch.enabled", "true") + ); + + private static final boolean CAPTURE_SEARCH_BODY = Boolean.parseBoolean( + ConfigUtil.getConfigOption("otel.instrumentation.elasticsearch.capture-search-query", "false") + ); + + private static final Log logger = LogFactory.getLog(OpenTelemetryForElasticsearch.class); + + private final Tracer tracer; + private final boolean captureSearchBody; + + /** + * Creates an OpenTelemetry instrumentation based on systems settings: + *

    + *
  • {@code otel.instrumentation.elasticsearch.enabled} system property or + * {@code OTEL_INSTRUMENTATION_ELASTICSEARCH_ENABLED} environnement variable: if {@code true} instrumentation is enabled. + * Defaults to {@code true}. + *
  • + *
  • {@code otel.instrumentation.elasticsearch.capture-search-query} system property or + * {@code OTEL_INSTRUMENTATION_ELASTICSEARCH_CAPTURE_SEARCH_QUERY} environment variable: if {@code true} the request body + * of search requests will be captured. Defaults to {@code false}. + *
  • + *
+ * + * @return an instrumentation, or {@code null} if instrumentation is disabled or no OTel agent has been configured. + */ + public static @Nullable OpenTelemetryForElasticsearch getDefault() { + + // See https://opentelemetry.io/docs/instrumentation/java/automatic/agent-config/#configuring-the-agent + boolean enabled = Boolean.parseBoolean( + ConfigUtil.getConfigOption("otel.instrumentation.elasticsearch.enabled", "true") + ); + + if (!enabled) { + return null; + } + + OpenTelemetry openTelemetry = GlobalOpenTelemetry.get(); + if (openTelemetry == OpenTelemetry.noop()) { + // Do not waste time with noop impls that do have a cost, even if marginal + return null; + } + + boolean captureSearchBody = Boolean.parseBoolean( + ConfigUtil.getConfigOption("otel.instrumentation.elasticsearch.capture-search-query", "false") + ); + + return new OpenTelemetryForElasticsearch(openTelemetry, captureSearchBody); + } + + /** + * Creates an OpenTelemetry instrumentation. + * + * @param openTelemetry the OpenTelemetry implementation + * @param captureSearchBody should search requests bodies be captured? + */ + public OpenTelemetryForElasticsearch(OpenTelemetry openTelemetry, boolean captureSearchBody) { + Version version = Version.VERSION; + + this.tracer = openTelemetry.tracerBuilder("elasticsearch-api") + .setInstrumentationVersion(version == null ? "unknown" : version.toString()) + .setSchemaUrl("https://opentelemetry.io/schemas/1.21.0") + .build(); + + this.captureSearchBody = captureSearchBody; + } + + @Override + public Context newContext(TRequest request, Endpoint endpoint) { + return new OTelContext(request, endpoint); + } + + private boolean shouldCaptureBody(Span span, String endpointId) { + return captureSearchBody && span.isRecording() && SEARCH_ENDPOINTS.contains(endpointId); + } + + //--------------------------------------------------------------------------------------------- + + class OTelContext implements Instrumentation.Context { + + private final Span span; + private String endpointId; + private String pathAndQuery = null; + + OTelContext(TRequest request, Endpoint endpoint) { + + // calling the instrumentation class should never throw an exception + Span span; + String endpointId; + try { + endpointId = endpoint.id(); + if (endpointId.startsWith("es/")) { + endpointId = endpointId.substring(3); + } + this.endpointId = endpointId; + + span = tracer.spanBuilder(endpointId).setSpanKind(SpanKind.CLIENT).startSpan(); + if (span.isRecording()) { + span.setAttribute(ATTR_DB_SYSTEM, "elasticsearch"); + span.setAttribute(ATTR_DB_OPERATION, endpointId); + span.setAttribute(ATTR_HTTP_REQUEST_METHOD, endpoint.method(request)); + + for (Map.Entry pathParamEntry : endpoint.pathParameters(request).entrySet()) { + AttributeKey attributeKey = attributesKeyCache.computeIfAbsent(pathParamEntry.getKey(), + (key) -> AttributeKey.stringKey(PATH_PART_PREFIX + key)); + span.setAttribute(attributeKey, pathParamEntry.getValue()); + } + } + } catch (RuntimeException e) { + logger.debug("Failed creating an OpenTelemetry span for endpoint '" + endpoint.id() + "'.", e); + span = Span.getInvalid(); + } + + this.span = span; + } + + @Override + public void beforeSendingHttpRequest(TransportHttpClient.Request httpRequest, TransportOptions options) { + // calling the instrumentation class should never throw an exception + try { + + this.pathAndQuery = pathAndQuery(httpRequest, options); + + span.setAttribute(ATTR_HTTP_REQUEST_METHOD, httpRequest.method()); + Iterable body = httpRequest.body(); + if (body != null && shouldCaptureBody(span, endpointId)) { + StringBuilder sb = new StringBuilder(); + for (ByteBuffer buf: body) { + buf.mark(); + sb.append(StandardCharsets.UTF_8.decode(buf)); + buf.reset(); + } + span.setAttribute(ATTR_DB_STATEMENT, sb.toString()); + } + } catch (Exception e) { + logger.debug("Failed reading HTTP body content for an OpenTelemetry span.", e); + } + } + + @Override + public void afterReceivingHttpResponse(TransportHttpClient.Response httpResponse) { + // calling the instrumentation class should never throw an exception + try { + if (span.isRecording()) { + URI uri = httpResponse.node().uri(); + String fullUrl = uri.resolve(pathAndQuery).toString(); + + span.setAttribute(ATTR_URL_FULL, fullUrl); + span.setAttribute(ATTR_SERVER_PORT, uri.getPort()); + span.setAttribute(ATTR_SERVER_ADDRESS, uri.getHost()); + } + } catch (RuntimeException e) { + logger.debug("Failed capturing response information for the OpenTelemetry span.", e); + // ignore + } + } + + @Override + public void afterDecodingApiResponse(TResponse apiResponse) { + // Nothing + } + + @Override + public void recordException(Throwable throwable) { + span.setStatus(StatusCode.ERROR, throwable.getMessage()); + span.recordException(throwable); + } + + @Override + public void close() { + span.end(); + } + + @Override + public ThreadScope makeCurrent() { + return new OTelScope(this.span); + } + } + + //--------------------------------------------------------------------------------------------- + + class OTelScope implements Instrumentation.ThreadScope { + + private final Scope scope; + + OTelScope(Span span) { + this.scope = span.makeCurrent(); + } + + @Override + public void close() { + this.scope.close(); + } + } + + //--------------------------------------------------------------------------------------------- + + private String pathAndQuery(TransportHttpClient.Request request, TransportOptions options) { + + String path = request.path(); + path = path.length() > 0 && path.charAt(0) == '/' ? path.substring(1) : path; + + Map requestParams = request.queryParams(); + Map optionsParams = options == null ? Collections.emptyMap() : options.queryParameters(); + + Map allParams; + if (requestParams.isEmpty()) { + allParams = optionsParams; + } else if (optionsParams.isEmpty()) { + allParams = requestParams; + } else { + allParams = new HashMap<>(requestParams); + allParams.putAll(optionsParams); + } + + if (allParams.isEmpty()) { + return path; + } + + StringBuilder sb = new StringBuilder(path); + char sep = '?'; + for (Map.Entry e: allParams.entrySet()) { + sb.append(sep); + sep = '&'; + try { + sb.append(URLEncoder.encode(e.getKey(), "UTF-8")); + sb.append('='); + sb.append(URLEncoder.encode(e.getValue(), "UTF-8")); + } catch (UnsupportedEncodingException ex) { + // Should not happen + throw new RuntimeException(ex); + } + } + return sb.toString(); + } + + /** + * Borrowed from io.opentelemetry.api.internal.ConfigUtil + */ + private static final class ConfigUtil { + /** + * Find a configuration option first as a JVM system property, and second as an environment variable + */ + private static String getConfigOption(String key, String defaultValue) { + String normalizedKey = normalizePropertyKey(key); + String systemProperty = System.getProperties().entrySet().stream() + .filter(entry -> normalizedKey.equals(normalizePropertyKey(entry.getKey().toString()))) + .map(entry -> entry.getValue().toString()) + .findFirst() + .orElse(null); + if (systemProperty != null) { + return systemProperty; + } + return System.getenv().entrySet().stream() + .filter(entry -> normalizedKey.equals(normalizeEnvironmentVariableKey(entry.getKey()))) + .map(Map.Entry::getValue) + .findFirst() + .orElse(defaultValue); + } + + /** + * Normalize an environment variable key by converting to lower case and replacing "_" with ".". + */ + private static String normalizeEnvironmentVariableKey(String key) { + return key.toLowerCase(Locale.ROOT).replace("_", "."); + } + + /** + * Normalize a property key by converting to lower case and replacing "-" with ".". + */ + private static String normalizePropertyKey(String key) { + return key.toLowerCase(Locale.ROOT).replace("-", "."); + } + } +} diff --git a/java-client/src/main/java/co/elastic/clients/transport/rest_client/RestClientTransport.java b/java-client/src/main/java/co/elastic/clients/transport/rest_client/RestClientTransport.java index 563f59cd8..dbadfbe1a 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/rest_client/RestClientTransport.java +++ b/java-client/src/main/java/co/elastic/clients/transport/rest_client/RestClientTransport.java @@ -21,9 +21,9 @@ import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.transport.ElasticsearchTransportBase; +import co.elastic.clients.transport.instrumentation.Instrumentation; import org.elasticsearch.client.RestClient; - public class RestClientTransport extends ElasticsearchTransportBase { private final RestClient restClient; @@ -33,7 +33,12 @@ public RestClientTransport(RestClient restClient, JsonpMapper jsonpMapper) { } public RestClientTransport(RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options) { - super(new RestClientHttpClient(restClient), options, jsonpMapper); + super(new RestClientHttpClient(restClient), options, jsonpMapper, null); + this.restClient = restClient; + } + + public RestClientTransport(RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options, Instrumentation instrumentation) { + super(new RestClientHttpClient(restClient), options, jsonpMapper, instrumentation); this.restClient = restClient; } diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooOptRequest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooOptRequest.java index bfad18282..7a4c4827a 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooOptRequest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooOptRequest.java @@ -264,6 +264,7 @@ public FooOptRequest build() { r -> "/foo", SimpleEndpoint.emptyMap(), SimpleEndpoint.emptyMap(), + SimpleEndpoint.emptyMap(), true, FooResponse.PARSER ) { diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooRequest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooRequest.java index 4e1d894b1..6c802c66a 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooRequest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/api/FooRequest.java @@ -304,6 +304,7 @@ public static JsonpDeserializer parser() { r -> "/foo", SimpleEndpoint.emptyMap(), SimpleEndpoint.emptyMap(), + SimpleEndpoint.emptyMap(), true, FooResponse.PARSER ); diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/generics/GenericClass.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/generics/GenericClass.java index 0ee0418b3..85d4de0c6 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/generics/GenericClass.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/experiments/generics/GenericClass.java @@ -107,12 +107,13 @@ public static Endpoint, ErrorResponse "genclass", // Request method request -> "GET", - // Request path request -> "/genclass", - + // Path parameters + SimpleEndpoint.emptyMap(), // Request parameters SimpleEndpoint.emptyMap(), + // Headers SimpleEndpoint.emptyMap(), true, GenericClass.parser(genParamDeserializer) diff --git a/java-client/src/test/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearchTest.java b/java-client/src/test/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearchTest.java new file mode 100644 index 000000000..f9435165d --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/transport/instrumentation/OpenTelemetryForElasticsearchTest.java @@ -0,0 +1,275 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.transport.instrumentation; + +import co.elastic.clients.elasticsearch.ElasticsearchAsyncClient; +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch.core.SearchRequest; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.transport.rest_client.RestClientTransport; +import com.sun.net.httpserver.HttpServer; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.common.CompletableResultCode; +import io.opentelemetry.sdk.resources.Resource; +import io.opentelemetry.sdk.trace.SdkTracerProvider; +import io.opentelemetry.sdk.trace.data.SpanData; +import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor; +import io.opentelemetry.sdk.trace.export.SpanExporter; +import io.opentelemetry.semconv.resource.attributes.ResourceAttributes; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; +import org.apache.http.HttpHost; +import org.elasticsearch.client.RestClient; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import java.io.IOException; +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class OpenTelemetryForElasticsearchTest { + private static final String INDEX = "test-index"; + private static final String DOC_ID = "1234567"; + private static final String DOC_RESPONSE = "{\n" + + " \"_index\": \"" + INDEX + "\",\n" + + " \"_id\": \"" + DOC_ID + "\",\n" + + " \"_version\": 1,\n" + + " \"_seq_no\": 0,\n" + + " \"_primary_term\": 1,\n" + + " \"found\": true,\n" + + " \"_source\": {\n" + + " \"@timestamp\": \"2099-11-15T14:12:12\",\n" + + " \"message\": \"GET /search HTTP/1.1 200 1070000\"\n" + + " }\n" + + "}"; + private static final String SEARCH_RESPONSE = "{\n" + + " \"took\": 5,\n" + + " \"timed_out\": false,\n" + + " \"_shards\": {\n" + + " \"total\": 1,\n" + + " \"successful\": 1,\n" + + " \"skipped\": 0,\n" + + " \"failed\": 0\n" + + " },\n" + + " \"hits\": {\n" + + " \"total\": {\n" + + " \"value\": 1,\n" + + " \"relation\": \"eq\"\n" + + " },\n" + + " \"max_score\": 1.3862942,\n" + + " \"hits\": [\n" + + " {\n" + + " \"_index\": \"" + INDEX + "\",\n" + + " \"_id\": \"" + DOC_ID + "\",\n" + + " \"_score\": 1.3862942,\n" + + " \"_source\": {\n" + + " \"@timestamp\": \"2099-11-15T14:12:12\",\n" + + " \"message\": \"GET /search HTTP/1.1 200 1070000\"\n" + + " }\n" + + " }\n" + + " ]\n" + + " }\n" + + "}"; + public static final String DB_OPERATION = "db.operation"; + public static final String URL_FULL = "url.full"; + public static final String SERVER_ADDRESS = "server.address"; + public static final String SERVER_PORT = "server.port"; + // has been renamed in 1.21 from http.method - see https://github.com/open-telemetry/semantic-conventions/blob/main/schemas/1.21.0 + public static final String HTTP_REQUEST_METHOD = "http.request.method"; + private static HttpServer httpServer; + private static MockSpanExporter spanExporter; + private static OpenTelemetry openTelemetry; + private static RestClient restClient; + private static RestClientTransport transport; + private static ElasticsearchClient client; + private static ElasticsearchAsyncClient asyncClient; + + @BeforeAll + public static void setup() throws IOException { + setupOTel(); + setupHttpServer(); + setupClient(); + } + + @AfterAll + public static void cleanUp() throws IOException { + httpServer.stop(0); + transport.close(); + } + + private static void setupClient() { + restClient = + RestClient.builder(new HttpHost(httpServer.getAddress().getAddress(), httpServer.getAddress().getPort())).build(); + + Instrumentation instrumentation = new OpenTelemetryForElasticsearch(openTelemetry, false); + + transport = new RestClientTransport(restClient, new JacksonJsonpMapper(), null, instrumentation); + + client = new ElasticsearchClient(transport); + asyncClient = new ElasticsearchAsyncClient(transport); + } + + private static void setupHttpServer() throws IOException { + httpServer = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 0); + + // handler for GetRequest + httpServer.createContext("/" + INDEX + "/_doc/" + DOC_ID, exchange -> { + exchange.getResponseHeaders().set("X-Elastic-Product", "Elasticsearch"); + exchange.getResponseHeaders().set("Content-Type", "application/json"); + exchange.sendResponseHeaders(200, 0); + exchange.getResponseBody().write(DOC_RESPONSE.getBytes()); + exchange.close(); + }); + + // handler for SearchRequest + httpServer.createContext("/" + INDEX + "/_search", exchange -> { + exchange.getResponseHeaders().set("X-Elastic-Product", "Elasticsearch"); + exchange.getResponseHeaders().set("Content-Type", "application/json"); + exchange.sendResponseHeaders(200, 0); + exchange.getResponseBody().write(SEARCH_RESPONSE.getBytes()); + exchange.close(); + }); + + httpServer.start(); + } + + private static void setupOTel() { + Resource resource = Resource.getDefault() + .merge(Resource.create(Attributes.of(ResourceAttributes.SERVICE_NAME, "es-api-test"))); + + spanExporter = new MockSpanExporter(); + + SdkTracerProvider sdkTracerProvider = SdkTracerProvider.builder() + .addSpanProcessor(SimpleSpanProcessor.create(spanExporter)) + .setResource(resource) + .build(); + + openTelemetry = OpenTelemetrySdk.builder() + .setTracerProvider(sdkTracerProvider) + .build(); + } + + @BeforeEach + public void reset() { + spanExporter.reset(); + } + + @Test + public void testGetRequest() throws IOException, InterruptedException { + client.get(r -> r.index(INDEX).id(DOC_ID).refresh(true), Object.class); + Assertions.assertEquals(spanExporter.getSpans().size(), 1); + SpanData span = spanExporter.getSpans().get(0); + Assertions.assertEquals("get", span.getName()); + Assertions.assertEquals("get", span.getAttributes().get(AttributeKey.stringKey(DB_OPERATION))); + Assertions.assertEquals("GET", span.getAttributes().get(AttributeKey.stringKey(HTTP_REQUEST_METHOD))); + Assertions.assertEquals("elasticsearch", span.getAttributes().get(SemanticAttributes.DB_SYSTEM)); + + String url = "http://" + httpServer.getAddress().getHostName() + ":" + httpServer.getAddress().getPort() + + "/" + INDEX + "/_doc/" + DOC_ID + "?refresh=true"; + Assertions.assertEquals(url, span.getAttributes().get(AttributeKey.stringKey(URL_FULL))); + Assertions.assertEquals(httpServer.getAddress().getHostName(), span.getAttributes().get(AttributeKey.stringKey(SERVER_ADDRESS))); + Assertions.assertEquals(httpServer.getAddress().getPort(), span.getAttributes().get(AttributeKey.longKey(SERVER_PORT))); + + // Path parts + Assertions.assertEquals(DOC_ID, span.getAttributes().get(AttributeKey.stringKey("db.elasticsearch.path_parts.id"))); + } + + @Test + public void testSearchRequest() throws IOException, InterruptedException { + // A client that will capture requests + ElasticsearchClient client = new ElasticsearchClient(new RestClientTransport( + restClient, this.client._jsonpMapper(), null, new OpenTelemetryForElasticsearch(openTelemetry, true)) + ); + SearchRequest req = SearchRequest.of(r -> r.index(INDEX).query(q -> q.term(t -> t.field("x").value("y")))); + String queryAsString = JsonpUtils.toJsonString(req, client._jsonpMapper()); + client.search(req, Object.class); + Assertions.assertEquals(spanExporter.getSpans().size(), 1); + SpanData span = spanExporter.getSpans().get(0); + Assertions.assertEquals("search", span.getName()); + Assertions.assertEquals(queryAsString, span.getAttributes().get(SemanticAttributes.DB_STATEMENT)); + } + + @Test + public void testAsyncSearchRequest() throws IOException, InterruptedException, TimeoutException, ExecutionException { + Query query = Query.of(q -> q.term(t -> t.field("x").value("y"))); + Future future = asyncClient.search(r -> r.index(INDEX).query(query), Object.class); + future.get(2, TimeUnit.SECONDS); + spanExporter.awaitNumSpans(1, 2000); + Assertions.assertEquals(spanExporter.getSpans().size(), 1); + SpanData span = spanExporter.getSpans().get(0); + Assertions.assertEquals("search", span.getName()); + + // We're not capturing bodies by default + Assertions.assertNull(span.getAttributes().get(SemanticAttributes.DB_STATEMENT)); + } + + private static class MockSpanExporter implements SpanExporter { + + private final List spans = new ArrayList(); + + @Override + public CompletableResultCode export(Collection spans) { + this.spans.addAll(spans); + synchronized (this) { + notifyAll(); + } + return CompletableResultCode.ofSuccess(); + } + + @Override + public CompletableResultCode flush() { + return CompletableResultCode.ofSuccess(); + } + + @Override + public CompletableResultCode shutdown() { + spans.clear(); + return CompletableResultCode.ofSuccess(); + } + + public List getSpans() { + return spans; + } + + public void reset() { + spans.clear(); + } + + public synchronized void awaitNumSpans(int num, long timeoutMillis) throws InterruptedException { + while(spans.size() < num){ + wait(timeoutMillis); + } + } + } +} From a898492f4941c8647e3400fe87dbdb035cb61b48 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 23 Aug 2023 13:43:05 +0200 Subject: [PATCH 6/6] Bump version --- config/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/version.txt b/config/version.txt index 7f6758ef9..db3905bf8 100644 --- a/config/version.txt +++ b/config/version.txt @@ -1 +1 @@ -8.10.0 +8.11.0