diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java index 776f9a188c..0d1be7721b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java @@ -45,48 +45,123 @@ */ @JsonpDeserializable public enum CommonStatsFlag implements JsonEnum { + /** + * Return all statistics. + */ All("_all"), + /** + * Size of the index in byte units. + */ Store("store"), + /** + * Indexing statistics. + */ Indexing("indexing"), + /** + * Get statistics, including missing stats. + */ Get("get"), + /** + * Search statistics including suggest statistics. You can include statistics + * for custom groups by adding an extra groups parameter (search + * operations can be associated with one or more groups). The + * groups parameter accepts a comma-separated list of group names. + * Use _all to return statistics for all groups. + */ Search("search"), + /** + * Merge statistics. + */ Merge("merge"), + /** + * Flush statistics. + */ Flush("flush"), + /** + * Refresh statistics. + */ Refresh("refresh"), + /** + * Query cache statistics. + */ QueryCache("query_cache"), + /** + * Fielddata statistics. + */ Fielddata("fielddata"), + /** + * Number of documents and deleted docs not yet merged out. Index refreshes can + * affect this statistic. + */ Docs("docs"), + /** + * Index warming statistics. + */ Warmer("warmer"), + /** + * Completion suggester statistics. + */ Completion("completion"), + /** + * Memory use of all open segments. If the + * include_segment_file_sizes parameter is true, this + * metric includes the aggregated disk usage of each Lucene index file. + */ Segments("segments"), + /** + * Translog statistics. + */ Translog("translog"), + /** + * Shard request cache statistics. + */ RequestCache("request_cache"), + /** + * Recovery statistics. + */ Recovery("recovery"), + /** + * Bulk operations statistics. + */ Bulk("bulk"), + /** + * Shard statistics, including the total number of shards. + */ ShardStats("shard_stats"), + /** + * Mapping statistics, including the total count and estimated overhead. + */ Mappings("mappings"), + /** + * Total number of dense vectors indexed. Index refreshes can affect this + * statistic. + */ DenseVector("dense_vector"), + /** + * Total number of sparse vectors indexed. Index refreshes can affect this + * statistic. + */ SparseVector("sparse_vector"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java index 8bebef17c6..d5ef7198a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java @@ -45,14 +45,29 @@ */ @JsonpDeserializable public enum ThreadType implements JsonEnum { + /** + * Threads that consume the most CPU time. + */ Cpu("cpu"), + /** + * Threads that have been in a waiting state the longest. + */ Wait("wait"), + /** + * Threads that have been blocked the longest. + */ Block("block"), + /** + * Threads that consume the most GPU time. + */ Gpu("gpu"), + /** + * Threads that allocate the most memory. + */ Mem("mem"), ; 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 5124f365e3..165aa82337 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 @@ -70,6 +70,10 @@ * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @see API * specification 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 2539fa93d7..eb2d8d4423 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 @@ -278,6 +278,10 @@ public CompletableFuture componentTemplates() { * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @see Documentation @@ -301,6 +305,10 @@ public CompletableFuture count(CountRequest request) { * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @param fn * a function that initializes a builder to create the @@ -325,6 +333,10 @@ public final CompletableFuture count( * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @see Documentation @@ -523,6 +535,17 @@ public CompletableFuture help() { * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. @@ -560,6 +583,17 @@ public CompletableFuture indices(IndicesRequest request) { * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. @@ -598,6 +632,17 @@ public final CompletableFuture indices( * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. 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 e342ca5c89..3a767efde9 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 @@ -281,6 +281,10 @@ public ComponentTemplatesResponse componentTemplates() throws IOException, Elast * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @see Documentation @@ -304,6 +308,10 @@ public CountResponse count(CountRequest request) throws IOException, Elasticsear * 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 count API. + *

+ * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @param fn * a function that initializes a builder to create the @@ -328,6 +336,10 @@ public final CountResponse count(Function + * NOTE: Starting in Elasticsearch 9.3.0, this endpoint also supports the + * POST method. This is primarily intended for project routing in + * serverless environments. * * @see Documentation @@ -526,6 +538,17 @@ public TextResponse help() throws IOException, ElasticsearchException { * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. @@ -563,6 +586,17 @@ public IndicesResponse indices(IndicesRequest request) throws IOException, Elast * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. @@ -601,6 +635,17 @@ public final IndicesResponse indices(Function

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. 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 282e782372..34f5663ea8 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 @@ -83,6 +83,17 @@ * include hidden nested documents. To get an accurate count of Elasticsearch * documents, use the cat count or count APIs. *

+ * NOTE: Storage metrics reported by this API reflect the post-compression size + * of the indices on disk. Because these values are calculated after + * Elasticsearch compresses the data and processes deletions, they are typically + * significantly smaller than the raw, uncompressed data volume ingested. + *

+ * IMPORTANT: For Elastic Cloud Serverless, ingest billing is based on the raw, + * uncompressed data volume, not the post-compression metrics reported here. To + * learn more, refer to Elasticsearch + * billing dimensions. + *

* 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 an index endpoint. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java index 80c6b5a0ff..6e414b3f72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java @@ -46,22 +46,54 @@ */ @JsonpDeserializable public enum ClusterStateMetric implements JsonEnum { + /** + * Shows all metrics. + */ All("_all"), + /** + * Shows the cluster state version. + */ Version("version"), + /** + * Shows the elected master_node part of the response. + */ MasterNode("master_node"), + /** + * Shows the blocks part of the response. + */ Blocks("blocks"), + /** + * Shows the nodes part of the response. + */ Nodes("nodes"), + /** + * Shows the metadata part of the response. If you supply a + * comma-separated list of indices, the returned output will only contain + * metadata for these indices. + */ Metadata("metadata"), + /** + * Shows the routing_table part of the response. If you supply a + * comma-separated list of indices, the returned output will only contain the + * routing table for these indices. + */ RoutingTable("routing_table"), + /** + * Shows the routing_nodes part of the response. + */ RoutingNodes("routing_nodes"), + /** + * Shows the customs part of the response, which includes custom + * cluster state information. + */ Customs("customs"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java index 6fe24823d2..ea5ad24ae3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java @@ -197,8 +197,9 @@ public final Long primaryTerm() { } /** - * The result of the operation. Successful values are created, - * deleted, and updated. + * The result of the operation. Possible values are created, + * updated, deleted, noop, and + * not_found. *

* API name: {@code result} */ @@ -475,8 +476,9 @@ public final Builder primaryTerm(@Nullable Long value) { } /** - * The result of the operation. Successful values are created, - * deleted, and updated. + * The result of the operation. Possible values are created, + * updated, deleted, noop, and + * not_found. *

* API name: {@code result} */ 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 2d1582f40e..c5a60e6e29 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 @@ -11,7 +11,7 @@ '_global.bulk.OperationBase': '_global/bulk/types.ts#L99-L116', '_global.bulk.OperationContainer': '_global/bulk/types.ts#L157-L179', '_global.bulk.OperationType': '_global/bulk/types.ts#L92-L97', -'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L33-L256', +'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L33-L257', '_global.bulk.Response': '_global/bulk/BulkResponse.ts#L24-L45', '_global.bulk.ResponseItem': '_global/bulk/types.ts#L36-L83', '_global.bulk.UpdateAction': '_global/bulk/types.ts#L181-L216', @@ -21,19 +21,19 @@ '_global.clear_scroll.Response': '_global/clear_scroll/ClearScrollResponse.ts#L22-L43', '_global.close_point_in_time.Request': '_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L51', '_global.close_point_in_time.Response': '_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42', -'_global.count.Request': '_global/count/CountRequest.ts#L32-L175', +'_global.count.Request': '_global/count/CountRequest.ts#L32-L176', '_global.count.Response': '_global/count/CountResponse.ts#L23-L25', -'_global.create.Request': '_global/create/CreateRequest.ts#L33-L202', +'_global.create.Request': '_global/create/CreateRequest.ts#L33-L203', '_global.create.Response': '_global/create/CreateResponse.ts#L22-L25', '_global.delete.Request': '_global/delete/DeleteRequest.ts#L35-L148', '_global.delete.Response': '_global/delete/DeleteResponse.ts#L22-L36', -'_global.delete_by_query.Request': '_global/delete_by_query/DeleteByQueryRequest.ts#L38-L323', +'_global.delete_by_query.Request': '_global/delete_by_query/DeleteByQueryRequest.ts#L38-L325', '_global.delete_by_query.Response': '_global/delete_by_query/DeleteByQueryResponse.ts#L27-L93', '_global.delete_by_query_rethrottle.Request': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L56', '_global.delete_by_query_rethrottle.Response': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L25', '_global.delete_script.Request': '_global/delete_script/DeleteScriptRequest.ts#L24-L65', '_global.delete_script.Response': '_global/delete_script/DeleteScriptResponse.ts#L22-L25', -'_global.exists.Request': '_global/exists/DocumentExistsRequest.ts#L32-L138', +'_global.exists.Request': '_global/exists/DocumentExistsRequest.ts#L32-L139', '_global.exists_source.Request': '_global/exists_source/SourceExistsRequest.ts#L32-L115', '_global.explain.Explanation': '_global/explain/types.ts#L22-L26', '_global.explain.ExplanationDetail': '_global/explain/types.ts#L28-L32', @@ -90,7 +90,7 @@ '_global.health_report.SlmIndicatorDetails': '_global/health_report/types.ts#L181-L185', '_global.health_report.SlmIndicatorUnhealthyPolicies': '_global/health_report/types.ts#L187-L190', '_global.health_report.StagnatingBackingIndices': '_global/health_report/types.ts#L159-L163', -'_global.index.Request': '_global/index/IndexRequest.ts#L36-L278', +'_global.index.Request': '_global/index/IndexRequest.ts#L36-L279', '_global.index.Response': '_global/index/IndexResponse.ts#L22-L25', '_global.info.Request': '_global/info/RootNodeInfoRequest.ts#L23-L43', '_global.info.Response': '_global/info/RootNodeInfoResponse.ts#L23-L40', @@ -105,14 +105,14 @@ '_global.msearch.Request': '_global/msearch/MultiSearchRequest.ts#L32-L162', '_global.msearch.Response': '_global/msearch/MultiSearchResponse.ts#L25-L28', '_global.msearch.ResponseItem': '_global/msearch/types.ts#L60-L63', -'_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L130', +'_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L131', '_global.msearch_template.Response': '_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L33', '_global.msearch_template.TemplateConfig': '_global/msearch_template/types.ts#L29-L55', '_global.mtermvectors.Operation': '_global/mtermvectors/types.ts#L35-L94', '_global.mtermvectors.Request': '_global/mtermvectors/MultiTermVectorsRequest.ts#L32-L140', '_global.mtermvectors.Response': '_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24', '_global.mtermvectors.TermVectorsResult': '_global/mtermvectors/types.ts#L96-L104', -'_global.open_point_in_time.Request': '_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L150', +'_global.open_point_in_time.Request': '_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L151', '_global.open_point_in_time.Response': '_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29', '_global.ping.Request': '_global/ping/PingRequest.ts#L23-L41', '_global.put_script.Request': '_global/put_script/PutScriptRequest.ts#L25-L90', @@ -131,7 +131,7 @@ '_global.rank_eval.RankEvalMetricRecall': '_global/rank_eval/types.ts#L54-L58', '_global.rank_eval.RankEvalQuery': '_global/rank_eval/types.ts#L111-L117', '_global.rank_eval.RankEvalRequestItem': '_global/rank_eval/types.ts#L98-L109', -'_global.rank_eval.Request': '_global/rank_eval/RankEvalRequest.ts#L24-L85', +'_global.rank_eval.Request': '_global/rank_eval/RankEvalRequest.ts#L24-L86', '_global.rank_eval.Response': '_global/rank_eval/RankEvalResponse.ts#L26-L34', '_global.rank_eval.UnratedDocument': '_global/rank_eval/types.ts#L150-L153', '_global.reindex.Destination': '_global/reindex/types.ts#L38-L66', @@ -151,7 +151,7 @@ '_global.scripts_painless_execute.Response': '_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24', '_global.scroll.Request': '_global/scroll/ScrollRequest.ts#L24-L96', '_global.scroll.Response': '_global/scroll/ScrollResponse.ts#L22-L25', -'_global.search.Request': '_global/search/SearchRequest.ts#L55-L611', +'_global.search.Request': '_global/search/SearchRequest.ts#L55-L619', '_global.search.Response': '_global/search/SearchResponse.ts#L34-L37', '_global.search.ResponseBody': '_global/search/SearchResponse.ts#L39-L85', '_global.search._types.AggregationBreakdown': '_global/search/_types/profile.ts#L26-L39', @@ -210,7 +210,7 @@ '_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L67-L89', '_global.search._types.ScriptRescore': '_global/search/_types/rescoring.ts#L102-L104', '_global.search._types.SearchProfile': '_global/search/_types/profile.ts#L136-L140', -'_global.search._types.SearchRequestBody': '_global/search/_types/SearchRequestBody.ts#L42-L242', +'_global.search._types.SearchRequestBody': '_global/search/_types/SearchRequestBody.ts#L42-L248', '_global.search._types.ShardProfile': '_global/search/_types/profile.ts#L142-L152', '_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L436-L452', '_global.search._types.SourceConfig': '_global/search/_types/SourceFilter.ts#L50-L54', @@ -234,17 +234,17 @@ '_global.search_mvt.Response': '_global/search_mvt/SearchMvtResponse.ts#L22-L25', '_global.search_mvt._types.GridAggregationType': '_global/search_mvt/_types/GridType.ts#L30-L33', '_global.search_mvt._types.GridType': '_global/search_mvt/_types/GridType.ts#L20-L28', -'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L24-L100', +'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L24-L101', '_global.search_shards.Response': '_global/search_shards/SearchShardsResponse.ts#L34-L40', '_global.search_shards.SearchShardsNodeAttributes': '_global/search_shards/SearchShardsResponse.ts#L42-L60', '_global.search_shards.ShardStoreIndex': '_global/search_shards/SearchShardsResponse.ts#L62-L65', -'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L35-L172', +'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L35-L173', '_global.search_template.Response': '_global/search_template/SearchTemplateResponse.ts#L30-L48', '_global.terms_enum.Request': '_global/terms_enum/TermsEnumRequest.ts#L26-L95', '_global.terms_enum.Response': '_global/terms_enum/TermsEnumResponse.ts#L22-L32', '_global.termvectors.FieldStatistics': '_global/termvectors/types.ts#L28-L32', '_global.termvectors.Filter': '_global/termvectors/types.ts#L49-L86', -'_global.termvectors.Request': '_global/termvectors/TermVectorsRequest.ts#L34-L244', +'_global.termvectors.Request': '_global/termvectors/TermVectorsRequest.ts#L34-L246', '_global.termvectors.Response': '_global/termvectors/TermVectorsResponse.ts#L25-L34', '_global.termvectors.Term': '_global/termvectors/types.ts#L34-L40', '_global.termvectors.TermVector': '_global/termvectors/types.ts#L23-L26', @@ -252,7 +252,7 @@ '_global.update.Request': '_global/update/UpdateRequest.ts#L39-L199', '_global.update.Response': '_global/update/UpdateResponse.ts#L27-L30', '_global.update.UpdateWriteResponseBase': '_global/update/UpdateResponse.ts#L23-L25', -'_global.update_by_query.Request': '_global/update_by_query/UpdateByQueryRequest.ts#L38-L357', +'_global.update_by_query.Request': '_global/update_by_query/UpdateByQueryRequest.ts#L38-L359', '_global.update_by_query.Response': '_global/update_by_query/UpdateByQueryResponse.ts#L27-L76', '_global.update_by_query_rethrottle.Request': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L56', '_global.update_by_query_rethrottle.Response': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25', @@ -265,10 +265,10 @@ '_types.CartesianPoint': '_types/Geo.ts#L125-L128', '_types.ChunkRescorer': '_types/Retriever.ts#L205-L210', '_types.ClusterDetails': '_types/Stats.ts#L45-L52', -'_types.ClusterInfoTarget': '_types/common.ts#L398-L404', +'_types.ClusterInfoTarget': '_types/common.ts#L403-L409', '_types.ClusterSearchStatus': '_types/Stats.ts#L37-L43', '_types.ClusterStatistics': '_types/Stats.ts#L27-L35', -'_types.CommonStatsFlag': '_types/common.ts#L408-L431', +'_types.CommonStatsFlag': '_types/common.ts#L413-L467', '_types.CompletionStats': '_types/Stats.ts#L83-L93', '_types.Conflicts': '_types/common.ts#L178-L187', '_types.CoordsGeoBounds': '_types/Geo.ts#L153-L158', @@ -306,13 +306,13 @@ '_types.IBDistribution': '_types/Similarity.ts#L42-L45', '_types.IBLambda': '_types/Similarity.ts#L47-L50', '_types.IndexingStats': '_types/Stats.ts#L168-L186', -'_types.IndicesOptions': '_types/common.ts#L352-L379', +'_types.IndicesOptions': '_types/common.ts#L357-L384', '_types.IndicesResponseBase': '_types/Base.ts#L146-L148', -'_types.InlineGet': '_types/common.ts#L337-L350', +'_types.InlineGet': '_types/common.ts#L342-L355', '_types.InnerRetriever': '_types/Retriever.ts#L88-L92', -'_types.KnnQuery': '_types/Knn.ts#L73-L103', +'_types.KnnQuery': '_types/Knn.ts#L74-L104', '_types.KnnRetriever': '_types/Retriever.ts#L118-L143', -'_types.KnnSearch': '_types/Knn.ts#L35-L71', +'_types.KnnSearch': '_types/Knn.ts#L35-L72', '_types.LatLonGeoLocation': '_types/Geo.ts#L114-L123', '_types.Level': '_types/common.ts#L260-L264', '_types.LifecycleOperationMode': '_types/Lifecycle.ts#L20-L24', @@ -329,12 +329,12 @@ '_types.PinnedRetriever': '_types/Retriever.ts#L80-L86', '_types.PluginStats': '_types/Stats.ts#L207-L217', '_types.QueryCacheStats': '_types/Stats.ts#L219-L253', -'_types.QueryVectorBuilder': '_types/Knn.ts#L105-L108', +'_types.QueryVectorBuilder': '_types/Knn.ts#L106-L109', '_types.RRFRetriever': '_types/Retriever.ts#L164-L173', '_types.RRFRetrieverComponent': '_types/Retriever.ts#L145-L156', '_types.RRFRetrieverEntry': '_types/Retriever.ts#L158-L162', -'_types.RankBase': '_types/Rank.ts#L30-L30', -'_types.RankContainer': '_types/Rank.ts#L22-L28', +'_types.RankBase': '_types/Rank.ts#L33-L33', +'_types.RankContainer': '_types/Rank.ts#L22-L31', '_types.RecoveryStats': '_types/Stats.ts#L255-L260', '_types.Refresh': '_types/common.ts#L283-L290', '_types.RefreshStats': '_types/Stats.ts#L262-L269', @@ -348,7 +348,7 @@ '_types.Retries': '_types/Retries.ts#L22-L31', '_types.RetrieverBase': '_types/Retriever.ts#L56-L63', '_types.RetrieverContainer': '_types/Retriever.ts#L29-L54', -'_types.RrfRank': '_types/Rank.ts#L32-L37', +'_types.RrfRank': '_types/Rank.ts#L35-L40', '_types.RuleRetriever': '_types/Retriever.ts#L194-L203', '_types.ScoreNormalizer': '_types/Retriever.ts#L94-L98', '_types.ScoreSort': '_types/sort.ts#L54-L56', @@ -367,8 +367,8 @@ '_types.ShardStatistics': '_types/Stats.ts#L54-L69', '_types.ShardsOperationResponseBase': '_types/Base.ts#L150-L153', '_types.SlicedScroll': '_types/SlicedScroll.ts#L23-L27', -'_types.Slices': '_types/common.ts#L381-L386', -'_types.SlicesCalculation': '_types/common.ts#L388-L396', +'_types.Slices': '_types/common.ts#L386-L391', +'_types.SlicesCalculation': '_types/common.ts#L393-L401', '_types.SortMode': '_types/sort.ts#L108-L117', '_types.SortOptions': '_types/sort.ts#L86-L96', '_types.SortOrder': '_types/sort.ts#L119-L128', @@ -378,9 +378,9 @@ '_types.StoredScript': '_types/Scripting.ts#L51-L63', '_types.SuggestMode': '_types/common.ts#L299-L312', '_types.TaskFailure': '_types/Errors.ts#L71-L76', -'_types.TextEmbedding': '_types/Knn.ts#L110-L119', +'_types.TextEmbedding': '_types/Knn.ts#L111-L120', '_types.TextSimilarityReranker': '_types/Retriever.ts#L175-L192', -'_types.ThreadType': '_types/common.ts#L314-L320', +'_types.ThreadType': '_types/common.ts#L314-L325', '_types.TimeUnit': '_types/Time.ts#L70-L78', '_types.TokenPruningConfig': '_types/TokenPruningConfig.ts#L22-L38', '_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L160-L163', @@ -388,9 +388,9 @@ '_types.TransformContainer': '_types/Transform.ts#L28-L35', '_types.TranslogStats': '_types/Stats.ts#L427-L435', '_types.VersionType': '_types/common.ts#L102-L117', -'_types.WaitForActiveShardOptions': '_types/common.ts#L322-L326', +'_types.WaitForActiveShardOptions': '_types/common.ts#L327-L331', '_types.WaitForActiveShards': '_types/common.ts#L137-L138', -'_types.WaitForEvents': '_types/common.ts#L328-L335', +'_types.WaitForEvents': '_types/common.ts#L333-L340', '_types.WarmerStats': '_types/Stats.ts#L437-L442', '_types.WktGeoBounds': '_types/Geo.ts#L149-L151', '_types.WriteResponseBase': '_types/Base.ts#L37-L72', @@ -987,8 +987,8 @@ '_types.query_dsl.GeoShapeFieldQuery': '_types/query_dsl/geo.ts#L127-L138', '_types.query_dsl.GeoShapeQuery': '_types/query_dsl/geo.ts#L140-L156', '_types.query_dsl.GeoValidationMethod': '_types/query_dsl/geo.ts#L172-L182', -'_types.query_dsl.HasChildQuery': '_types/query_dsl/joining.ts#L41-L79', -'_types.query_dsl.HasParentQuery': '_types/query_dsl/joining.ts#L81-L110', +'_types.query_dsl.HasChildQuery': '_types/query_dsl/joining.ts#L41-L80', +'_types.query_dsl.HasParentQuery': '_types/query_dsl/joining.ts#L82-L112', '_types.query_dsl.IdsQuery': '_types/query_dsl/term.ts#L88-L96', '_types.query_dsl.IntervalsAllOf': '_types/query_dsl/fulltext.ts#L50-L70', '_types.query_dsl.IntervalsAnyOf': '_types/query_dsl/fulltext.ts#L72-L81', @@ -1012,11 +1012,11 @@ '_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L87-L172', '_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L523-L609', '_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L370-L387', -'_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L112-L139', +'_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L114-L142', '_types.query_dsl.NumberRangeQuery': '_types/query_dsl/term.ts#L168-L168', '_types.query_dsl.NumericDecayFunction': '_types/query_dsl/compound.ts#L210-L210', '_types.query_dsl.Operator': '_types/query_dsl/Operator.ts#L22-L27', -'_types.query_dsl.ParentIdQuery': '_types/query_dsl/joining.ts#L141-L158', +'_types.query_dsl.ParentIdQuery': '_types/query_dsl/joining.ts#L144-L161', '_types.query_dsl.PercolateQuery': '_types/query_dsl/specialized.ts#L205-L245', '_types.query_dsl.PinnedDoc': '_types/query_dsl/specialized.ts#L269-L278', '_types.query_dsl.PinnedQuery': '_types/query_dsl/specialized.ts#L247-L267', @@ -1081,7 +1081,7 @@ 'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L24-L59', 'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L39-L42', 'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L38', -'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L56-L432', +'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L56-L434', 'async_search.submit.Response': 'async_search/submit/AsyncSearchSubmitResponse.ts#L25-L34', 'autoscaling._types.AutoscalingPolicy': 'autoscaling/_types/AutoscalingPolicy.ts#L23-L30', 'autoscaling.delete_autoscaling_policy.Request': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L56', @@ -1132,7 +1132,7 @@ 'cat.component_templates.Request': 'cat/component_templates/CatComponentTemplatesRequest.ts#L24-L83', 'cat.component_templates.Response': 'cat/component_templates/CatComponentTemplatesResponse.ts#L22-L25', 'cat.count.CountRecord': 'cat/count/types.ts#L23-L39', -'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L83', +'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L85', 'cat.count.Response': 'cat/count/CatCountResponse.ts#L22-L25', 'cat.fielddata.FielddataRecord': 'cat/fielddata/types.ts#L20-L48', 'cat.fielddata.Request': 'cat/fielddata/CatFielddataRequest.ts#L23-L69', @@ -1142,7 +1142,7 @@ 'cat.health.Response': 'cat/health/CatHealthResponse.ts#L22-L25', 'cat.help.Request': 'cat/help/CatHelpRequest.ts#L22-L39', 'cat.indices.IndicesRecord': 'cat/indices/types.ts#L20-L812', -'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L30-L107', +'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L30-L111', 'cat.indices.Response': 'cat/indices/CatIndicesResponse.ts#L22-L25', 'cat.master.MasterRecord': 'cat/master/types.ts#L20-L39', 'cat.master.Request': 'cat/master/CatMasterRequest.ts#L24-L69', @@ -1290,7 +1290,7 @@ 'cluster.reroute.RerouteExplanation': 'cluster/reroute/types.ts#L92-L96', 'cluster.reroute.RerouteParameters': 'cluster/reroute/types.ts#L98-L105', 'cluster.reroute.Response': 'cluster/reroute/ClusterRerouteResponse.ts#L23-L34', -'cluster.state.ClusterStateMetric': 'cluster/state/ClusterStateRequest.ts#L123-L133', +'cluster.state.ClusterStateMetric': 'cluster/state/ClusterStateRequest.ts#L123-L142', 'cluster.state.Request': 'cluster/state/ClusterStateRequest.ts#L29-L121', 'cluster.state.Response': 'cluster/state/ClusterStateResponse.ts#L22-L31', 'cluster.stats.CCSStats': 'cluster/stats/types.ts#L787-L802', @@ -1473,7 +1473,7 @@ 'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L34-L192', 'eql.search.Response': 'eql/search/EqlSearchResponse.ts#L22-L25', 'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32', -'esql._types.ESQLView': 'esql/_types/types.ts#L24-L34', +'esql._types.ESQLView': 'esql/_types/types.ts#L30-L40', 'esql._types.EsqlFormat': 'esql/_types/QueryParameters.ts#L20-L29', 'esql._types.TableValuesContainer': 'esql/_types/TableValuesContainer.ts#L22-L28', 'esql.delete_view.Request': 'esql/delete_view/DeleteViewRequest.ts#L23-L47', @@ -1525,7 +1525,7 @@ 'ilm.explain_lifecycle.LifecycleExplainManaged': 'ilm/explain_lifecycle/types.ts#L33-L68', 'ilm.explain_lifecycle.LifecycleExplainPhaseExecution': 'ilm/explain_lifecycle/types.ts#L80-L85', 'ilm.explain_lifecycle.LifecycleExplainUnmanaged': 'ilm/explain_lifecycle/types.ts#L70-L73', -'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L66', +'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L67', 'ilm.explain_lifecycle.Response': 'ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28', 'ilm.get_lifecycle.Lifecycle': 'ilm/get_lifecycle/types.ts#L24-L28', 'ilm.get_lifecycle.Request': 'ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L63', @@ -1664,8 +1664,8 @@ 'indices.create.Response': 'indices/create/IndicesCreateResponse.ts#L22-L28', 'indices.create_data_stream.Request': 'indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L66', 'indices.create_data_stream.Response': 'indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L25', -'indices.create_from.CreateFrom': 'indices/create_from/MigrateCreateFromRequest.ts#L54-L68', -'indices.create_from.Request': 'indices/create_from/MigrateCreateFromRequest.ts#L25-L52', +'indices.create_from.CreateFrom': 'indices/create_from/MigrateCreateFromRequest.ts#L55-L69', +'indices.create_from.Request': 'indices/create_from/MigrateCreateFromRequest.ts#L25-L53', 'indices.create_from.Response': 'indices/create_from/MigrateCreateFromResponse.ts#L22-L28', '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-L62', @@ -1761,11 +1761,11 @@ 'indices.get_settings.Response': 'indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27', 'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L76', 'indices.get_template.Response': 'indices/get_template/IndicesGetTemplateResponse.ts#L23-L26', -'indices.migrate_reindex.MigrateReindex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L47-L56', -'indices.migrate_reindex.ModeEnum': 'indices/migrate_reindex/MigrateReindexRequest.ts#L62-L64', -'indices.migrate_reindex.Request': 'indices/migrate_reindex/MigrateReindexRequest.ts#L23-L45', +'indices.migrate_reindex.MigrateReindex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L48-L57', +'indices.migrate_reindex.ModeEnum': 'indices/migrate_reindex/MigrateReindexRequest.ts#L63-L65', +'indices.migrate_reindex.Request': 'indices/migrate_reindex/MigrateReindexRequest.ts#L23-L46', 'indices.migrate_reindex.Response': 'indices/migrate_reindex/MigrateReindexResponse.ts#L22-L25', -'indices.migrate_reindex.SourceIndex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L58-L60', +'indices.migrate_reindex.SourceIndex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L59-L61', 'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L68', 'indices.migrate_to_data_stream.Response': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L25', 'indices.modify_data_stream.Action': 'indices/modify_data_stream/types.ts#L22-L37', @@ -1806,14 +1806,16 @@ 'indices.recovery.RecoveryFiles': 'indices/recovery/types.ts#L56-L62', 'indices.recovery.RecoveryIndexStatus': 'indices/recovery/types.ts#L64-L74', 'indices.recovery.RecoveryOrigin': 'indices/recovery/types.ts#L76-L89', +'indices.recovery.RecoveryStage': 'indices/recovery/types.ts#L118-L131', 'indices.recovery.RecoveryStartStatus': 'indices/recovery/types.ts#L91-L96', 'indices.recovery.RecoveryStatus': 'indices/recovery/types.ts#L98-L100', +'indices.recovery.RecoveryType': 'indices/recovery/types.ts#L133-L144', 'indices.recovery.Request': 'indices/recovery/IndicesRecoveryRequest.ts#L23-L104', 'indices.recovery.Response': 'indices/recovery/IndicesRecoveryResponse.ts#L24-L27', -'indices.recovery.ShardRecovery': 'indices/recovery/types.ts#L118-L135', +'indices.recovery.ShardRecovery': 'indices/recovery/types.ts#L146-L165', '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-L87', +'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L88', 'indices.refresh.Response': 'indices/refresh/IndicesRefreshResponse.ts#L22-L25', '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', @@ -1836,18 +1838,18 @@ 'indices.segments.IndexSegment': 'indices/segments/types.ts#L24-L26', 'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L74', '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.segments.Segment': 'indices/segments/types.ts#L28-L62', +'indices.segments.ShardSegmentRouting': 'indices/segments/types.ts#L64-L71', +'indices.segments.ShardsSegment': 'indices/segments/types.ts#L73-L78', 'indices.shard_stores.IndicesShardStores': 'indices/shard_stores/types.ts#L25-L27', 'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L84', 'indices.shard_stores.Response': 'indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26', -'indices.shard_stores.ShardStore': 'indices/shard_stores/types.ts#L29-L36', -'indices.shard_stores.ShardStoreAllocation': 'indices/shard_stores/types.ts#L47-L51', -'indices.shard_stores.ShardStoreException': 'indices/shard_stores/types.ts#L53-L56', -'indices.shard_stores.ShardStoreNode': 'indices/shard_stores/types.ts#L38-L45', -'indices.shard_stores.ShardStoreStatus': 'indices/shard_stores/types.ts#L62-L71', -'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L58-L60', +'indices.shard_stores.ShardStore': 'indices/shard_stores/types.ts#L29-L39', +'indices.shard_stores.ShardStoreAllocation': 'indices/shard_stores/types.ts#L50-L57', +'indices.shard_stores.ShardStoreException': 'indices/shard_stores/types.ts#L59-L62', +'indices.shard_stores.ShardStoreNode': 'indices/shard_stores/types.ts#L41-L48', +'indices.shard_stores.ShardStoreStatus': 'indices/shard_stores/types.ts#L68-L77', +'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L64-L66', 'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L118', 'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28', 'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L74', @@ -2249,7 +2251,7 @@ 'license._types.LicenseType': 'license/_types/License.ts#L23-L33', 'license.delete.Request': 'license/delete/DeleteLicenseRequest.ts#L24-L56', 'license.delete.Response': 'license/delete/DeleteLicenseResponse.ts#L22-L25', -'license.get.LicenseInformation': 'license/get/types.ts#L25-L38', +'license.get.LicenseInformation': 'license/get/types.ts#L25-L74', 'license.get.Request': 'license/get/GetLicenseRequest.ts#L23-L60', 'license.get.Response': 'license/get/GetLicenseResponse.ts#L22-L24', 'license.get_basic_status.Request': 'license/get_basic_status/GetBasicLicenseStatusRequest.ts#L23-L39', @@ -2257,7 +2259,7 @@ 'license.get_trial_status.Request': 'license/get_trial_status/GetTrialLicenseStatusRequest.ts#L23-L39', 'license.get_trial_status.Response': 'license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22', 'license.post.Acknowledgement': 'license/post/types.ts#L20-L23', -'license.post.Request': 'license/post/PostLicenseRequest.ts#L25-L73', +'license.post.Request': 'license/post/PostLicenseRequest.ts#L25-L74', 'license.post.Response': 'license/post/PostLicenseResponse.ts#L23-L29', 'license.post_start_basic.Request': 'license/post_start_basic/StartBasicLicenseRequest.ts#L24-L65', 'license.post_start_basic.Response': 'license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31', @@ -2872,26 +2874,26 @@ 'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L120', 'security._types.ApiKeyManagedBy': 'security/_types/ApiKey.ts#L127-L130', 'security._types.ApiKeyType': 'security/_types/ApiKey.ts#L122-L125', -'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L436-L438', -'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L27-L40', +'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L400-L402', +'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L28-L41', 'security._types.BulkError': 'security/_types/Bulk.ts#L24-L33', 'security._types.ClusterNode': 'security/_types/ClusterNode.ts#L22-L24', -'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L42-L201', +'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L43-L202', 'security._types.CreatedStatus': 'security/_types/CreatedStatus.ts#L20-L22', 'security._types.FieldSecurity': 'security/_types/FieldSecurity.ts#L22-L25', -'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L432-L434', +'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L396-L398', 'security._types.GrantType': 'security/_types/GrantType.ts#L20-L30', -'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L388-L430', -'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L218-L244', -'security._types.IndicesPrivilegesQuery': 'security/_types/Privileges.ts#L343-L351', -'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L440-L442', +'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L352-L394', +'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L246-L246', +'security._types.IndicesPrivilegesQuery': 'security/_types/Privileges.ts#L307-L315', +'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L404-L406', 'security._types.NodeSecurityStats': 'security/_types/NodeSecurityStats.ts#L22-L27', 'security._types.RealmInfo': 'security/_types/RealmInfo.ts#L22-L25', -'security._types.RemoteClusterPrivilege': 'security/_types/Privileges.ts#L203-L215', -'security._types.RemoteClusterPrivileges': 'security/_types/Privileges.ts#L280-L292', -'security._types.RemoteIndicesPrivileges': 'security/_types/Privileges.ts#L246-L278', -'security._types.RemoteUserIndicesPrivileges': 'security/_types/Privileges.ts#L318-L341', -'security._types.ReplicationAccess': 'security/_types/Privileges.ts#L444-L454', +'security._types.RemoteClusterPrivilege': 'security/_types/Privileges.ts#L204-L216', +'security._types.RemoteClusterPrivileges': 'security/_types/Privileges.ts#L260-L272', +'security._types.RemoteIndicesPrivileges': 'security/_types/Privileges.ts#L248-L258', +'security._types.RemoteUserIndicesPrivileges': 'security/_types/Privileges.ts#L301-L305', +'security._types.ReplicationAccess': 'security/_types/Privileges.ts#L408-L418', 'security._types.Restriction': 'security/_types/RoleDescriptor.ts#L90-L96', 'security._types.RestrictionWorkflow': 'security/_types/RoleDescriptor.ts#L98-L101', 'security._types.RoleDescriptor': 'security/_types/RoleDescriptor.ts#L33-L83', @@ -2899,15 +2901,15 @@ 'security._types.RoleMapping': 'security/_types/RoleMapping.ts#L25-L33', 'security._types.RoleMappingRule': 'security/_types/RoleMappingRule.ts#L23-L31', 'security._types.RoleTemplate': 'security/_types/RoleTemplate.ts#L28-L31', -'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L385-L386', -'security._types.RoleTemplateQuery': 'security/_types/Privileges.ts#L353-L363', -'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L365-L383', +'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L349-L350', +'security._types.RoleTemplateQuery': 'security/_types/Privileges.ts#L317-L327', +'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L329-L347', 'security._types.RolesStats': 'security/_types/NodeSecurityStats.ts#L29-L34', -'security._types.SearchAccess': 'security/_types/Privileges.ts#L456-L476', +'security._types.SearchAccess': 'security/_types/Privileges.ts#L420-L440', 'security._types.SecuritySettings': 'security/_types/SecuritySettings.ts#L22-L24', 'security._types.TemplateFormat': 'security/_types/RoleTemplate.ts#L22-L25', 'security._types.User': 'security/_types/User.ts#L23-L31', -'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L294-L316', +'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L298-L299', 'security._types.UserProfile': 'security/_types/UserProfile.ts#L41-L47', 'security._types.UserProfileHitMetadata': 'security/_types/UserProfile.ts#L27-L30', 'security._types.UserProfileUser': 'security/_types/UserProfile.ts#L32-L39', @@ -3072,7 +3074,7 @@ 'security.update_cross_cluster_api_key.Response': 'security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28', 'security.update_settings.Request': 'security/update_settings/SecurityUpdateSettingsRequest.ts#L25-L75', 'security.update_settings.Response': 'security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24', -'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L100', +'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L101', 'security.update_user_profile_data.Response': 'security/update_user_profile_data/Response.ts#L22-L25', 'shutdown._types.Type': 'shutdown/_types/types.ts#L20-L24', 'shutdown.delete_node.Request': 'shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L65', @@ -3257,10 +3259,10 @@ 'transform._types.PivotGroupByContainer': 'transform/_types/Transform.ts#L70-L78', 'transform._types.RetentionPolicy': 'transform/_types/Transform.ts#L88-L96', 'transform._types.RetentionPolicyContainer': 'transform/_types/Transform.ts#L80-L86', -'transform._types.Settings': 'transform/_types/Transform.ts#L98-L154', -'transform._types.Source': 'transform/_types/Transform.ts#L156-L175', -'transform._types.SyncContainer': 'transform/_types/Transform.ts#L179-L185', -'transform._types.TimeSync': 'transform/_types/Transform.ts#L187-L199', +'transform._types.Settings': 'transform/_types/Transform.ts#L98-L166', +'transform._types.Source': 'transform/_types/Transform.ts#L168-L187', +'transform._types.SyncContainer': 'transform/_types/Transform.ts#L191-L197', +'transform._types.TimeSync': 'transform/_types/Transform.ts#L199-L211', 'transform.delete_transform.Request': 'transform/delete_transform/DeleteTransformRequest.ts#L24-L66', 'transform.delete_transform.Response': 'transform/delete_transform/DeleteTransformResponse.ts#L22-L25', 'transform.get_node_stats.Request': 'transform/get_node_stats/GetNodeStatsRequest.ts#L23-L40', @@ -3504,10 +3506,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/2e838917453ed9903a2f335754a5a3e88e72d6e1/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/df81426e814ecb513b012f2c0a706572964c606c/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/graph/ElasticsearchGraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index 13c12bafbf..cf638ea58f 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 @@ -80,7 +80,7 @@ public ElasticsearchGraphAsyncClient withTransportOptions(@Nullable TransportOpt * exclude vertices that have already been returned. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph">Documentation * on elastic.co */ @@ -107,7 +107,7 @@ public CompletableFuture explore(ExploreRequest request) { * a function that initializes a builder to create the * {@link ExploreRequest} * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph">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 48ad0a12e6..3710ddd06e 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 @@ -80,7 +80,7 @@ public ElasticsearchGraphClient withTransportOptions(@Nullable TransportOptions * exclude vertices that have already been returned. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph">Documentation * on elastic.co */ @@ -107,7 +107,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/docs/api/doc/elasticsearch/group/endpoint-graph">Documentation * on elastic.co */ 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 eee8ba7616..c3f9a9f47f 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 @@ -2388,7 +2388,7 @@ public CompletableFuture getMapping() { * Get the status of a migration reindex attempt for a data stream or index. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration">Documentation * on elastic.co */ @@ -2409,7 +2409,7 @@ public CompletableFuture getMigrateReindexStatu * a function that initializes a builder to create the * {@link GetMigrateReindexStatusRequest} * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration">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 26dde46b7a..01a0f921fc 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 @@ -2423,7 +2423,7 @@ public GetMappingResponse getMapping() throws IOException, ElasticsearchExceptio * Get the status of a migration reindex attempt for a data stream or index. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration">Documentation * on elastic.co */ @@ -2444,7 +2444,7 @@ public GetMigrateReindexStatusResponse getMigrateReindexStatus(GetMigrateReindex * a function that initializes a builder to create the * {@link GetMigrateReindexStatusRequest} * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration">Documentation * on elastic.co */ 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 f01df0a45b..57af319cf0 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 @@ -237,7 +237,7 @@ public final Level level() { } /** - * Limit the information returned the specific metrics + * Comma-separated list of metrics used to limit the request. *

* API name: {@code metric} */ @@ -505,7 +505,7 @@ public final Builder level(@Nullable Level value) { } /** - * Limit the information returned the specific metrics + * Comma-separated list of metrics used to limit the request. *

* API name: {@code metric} *

@@ -517,7 +517,7 @@ public final Builder metric(List list) { } /** - * Limit the information returned the specific metrics + * Comma-separated list of metrics used to limit the request. *

* API name: {@code metric} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStage.java new file mode 100644 index 0000000000..da866eb214 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStage.java @@ -0,0 +1,93 @@ +/* + * 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.elasticsearch.indices.recovery; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum RecoveryStage implements JsonEnum { + /** + * Recovery has not started. + */ + Init("INIT"), + + /** + * Reading index metadata and copying bytes from source to destination. + */ + Index("INDEX"), + + /** + * Verifying the integrity of the index. + */ + VerifyIndex("VERIFY_INDEX"), + + /** + * Replaying the transaction log. + */ + Translog("TRANSLOG"), + + /** + * Cleanup. + */ + Finalize("FINALIZE"), + + /** + * Complete. + */ + Done("DONE"), + + ; + + private final String jsonValue; + + RecoveryStage(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + RecoveryStage.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryType.java new file mode 100644 index 0000000000..55d6ed9c66 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryType.java @@ -0,0 +1,92 @@ +/* + * 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.elasticsearch.indices.recovery; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum RecoveryType implements JsonEnum { + /** + * An empty store. Indicates a new primary shard or the forced allocation of an + * empty primary shard using the cluster reroute API. + */ + EmptyStore("EMPTY_STORE"), + + /** + * The store of an existing primary shard. Indicates recovery is related to node + * startup or the allocation of an existing primary shard. + */ + ExistingStore("EXISTING_STORE"), + + /** + * Shards of another index on the same node. Indicates recovery is related to a + * clone, shrink, or split operation. + */ + LocalShards("LOCAL_SHARDS"), + + /** + * A primary shard on another node. Indicates recovery is related to shard + * replication. + */ + Peer("PEER"), + + /** + * A snapshot. Indicates recovery is related to a snapshot restore operation. + */ + Snapshot("SNAPSHOT"), + + ; + + private final String jsonValue; + + RecoveryType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + RecoveryType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java index 439b8e85db..7e67d4a05c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java @@ -34,7 +34,6 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Long; -import java.lang.String; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -72,7 +71,7 @@ public class ShardRecovery implements JsonpSerializable { private final RecoveryOrigin source; - private final String stage; + private final RecoveryStage stage; @Nullable private final RecoveryStartStatus start; @@ -97,7 +96,7 @@ public class ShardRecovery implements JsonpSerializable { private final TranslogStatus translog; - private final String type; + private final RecoveryType type; private final VerifyIndex verifyIndex; @@ -157,9 +156,11 @@ public final RecoveryOrigin source() { } /** - * Required - API name: {@code stage} + * Required - The recovery stage. + *

+ * API name: {@code stage} */ - public final String stage() { + public final RecoveryStage stage() { return this.stage; } @@ -232,9 +233,11 @@ public final TranslogStatus translog() { } /** - * Required - API name: {@code type} + * Required - The recovery source type. + *

+ * API name: {@code type} */ - public final String type() { + public final RecoveryType type() { return this.type; } @@ -269,8 +272,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.source.serialize(generator, mapper); generator.writeKey("stage"); - generator.write(this.stage); - + this.stage.serialize(generator, mapper); if (this.start != null) { generator.writeKey("start"); this.start.serialize(generator, mapper); @@ -307,8 +309,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.translog.serialize(generator, mapper); generator.writeKey("type"); - generator.write(this.type); - + this.type.serialize(generator, mapper); generator.writeKey("verify_index"); this.verifyIndex.serialize(generator, mapper); @@ -334,7 +335,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private RecoveryOrigin source; - private String stage; + private RecoveryStage stage; @Nullable private RecoveryStartStatus start; @@ -359,7 +360,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private TranslogStatus translog; - private String type; + private RecoveryType type; private VerifyIndex verifyIndex; @@ -431,9 +432,11 @@ public final Builder source(Function + * API name: {@code stage} */ - public final Builder stage(String value) { + public final Builder stage(RecoveryStage value) { this.stage = value; return this; } @@ -539,9 +542,11 @@ public final Builder translog(Function + * API name: {@code type} */ - public final Builder type(String value) { + public final Builder type(RecoveryType value) { this.type = value; return this; } @@ -599,7 +604,7 @@ protected static void setupShardRecoveryDeserializer(ObjectDeserializer> fn) { } /** - * Required - API name: {@code attributes} + * Required - Contains information about whether high compression was enabled + * and per-field vector formats. + *

+ * API name: {@code attributes} */ public final Map attributes() { return this.attributes; } /** - * Required - API name: {@code committed} + * Required - 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} */ public final boolean committed() { return this.committed; } /** - * Required - API name: {@code compound} + * Required - If true, Lucene merged all files from the segment + * into a single file to save file descriptors. + *

+ * API name: {@code compound} */ public final boolean compound() { return this.compound; } /** - * Required - API name: {@code deleted_docs} + * Required - The number of deleted documents as reported by Lucene, which may + * 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 deleted_docs} */ public final long deletedDocs() { return this.deletedDocs; } /** - * Required - API name: {@code generation} + * Required - Generation number, such as 0. Elasticsearch + * increments this generation number for each segment written then uses this + * number to derive the segment name. + *

+ * API name: {@code generation} */ public final int generation() { return this.generation; } /** - * Required - API name: {@code search} + * Required - 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 search} */ public final boolean search() { return this.search; } /** - * Required - API name: {@code size_in_bytes} + * Required - Disk space used by the segment, in bytes. + *

+ * API name: {@code size_in_bytes} */ public final double sizeInBytes() { return this.sizeInBytes; } /** - * Required - API name: {@code num_docs} + * Required - The number of documents as reported by Lucene. 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 num_docs} */ public final long numDocs() { return this.numDocs; } /** - * Required - API name: {@code version} + * Required - Version of Lucene used to write the segment. + *

+ * API name: {@code version} */ public final String version() { return this.version; @@ -258,7 +293,10 @@ private Builder(Segment instance) { } /** - * Required - API name: {@code attributes} + * Required - Contains information about whether high compression was enabled + * and per-field vector formats. + *

+ * API name: {@code attributes} *

* Adds all entries of map to attributes. */ @@ -268,7 +306,10 @@ public final Builder attributes(Map map) { } /** - * Required - API name: {@code attributes} + * Required - Contains information about whether high compression was enabled + * and per-field vector formats. + *

+ * API name: {@code attributes} *

* Adds an entry to attributes. */ @@ -278,7 +319,12 @@ public final Builder attributes(String key, String value) { } /** - * Required - API name: {@code committed} + * Required - 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} */ public final Builder committed(boolean value) { this.committed = value; @@ -286,7 +332,10 @@ public final Builder committed(boolean value) { } /** - * Required - API name: {@code compound} + * Required - If true, Lucene merged all files from the segment + * into a single file to save file descriptors. + *

+ * API name: {@code compound} */ public final Builder compound(boolean value) { this.compound = value; @@ -294,7 +343,14 @@ public final Builder compound(boolean value) { } /** - * Required - API name: {@code deleted_docs} + * Required - The number of deleted documents as reported by Lucene, which may + * 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 deleted_docs} */ public final Builder deletedDocs(long value) { this.deletedDocs = value; @@ -302,7 +358,11 @@ public final Builder deletedDocs(long value) { } /** - * Required - API name: {@code generation} + * Required - Generation number, such as 0. Elasticsearch + * increments this generation number for each segment written then uses this + * number to derive the segment name. + *

+ * API name: {@code generation} */ public final Builder generation(int value) { this.generation = value; @@ -310,7 +370,11 @@ public final Builder generation(int value) { } /** - * Required - API name: {@code search} + * Required - 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 search} */ public final Builder search(boolean value) { this.search = value; @@ -318,7 +382,9 @@ public final Builder search(boolean value) { } /** - * Required - API name: {@code size_in_bytes} + * Required - Disk space used by the segment, in bytes. + *

+ * API name: {@code size_in_bytes} */ public final Builder sizeInBytes(double value) { this.sizeInBytes = value; @@ -326,7 +392,12 @@ public final Builder sizeInBytes(double value) { } /** - * Required - API name: {@code num_docs} + * Required - The number of documents as reported by Lucene. 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 num_docs} */ public final Builder numDocs(long value) { this.numDocs = value; @@ -334,7 +405,9 @@ public final Builder numDocs(long value) { } /** - * Required - API name: {@code version} + * Required - Version of Lucene used to write the segment. + *

+ * API name: {@code version} */ public final Builder version(String value) { this.version = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java index e6ca346581..f7d5f35964 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java @@ -82,21 +82,28 @@ public static ShardSegmentRouting of(Function + * API name: {@code node} */ public final String node() { return this.node; } /** - * Required - API name: {@code primary} + * Required - If true, the shard is a primary shard. + *

+ * API name: {@code primary} */ public final boolean primary() { return this.primary; } /** - * Required - API name: {@code state} + * Required - The state of the shard, such as STARTED or + * RELOCATING. + *

+ * API name: {@code state} */ public final String state() { return this.state; @@ -153,7 +160,9 @@ private Builder(ShardSegmentRouting instance) { } /** - * Required - API name: {@code node} + * Required - The node ID of the node that holds the shard. + *

+ * API name: {@code node} */ public final Builder node(String value) { this.node = value; @@ -161,7 +170,9 @@ public final Builder node(String value) { } /** - * Required - API name: {@code primary} + * Required - If true, the shard is a primary shard. + *

+ * API name: {@code primary} */ public final Builder primary(boolean value) { this.primary = value; @@ -169,7 +180,10 @@ public final Builder primary(boolean value) { } /** - * Required - API name: {@code state} + * Required - The state of the shard, such as STARTED or + * RELOCATING. + *

+ * API name: {@code state} */ public final Builder state(String value) { this.state = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java index c622df878a..6ae2f4bebf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java @@ -104,13 +104,18 @@ public final ShardStoreNode node() { } /** - * Required - API name: {@code allocation} + * Required - The status of the store copy, whether it is used as a primary, + * replica, or not used at all. + *

+ * API name: {@code allocation} */ public final ShardStoreAllocation allocation() { return this.allocation; } /** + * The allocation ID of the store copy. + *

* API name: {@code allocation_id} */ @Nullable @@ -119,6 +124,9 @@ public final String allocationId() { } /** + * Any exception encountered while opening the shard index or from an earlier + * engine failure. + *

* API name: {@code store_exception} */ @Nullable @@ -210,7 +218,10 @@ private Builder(ShardStore instance) { } /** - * Required - API name: {@code allocation} + * Required - The status of the store copy, whether it is used as a primary, + * replica, or not used at all. + *

+ * API name: {@code allocation} */ public final Builder allocation(ShardStoreAllocation value) { this.allocation = value; @@ -218,6 +229,8 @@ public final Builder allocation(ShardStoreAllocation value) { } /** + * The allocation ID of the store copy. + *

* API name: {@code allocation_id} */ public final Builder allocationId(@Nullable String value) { @@ -226,6 +239,9 @@ public final Builder allocationId(@Nullable String value) { } /** + * Any exception encountered while opening the shard index or from an earlier + * engine failure. + *

* API name: {@code store_exception} */ public final Builder storeException(@Nullable ShardStoreException value) { @@ -234,6 +250,9 @@ public final Builder storeException(@Nullable ShardStoreException value) { } /** + * Any exception encountered while opening the shard index or from an earlier + * engine failure. + *

* API name: {@code store_exception} */ public final Builder storeException( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java index 83bfccd21f..c7abf9fe3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java @@ -46,10 +46,19 @@ */ @JsonpDeserializable public enum ShardStoreAllocation implements JsonEnum { + /** + * The store copy is used as a primary shard. + */ Primary("primary"), + /** + * The store copy is used as a replica shard. + */ Replica("replica"), + /** + * The store copy is not used. + */ Unused("unused"), ; 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 3fe37fdfe4..1e60d594a0 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 @@ -109,7 +109,9 @@ public static PostRequest of(Function> fn) { } /** - * Specifies whether you acknowledge the license changes. + * To update a license, you must accept the acknowledge messages and set this + * parameter to true. In particular, if you are upgrading or + * downgrading a license, you must acknowlege the feature changes. *

* API name: {@code acknowledge} */ @@ -218,7 +220,9 @@ private Builder(PostRequest instance) { } /** - * Specifies whether you acknowledge the license changes. + * To update a license, you must accept the acknowledge messages and set this + * parameter to true. In particular, if you are upgrading or + * downgrading a license, you must acknowlege the feature changes. *

* API name: {@code acknowledge} */ 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 5ff35a1091..f7f3db9c6e 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 @@ -101,7 +101,8 @@ public static PostStartBasicRequest of(Functiontrue. *

* API name: {@code acknowledge} */ @@ -158,7 +159,8 @@ private Builder(PostStartBasicRequest instance) { } /** - * Whether the user has acknowledged acknowledge messages + * To start a basic license, you must accept the acknowledge messages and set + * this parameter to true. *

* API name: {@code acknowledge} */ 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 230446d748..5e3ba5610d 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 @@ -99,7 +99,8 @@ public static PostStartTrialRequest of(Functiontrue. *

* API name: {@code acknowledge} */ @@ -155,7 +156,8 @@ private Builder(PostStartTrialRequest instance) { } /** - * Whether the user has acknowledged acknowledge messages + * To start a trial, you must accept the acknowledge messages and set this + * parameter to true. *

* API name: {@code acknowledge} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java index 232f5ece36..2600f58dfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java @@ -117,6 +117,8 @@ public static LicenseInformation of(Function * API name: {@code expiry_date} */ @Nullable @@ -125,6 +127,8 @@ public final DateTime expiryDate() { } /** + * The date and time the license expires in milliseconds since the Unix epoch. + *

* API name: {@code expiry_date_in_millis} */ @Nullable @@ -133,34 +137,46 @@ public final Long expiryDateInMillis() { } /** - * Required - API name: {@code issue_date} + * Required - The date and time the license was issued in ISO 8601 format. + *

+ * API name: {@code issue_date} */ public final DateTime issueDate() { return this.issueDate; } /** - * Required - API name: {@code issue_date_in_millis} + * Required - The date and time the license was issued in milliseconds since the + * Unix epoch. + *

+ * API name: {@code issue_date_in_millis} */ public final long issueDateInMillis() { return this.issueDateInMillis; } /** - * Required - API name: {@code issued_to} + * Required - The name of the customer or organization that received the + * license. + *

+ * API name: {@code issued_to} */ public final String issuedTo() { return this.issuedTo; } /** - * Required - API name: {@code issuer} + * Required - The name of the organization that issued the license. + *

+ * API name: {@code issuer} */ public final String issuer() { return this.issuer; } /** + * The maximum number of nodes the license allows. + *

* API name: {@code max_nodes} */ @Nullable @@ -169,6 +185,9 @@ public final Long maxNodes() { } /** + * The maximum number of resource units the license allows (for enterprise + * licenses only). + *

* API name: {@code max_resource_units} */ @Nullable @@ -177,28 +196,39 @@ public final Integer maxResourceUnits() { } /** - * Required - API name: {@code status} + * Required - The status of the license. For example,active, valid, invalid, or + * expired. + *

+ * API name: {@code status} */ public final LicenseStatus status() { return this.status; } /** - * Required - API name: {@code type} + * Required - The type of the license. For example, trial, basic, gold, + * platinum, or enterprise. + *

+ * API name: {@code type} */ public final LicenseType type() { return this.type; } /** - * Required - API name: {@code uid} + * Required - The unique identifier of the license. + *

+ * API name: {@code uid} */ public final String uid() { return this.uid; } /** - * Required - API name: {@code start_date_in_millis} + * Required - The date and time the license was started in milliseconds since + * the Unix epoch. + *

+ * API name: {@code start_date_in_millis} */ public final long startDateInMillis() { return this.startDateInMillis; @@ -317,6 +347,8 @@ private Builder(LicenseInformation instance) { } /** + * The date and time the license expires in ISO 8601 format. + *

* API name: {@code expiry_date} */ public final Builder expiryDate(@Nullable DateTime value) { @@ -325,6 +357,8 @@ public final Builder expiryDate(@Nullable DateTime value) { } /** + * The date and time the license expires in milliseconds since the Unix epoch. + *

* API name: {@code expiry_date_in_millis} */ public final Builder expiryDateInMillis(@Nullable Long value) { @@ -333,7 +367,9 @@ public final Builder expiryDateInMillis(@Nullable Long value) { } /** - * Required - API name: {@code issue_date} + * Required - The date and time the license was issued in ISO 8601 format. + *

+ * API name: {@code issue_date} */ public final Builder issueDate(DateTime value) { this.issueDate = value; @@ -341,7 +377,10 @@ public final Builder issueDate(DateTime value) { } /** - * Required - API name: {@code issue_date_in_millis} + * Required - The date and time the license was issued in milliseconds since the + * Unix epoch. + *

+ * API name: {@code issue_date_in_millis} */ public final Builder issueDateInMillis(long value) { this.issueDateInMillis = value; @@ -349,7 +388,10 @@ public final Builder issueDateInMillis(long value) { } /** - * Required - API name: {@code issued_to} + * Required - The name of the customer or organization that received the + * license. + *

+ * API name: {@code issued_to} */ public final Builder issuedTo(String value) { this.issuedTo = value; @@ -357,7 +399,9 @@ public final Builder issuedTo(String value) { } /** - * Required - API name: {@code issuer} + * Required - The name of the organization that issued the license. + *

+ * API name: {@code issuer} */ public final Builder issuer(String value) { this.issuer = value; @@ -365,6 +409,8 @@ public final Builder issuer(String value) { } /** + * The maximum number of nodes the license allows. + *

* API name: {@code max_nodes} */ public final Builder maxNodes(@Nullable Long value) { @@ -373,6 +419,9 @@ public final Builder maxNodes(@Nullable Long value) { } /** + * The maximum number of resource units the license allows (for enterprise + * licenses only). + *

* API name: {@code max_resource_units} */ public final Builder maxResourceUnits(@Nullable Integer value) { @@ -381,7 +430,10 @@ public final Builder maxResourceUnits(@Nullable Integer value) { } /** - * Required - API name: {@code status} + * Required - The status of the license. For example,active, valid, invalid, or + * expired. + *

+ * API name: {@code status} */ public final Builder status(LicenseStatus value) { this.status = value; @@ -389,7 +441,10 @@ public final Builder status(LicenseStatus value) { } /** - * Required - API name: {@code type} + * Required - The type of the license. For example, trial, basic, gold, + * platinum, or enterprise. + *

+ * API name: {@code type} */ public final Builder type(LicenseType value) { this.type = value; @@ -397,7 +452,9 @@ public final Builder type(LicenseType value) { } /** - * Required - API name: {@code uid} + * Required - The unique identifier of the license. + *

+ * API name: {@code uid} */ public final Builder uid(String value) { this.uid = value; @@ -405,7 +462,10 @@ public final Builder uid(String value) { } /** - * Required - API name: {@code start_date_in_millis} + * Required - The date and time the license was started in milliseconds since + * the Unix epoch. + *

+ * API name: {@code start_date_in_millis} */ public final Builder startDateInMillis(long value) { this.startDateInMillis = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java index bf97f1e51a..e2b1ce91ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java @@ -63,6 +63,8 @@ */ @JsonpDeserializable public class RemoteUserIndicesPrivileges implements JsonpSerializable { + private final List clusters; + private final List fieldSecurity; private final List names; @@ -73,19 +75,17 @@ public class RemoteUserIndicesPrivileges implements JsonpSerializable { private final boolean allowRestrictedIndices; - private final List clusters; - // --------------------------------------------------------------------------------------------- private RemoteUserIndicesPrivileges(Builder builder) { + this.clusters = ApiTypeHelper.unmodifiableRequired(builder.clusters, this, "clusters"); this.fieldSecurity = ApiTypeHelper.unmodifiable(builder.fieldSecurity); this.names = ApiTypeHelper.unmodifiableRequired(builder.names, this, "names"); this.privileges = ApiTypeHelper.unmodifiableRequired(builder.privileges, this, "privileges"); this.query = ApiTypeHelper.unmodifiable(builder.query); this.allowRestrictedIndices = ApiTypeHelper.requireNonNull(builder.allowRestrictedIndices, this, "allowRestrictedIndices", false); - this.clusters = ApiTypeHelper.unmodifiableRequired(builder.clusters, this, "clusters"); } @@ -93,6 +93,13 @@ public static RemoteUserIndicesPrivileges of(Function clusters() { + return this.clusters; + } + /** * The document fields that the owners of the role have read access to. *

@@ -147,13 +154,6 @@ public final boolean allowRestrictedIndices() { return this.allowRestrictedIndices; } - /** - * Required - API name: {@code clusters} - */ - public final List clusters() { - return this.clusters; - } - /** * Serialize this object to JSON. */ @@ -165,6 +165,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.clusters)) { + generator.writeKey("clusters"); + generator.writeStartArray(); + for (String item0 : this.clusters) { + generator.write(item0); + + } + generator.writeEnd(); + + } if (ApiTypeHelper.isDefined(this.fieldSecurity)) { generator.writeKey("field_security"); generator.writeStartArray(); @@ -208,17 +218,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("allow_restricted_indices"); generator.write(this.allowRestrictedIndices); - if (ApiTypeHelper.isDefined(this.clusters)) { - generator.writeKey("clusters"); - generator.writeStartArray(); - for (String item0 : this.clusters) { - generator.write(item0); - - } - generator.writeEnd(); - - } - } @Override @@ -235,6 +234,8 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private List clusters; + @Nullable private List fieldSecurity; @@ -247,19 +248,37 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean allowRestrictedIndices; - private List clusters; - public Builder() { } private Builder(RemoteUserIndicesPrivileges instance) { + this.clusters = instance.clusters; this.fieldSecurity = instance.fieldSecurity; this.names = instance.names; this.privileges = instance.privileges; this.query = instance.query; this.allowRestrictedIndices = instance.allowRestrictedIndices; - this.clusters = instance.clusters; } + /** + * Required - API name: {@code clusters} + *

+ * Adds all elements of list to clusters. + */ + public final Builder clusters(List list) { + this.clusters = _listAddAll(this.clusters, list); + return this; + } + + /** + * Required - API name: {@code clusters} + *

+ * Adds one or more values to clusters. + */ + public final Builder clusters(String value, String... values) { + this.clusters = _listAdd(this.clusters, value, values); + return this; + } + /** * The document fields that the owners of the role have read access to. *

@@ -417,26 +436,6 @@ public final Builder allowRestrictedIndices(boolean value) { return this; } - /** - * Required - API name: {@code clusters} - *

- * Adds all elements of list to clusters. - */ - public final Builder clusters(List list) { - this.clusters = _listAddAll(this.clusters, list); - return this; - } - - /** - * Required - API name: {@code clusters} - *

- * Adds one or more values to clusters. - */ - public final Builder clusters(String value, String... values) { - this.clusters = _listAdd(this.clusters, value, values); - return this; - } - @Override protected Builder self() { return this; @@ -472,6 +471,8 @@ public Builder rebuild() { protected static void setupRemoteUserIndicesPrivilegesDeserializer( ObjectDeserializer op) { + op.add(Builder::clusters, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "clusters"); op.add(Builder::fieldSecurity, JsonpDeserializer.arrayDeserializer(FieldSecurity._DESERIALIZER), "field_security"); op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names"); @@ -479,8 +480,6 @@ protected static void setupRemoteUserIndicesPrivilegesDeserializer( "privileges"); op.add(Builder::query, JsonpDeserializer.arrayDeserializer(IndicesPrivilegesQuery._DESERIALIZER), "query"); op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices"); - op.add(Builder::clusters, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "clusters"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java index 54f984bd64..ef2a10bc21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java @@ -100,7 +100,7 @@ public ElasticsearchTextStructureAsyncClient withTransportOptions(@Nullable Tran * response. It helps determine why the returned structure was chosen. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure">Documentation * on elastic.co */ @@ -145,7 +145,7 @@ public CompletableFuture findFieldStructure(FindFiel * a function that initializes a builder to create the * {@link FindFieldStructureRequest} * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java index 85e7464c17..1759c77b35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java @@ -101,7 +101,7 @@ public ElasticsearchTextStructureClient withTransportOptions(@Nullable Transport * response. It helps determine why the returned structure was chosen. * * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure">Documentation * on elastic.co */ @@ -147,7 +147,7 @@ public FindFieldStructureResponse findFieldStructure(FindFieldStructureRequest r * a function that initializes a builder to create the * {@link FindFieldStructureRequest} * @see Documentation + * "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java index fe1a77cc03..05bb5b7313 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java @@ -79,6 +79,9 @@ public class Settings implements JsonpSerializable { @Nullable private final Boolean usePointInTime; + @Nullable + private final Integer numFailureRetries; + @Nullable private final Boolean unattended; @@ -92,6 +95,7 @@ private Settings(Builder builder) { this.docsPerSecond = builder.docsPerSecond; this.maxPageSearchSize = builder.maxPageSearchSize; this.usePointInTime = builder.usePointInTime; + this.numFailureRetries = builder.numFailureRetries; this.unattended = builder.unattended; } @@ -179,6 +183,23 @@ public final Boolean usePointInTime() { return this.usePointInTime; } + /** + * Defines the number of retries on a recoverable failure before the transform + * task is marked as failed. The minimum value is 0 + * and the maximum is 100, where -1 indicates that the + * transform retries indefinitely. If unset, the cluster-level setting + * num_transform_failure_retries is used. + *

+ * This setting cannot be specified when unattended is + * true, because unattended transforms always retry indefinitely. + *

+ * API name: {@code num_failure_retries} + */ + @Nullable + public final Integer numFailureRetries() { + return this.numFailureRetries; + } + /** * If true, the transform runs in unattended mode. In unattended * mode, the transform retries indefinitely in case of an error which means the @@ -232,6 +253,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("use_point_in_time"); generator.write(this.usePointInTime); + } + if (this.numFailureRetries != null) { + generator.writeKey("num_failure_retries"); + generator.write(this.numFailureRetries); + } if (this.unattended != null) { generator.writeKey("unattended"); @@ -271,6 +297,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean usePointInTime; + @Nullable + private Integer numFailureRetries; + @Nullable private Boolean unattended; @@ -283,6 +312,7 @@ private Builder(Settings instance) { this.docsPerSecond = instance.docsPerSecond; this.maxPageSearchSize = instance.maxPageSearchSize; this.usePointInTime = instance.usePointInTime; + this.numFailureRetries = instance.numFailureRetries; this.unattended = instance.unattended; } @@ -365,6 +395,23 @@ public final Builder usePointInTime(@Nullable Boolean value) { return this; } + /** + * Defines the number of retries on a recoverable failure before the transform + * task is marked as failed. The minimum value is 0 + * and the maximum is 100, where -1 indicates that the + * transform retries indefinitely. If unset, the cluster-level setting + * num_transform_failure_retries is used. + *

+ * This setting cannot be specified when unattended is + * true, because unattended transforms always retry indefinitely. + *

+ * API name: {@code num_failure_retries} + */ + public final Builder numFailureRetries(@Nullable Integer value) { + this.numFailureRetries = value; + return this; + } + /** * If true, the transform runs in unattended mode. In unattended * mode, the transform retries indefinitely in case of an error which means the @@ -418,6 +465,7 @@ protected static void setupSettingsDeserializer(ObjectDeserializer