From abf6f196438224c0cd1cc40259967dfa1b9c92c0 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 5 Sep 2023 21:15:37 +0200 Subject: [PATCH] [codegen] Update to latest API spec --- .../elasticsearch/_types/ClusterDetails.java | 311 ++++++++++++++++++ .../_types/ClusterSearchStatus.java | 61 ++++ .../_types/ClusterStatistics.java | 58 ++++ .../async_search/AsyncSearchResponseBase.java | 65 ++++ .../status/StatusResponseBase.java | 46 +++ .../elasticsearch/doc-files/api-spec.html | 98 +++--- 6 files changed, 591 insertions(+), 48 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java new file mode 100644 index 000000000..5b60019a7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java @@ -0,0 +1,311 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.ClusterDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ClusterDetails implements JsonpSerializable { + private final ClusterSearchStatus status; + + private final String indices; + + @Nullable + private final Long took; + + private final boolean timedOut; + + @Nullable + private final ShardStatistics shards; + + private final List failures; + + // --------------------------------------------------------------------------------------------- + + private ClusterDetails(Builder builder) { + + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.indices = ApiTypeHelper.requireNonNull(builder.indices, this, "indices"); + this.took = builder.took; + this.timedOut = ApiTypeHelper.requireNonNull(builder.timedOut, this, "timedOut"); + this.shards = builder.shards; + this.failures = ApiTypeHelper.unmodifiable(builder.failures); + + } + + public static ClusterDetails of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code status} + */ + public final ClusterSearchStatus status() { + return this.status; + } + + /** + * Required - API name: {@code indices} + */ + public final String indices() { + return this.indices; + } + + /** + * API name: {@code took} + */ + @Nullable + public final Long took() { + return this.took; + } + + /** + * Required - API name: {@code timed_out} + */ + public final boolean timedOut() { + return this.timedOut; + } + + /** + * API name: {@code _shards} + */ + @Nullable + public final ShardStatistics shards() { + return this.shards; + } + + /** + * API name: {@code failures} + */ + public final List failures() { + return this.failures; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("status"); + this.status.serialize(generator, mapper); + generator.writeKey("indices"); + generator.write(this.indices); + + if (this.took != null) { + generator.writeKey("took"); + generator.write(this.took); + + } + generator.writeKey("timed_out"); + generator.write(this.timedOut); + + if (this.shards != null) { + generator.writeKey("_shards"); + this.shards.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.failures)) { + generator.writeKey("failures"); + generator.writeStartArray(); + for (ShardFailure item0 : this.failures) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClusterDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private ClusterSearchStatus status; + + private String indices; + + @Nullable + private Long took; + + private Boolean timedOut; + + @Nullable + private ShardStatistics shards; + + @Nullable + private List failures; + + /** + * Required - API name: {@code status} + */ + public final Builder status(ClusterSearchStatus value) { + this.status = value; + return this; + } + + /** + * Required - API name: {@code indices} + */ + public final Builder indices(String value) { + this.indices = value; + return this; + } + + /** + * API name: {@code took} + */ + public final Builder took(@Nullable Long value) { + this.took = value; + return this; + } + + /** + * Required - API name: {@code timed_out} + */ + public final Builder timedOut(boolean value) { + this.timedOut = value; + return this; + } + + /** + * API name: {@code _shards} + */ + public final Builder shards(@Nullable ShardStatistics value) { + this.shards = value; + return this; + } + + /** + * API name: {@code _shards} + */ + public final Builder shards(Function> fn) { + return this.shards(fn.apply(new ShardStatistics.Builder()).build()); + } + + /** + * API name: {@code failures} + *

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

+ * Adds one or more values to failures. + */ + public final Builder failures(ShardFailure value, ShardFailure... values) { + this.failures = _listAdd(this.failures, value, values); + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds a value to failures using a builder lambda. + */ + public final Builder failures(Function> fn) { + return failures(fn.apply(new ShardFailure.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClusterDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClusterDetails build() { + _checkSingleUse(); + + return new ClusterDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ClusterDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ClusterDetails::setupClusterDetailsDeserializer); + + protected static void setupClusterDetailsDeserializer(ObjectDeserializer op) { + + op.add(Builder::status, ClusterSearchStatus._DESERIALIZER, "status"); + op.add(Builder::indices, JsonpDeserializer.stringDeserializer(), "indices"); + op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); + op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); + op.add(Builder::shards, ShardStatistics._DESERIALIZER, "_shards"); + op.add(Builder::failures, JsonpDeserializer.arrayDeserializer(ShardFailure._DESERIALIZER), "failures"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java new file mode 100644 index 000000000..07253da2c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java @@ -0,0 +1,61 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterSearchStatus implements JsonEnum { + Running("running"), + + Successful("successful"), + + Partial("partial"), + + Skipped("skipped"), + + Failed("failed"), + + ; + + private final String jsonValue; + + ClusterSearchStatus(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterSearchStatus.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java index 7c730fdfd..b763db074 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java @@ -35,8 +35,11 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.String; +import java.util.Map; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; // typedef: _types.ClusterStatistics @@ -53,6 +56,8 @@ public class ClusterStatistics implements JsonpSerializable { private final int total; + private final Map details; + // --------------------------------------------------------------------------------------------- private ClusterStatistics(Builder builder) { @@ -60,6 +65,7 @@ private ClusterStatistics(Builder builder) { this.skipped = ApiTypeHelper.requireNonNull(builder.skipped, this, "skipped"); this.successful = ApiTypeHelper.requireNonNull(builder.successful, this, "successful"); this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); + this.details = ApiTypeHelper.unmodifiable(builder.details); } @@ -88,6 +94,13 @@ public final int total() { return this.total; } + /** + * API name: {@code details} + */ + public final Map details() { + return this.details; + } + /** * Serialize this object to JSON. */ @@ -108,6 +121,18 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("total"); generator.write(this.total); + if (ApiTypeHelper.isDefined(this.details)) { + generator.writeKey("details"); + generator.writeStartObject(); + for (Map.Entry item0 : this.details.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + } @Override @@ -128,6 +153,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer total; + @Nullable + private Map details; + /** * Required - API name: {@code skipped} */ @@ -152,6 +180,35 @@ public final Builder total(int value) { return this; } + /** + * API name: {@code details} + *

+ * Adds all entries of map to details. + */ + public final Builder details(Map map) { + this.details = _mapPutAll(this.details, map); + return this; + } + + /** + * API name: {@code details} + *

+ * Adds an entry to details. + */ + public final Builder details(String key, ClusterDetails value) { + this.details = _mapPut(this.details, key, value); + return this; + } + + /** + * API name: {@code details} + *

+ * Adds an entry to details using a builder lambda. + */ + public final Builder details(String key, Function> fn) { + return details(key, fn.apply(new ClusterDetails.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -183,6 +240,7 @@ protected static void setupClusterStatisticsDeserializer(ObjectDeserializer builder) { @@ -80,6 +86,8 @@ protected AsyncSearchResponseBase(AbstractBuilder builder) { "expirationTimeInMillis"); this.startTime = builder.startTime; this.startTimeInMillis = ApiTypeHelper.requireNonNull(builder.startTimeInMillis, this, "startTimeInMillis"); + this.completionTime = builder.completionTime; + this.completionTimeInMillis = builder.completionTimeInMillis; } @@ -147,6 +155,25 @@ public final long startTimeInMillis() { return this.startTimeInMillis; } + /** + * Indicates when the async search completed. Only present when the search has + * completed. + *

+ * API name: {@code completion_time} + */ + @Nullable + public final DateTime completionTime() { + return this.completionTime; + } + + /** + * API name: {@code completion_time_in_millis} + */ + @Nullable + public final Long completionTimeInMillis() { + return this.completionTimeInMillis; + } + /** * Serialize this object to JSON. */ @@ -183,6 +210,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("start_time_in_millis"); generator.write(this.startTimeInMillis); + if (this.completionTime != null) { + generator.writeKey("completion_time"); + this.completionTime.serialize(generator, mapper); + } + if (this.completionTimeInMillis != null) { + generator.writeKey("completion_time_in_millis"); + generator.write(this.completionTimeInMillis); + + } + } @Override @@ -210,6 +247,12 @@ public abstract static class AbstractBuilder + * API name: {@code completion_time} + */ + public final BuilderT completionTime(@Nullable DateTime value) { + this.completionTime = value; + return self(); + } + + /** + * API name: {@code completion_time_in_millis} + */ + public final BuilderT completionTimeInMillis(@Nullable Long value) { + this.completionTimeInMillis = value; + return self(); + } + protected abstract BuilderT self(); } @@ -294,6 +356,9 @@ protected static > void setupAsyncSea "expiration_time_in_millis"); op.add(AbstractBuilder::startTime, DateTime._DESERIALIZER, "start_time"); op.add(AbstractBuilder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); + op.add(AbstractBuilder::completionTime, DateTime._DESERIALIZER, "completion_time"); + op.add(AbstractBuilder::completionTimeInMillis, JsonpDeserializer.longDeserializer(), + "completion_time_in_millis"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java index eed6bcf01..a8764d67c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java @@ -23,6 +23,7 @@ package co.elastic.clients.elasticsearch.async_search.status; +import co.elastic.clients.elasticsearch._types.ClusterStatistics; import co.elastic.clients.elasticsearch._types.ShardStatistics; import co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase; import co.elastic.clients.json.JsonpDeserializable; @@ -51,6 +52,9 @@ public abstract class StatusResponseBase extends AsyncSearchResponseBase { private final ShardStatistics shards; + @Nullable + private final ClusterStatistics clusters; + @Nullable private final Integer completionStatus; @@ -60,6 +64,7 @@ protected StatusResponseBase(AbstractBuilder builder) { super(builder); this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); + this.clusters = builder.clusters; this.completionStatus = builder.completionStatus; } @@ -73,6 +78,17 @@ public final ShardStatistics shards() { return this.shards; } + /** + * Metadata about clusters involved in the cross-cluster search. Not shown for + * local-only searches. + *

+ * API name: {@code _clusters} + */ + @Nullable + public final ClusterStatistics clusters() { + return this.clusters; + } + /** * If the async search completed, this field shows the status code of the * search. For example, 200 indicates that the async search was successfully @@ -91,6 +107,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("_shards"); this.shards.serialize(generator, mapper); + if (this.clusters != null) { + generator.writeKey("_clusters"); + this.clusters.serialize(generator, mapper); + + } if (this.completionStatus != null) { generator.writeKey("completion_status"); generator.write(this.completionStatus); @@ -104,6 +125,9 @@ public abstract static class AbstractBuilder { private ShardStatistics shards; + @Nullable + private ClusterStatistics clusters; + @Nullable private Integer completionStatus; @@ -126,6 +150,27 @@ public final BuilderT shards(Function + * API name: {@code _clusters} + */ + public final BuilderT clusters(@Nullable ClusterStatistics value) { + this.clusters = value; + return self(); + } + + /** + * Metadata about clusters involved in the cross-cluster search. Not shown for + * local-only searches. + *

+ * API name: {@code _clusters} + */ + public final BuilderT clusters(Function> fn) { + return this.clusters(fn.apply(new ClusterStatistics.Builder()).build()); + } + /** * If the async search completed, this field shows the status code of the * search. For example, 200 indicates that the async search was successfully @@ -145,6 +190,7 @@ protected static > void setupStatusRe ObjectDeserializer op) { AsyncSearchResponseBase.setupAsyncSearchResponseBaseDeserializer(op); op.add(AbstractBuilder::shards, ShardStatistics._DESERIALIZER, "_shards"); + op.add(AbstractBuilder::clusters, ClusterStatistics._DESERIALIZER, "_clusters"); op.add(AbstractBuilder::completionStatus, JsonpDeserializer.integerDeserializer(), "completion_status"); } 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 d64e8e412..e235a33d8 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 @@ -247,29 +247,31 @@ '_spec_utils.BaseNode': '_spec_utils/BaseNode.ts#L25-L32', '_types.AcknowledgedResponseBase': '_types/Base.ts#L47-L50', '_types.BulkIndexByScrollFailure': '_types/Errors.ts#L58-L64', -'_types.BulkStats': '_types/Stats.ts#L47-L57', -'_types.Bytes': '_types/common.ts#L150-L168', -'_types.ClusterInfoTarget': '_types/common.ts#L344-L350', -'_types.ClusterStatistics': '_types/Stats.ts#L27-L31', -'_types.CompletionStats': '_types/Stats.ts#L59-L69', -'_types.Conflicts': '_types/common.ts#L170-L173', +'_types.BulkStats': '_types/Stats.ts#L65-L75', +'_types.Bytes': '_types/common.ts#L152-L170', +'_types.ClusterDetails': '_types/Stats.ts#L42-L49', +'_types.ClusterInfoTarget': '_types/common.ts#L346-L352', +'_types.ClusterSearchStatus': '_types/Stats.ts#L34-L40', +'_types.ClusterStatistics': '_types/Stats.ts#L27-L32', +'_types.CompletionStats': '_types/Stats.ts#L77-L87', +'_types.Conflicts': '_types/common.ts#L172-L175', '_types.CoordsGeoBounds': '_types/Geo.ts#L163-L168', '_types.DFIIndependenceMeasure': '_types/Similarity.ts#L20-L24', '_types.DFRAfterEffect': '_types/Similarity.ts#L26-L30', '_types.DFRBasicModel': '_types/Similarity.ts#L32-L40', '_types.DistanceUnit': '_types/Geo.ts#L30-L49', -'_types.DocStats': '_types/Stats.ts#L76-L88', +'_types.DocStats': '_types/Stats.ts#L94-L106', '_types.ElasticsearchVersionInfo': '_types/Base.ts#L54-L64', -'_types.EmptyObject': '_types/common.ts#L141-L142', +'_types.EmptyObject': '_types/common.ts#L143-L144', '_types.ErrorCause': '_types/Errors.ts#L25-L48', '_types.ErrorResponseBase': '_types/Base.ts#L66-L75', -'_types.ExpandWildcard': '_types/common.ts#L182-L196', -'_types.FieldMemoryUsage': '_types/Stats.ts#L97-L100', -'_types.FieldSizeUsage': '_types/Stats.ts#L71-L74', +'_types.ExpandWildcard': '_types/common.ts#L184-L198', +'_types.FieldMemoryUsage': '_types/Stats.ts#L115-L118', +'_types.FieldSizeUsage': '_types/Stats.ts#L89-L92', '_types.FieldSort': '_types/sort.ts#L44-L53', '_types.FieldSortNumericType': '_types/sort.ts#L37-L42', -'_types.FielddataStats': '_types/Stats.ts#L90-L95', -'_types.FlushStats': '_types/Stats.ts#L102-L107', +'_types.FielddataStats': '_types/Stats.ts#L108-L113', +'_types.FlushStats': '_types/Stats.ts#L120-L125', '_types.GeoBounds': '_types/Geo.ts#L144-L157', '_types.GeoDistanceSort': '_types/sort.ts#L58-L66', '_types.GeoDistanceType': '_types/Geo.ts#L51-L60', @@ -278,38 +280,38 @@ '_types.GeoLine': '_types/Geo.ts#L65-L71', '_types.GeoLocation': '_types/Geo.ts#L113-L127', '_types.GeoShapeRelation': '_types/Geo.ts#L73-L91', -'_types.GetStats': '_types/Stats.ts#L109-L120', -'_types.HealthStatus': '_types/common.ts#L200-L220', +'_types.GetStats': '_types/Stats.ts#L127-L138', +'_types.HealthStatus': '_types/common.ts#L202-L222', '_types.IBDistribution': '_types/Similarity.ts#L42-L45', '_types.IBLambda': '_types/Similarity.ts#L47-L50', -'_types.IndexingStats': '_types/Stats.ts#L122-L138', -'_types.IndicesOptions': '_types/common.ts#L298-L325', +'_types.IndexingStats': '_types/Stats.ts#L140-L156', +'_types.IndicesOptions': '_types/common.ts#L300-L327', '_types.IndicesResponseBase': '_types/Base.ts#L77-L79', -'_types.InlineGet': '_types/common.ts#L287-L296', +'_types.InlineGet': '_types/common.ts#L289-L298', '_types.InlineScript': '_types/Scripting.ts#L67-L79', '_types.KnnQuery': '_types/Knn.ts#L26-L41', '_types.LatLonGeoLocation': '_types/Geo.ts#L129-L138', -'_types.Level': '_types/common.ts#L230-L234', +'_types.Level': '_types/common.ts#L232-L236', '_types.LifecycleOperationMode': '_types/Lifecycle.ts#L20-L24', -'_types.MergesStats': '_types/Stats.ts#L140-L157', +'_types.MergesStats': '_types/Stats.ts#L158-L175', '_types.NestedSortValue': '_types/sort.ts#L30-L35', '_types.NodeAttributes': '_types/Node.ts#L41-L58', '_types.NodeRole': '_types/Node.ts#L77-L95', '_types.NodeShard': '_types/Node.ts#L60-L71', '_types.NodeStatistics': '_types/Node.ts#L28-L39', '_types.Normalization': '_types/Similarity.ts#L52-L58', -'_types.OpType': '_types/common.ts#L236-L239', -'_types.PluginStats': '_types/Stats.ts#L159-L169', -'_types.QueryCacheStats': '_types/Stats.ts#L171-L205', +'_types.OpType': '_types/common.ts#L238-L241', +'_types.PluginStats': '_types/Stats.ts#L177-L187', +'_types.QueryCacheStats': '_types/Stats.ts#L189-L223', '_types.QueryVectorBuilder': '_types/Knn.ts#L43-L46', '_types.RankBase': '_types/Rank.ts#L30-L30', '_types.RankContainer': '_types/Rank.ts#L22-L28', -'_types.RecoveryStats': '_types/Stats.ts#L207-L212', -'_types.Refresh': '_types/common.ts#L241-L248', -'_types.RefreshStats': '_types/Stats.ts#L214-L221', +'_types.RecoveryStats': '_types/Stats.ts#L225-L230', +'_types.Refresh': '_types/common.ts#L243-L250', +'_types.RefreshStats': '_types/Stats.ts#L232-L239', '_types.RelocationFailureInfo': '_types/Node.ts#L73-L75', '_types.RequestBase': '_types/Base.ts#L34-L34', -'_types.RequestCacheStats': '_types/Stats.ts#L223-L229', +'_types.RequestCacheStats': '_types/Stats.ts#L241-L247', '_types.Result': '_types/Result.ts#L20-L27', '_types.Retries': '_types/Retries.ts#L22-L25', '_types.RrfRank': '_types/Rank.ts#L32-L37', @@ -321,36 +323,36 @@ '_types.ScriptSort': '_types/sort.ts#L68-L74', '_types.ScriptSortType': '_types/sort.ts#L76-L80', '_types.ScriptTransform': '_types/Transform.ts#L36-L44', -'_types.SearchStats': '_types/Stats.ts#L231-L250', +'_types.SearchStats': '_types/Stats.ts#L249-L268', '_types.SearchTransform': '_types/Transform.ts#L46-L49', -'_types.SearchType': '_types/common.ts#L250-L255', -'_types.SegmentsStats': '_types/Stats.ts#L252-L345', +'_types.SearchType': '_types/common.ts#L252-L257', +'_types.SegmentsStats': '_types/Stats.ts#L270-L363', '_types.ShardFailure': '_types/Errors.ts#L50-L56', -'_types.ShardStatistics': '_types/Stats.ts#L33-L45', +'_types.ShardStatistics': '_types/Stats.ts#L51-L63', '_types.ShardsOperationResponseBase': '_types/Base.ts#L81-L83', '_types.SlicedScroll': '_types/SlicedScroll.ts#L23-L27', -'_types.Slices': '_types/common.ts#L327-L332', -'_types.SlicesCalculation': '_types/common.ts#L334-L342', +'_types.Slices': '_types/common.ts#L329-L334', +'_types.SlicesCalculation': '_types/common.ts#L336-L344', '_types.SortMode': '_types/sort.ts#L103-L112', '_types.SortOptions': '_types/sort.ts#L82-L91', '_types.SortOrder': '_types/sort.ts#L114-L123', -'_types.StoreStats': '_types/Stats.ts#L347-L374', +'_types.StoreStats': '_types/Stats.ts#L365-L392', '_types.StoredScript': '_types/Scripting.ts#L47-L57', '_types.StoredScriptId': '_types/Scripting.ts#L81-L86', -'_types.SuggestMode': '_types/common.ts#L257-L261', +'_types.SuggestMode': '_types/common.ts#L259-L263', '_types.TaskFailure': '_types/Errors.ts#L66-L71', '_types.TextEmbedding': '_types/Knn.ts#L48-L51', -'_types.ThreadType': '_types/common.ts#L263-L269', +'_types.ThreadType': '_types/common.ts#L265-L271', '_types.TimeUnit': '_types/Time.ts#L69-L84', '_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L170-L173', '_types.TopRightBottomLeftGeoBounds': '_types/Geo.ts#L175-L178', '_types.TransformContainer': '_types/Transform.ts#L27-L34', -'_types.TranslogStats': '_types/Stats.ts#L376-L384', -'_types.VersionType': '_types/common.ts#L98-L103', -'_types.WaitForActiveShardOptions': '_types/common.ts#L271-L275', -'_types.WaitForActiveShards': '_types/common.ts#L123-L124', -'_types.WaitForEvents': '_types/common.ts#L277-L284', -'_types.WarmerStats': '_types/Stats.ts#L386-L391', +'_types.TranslogStats': '_types/Stats.ts#L394-L402', +'_types.VersionType': '_types/common.ts#L100-L105', +'_types.WaitForActiveShardOptions': '_types/common.ts#L273-L277', +'_types.WaitForActiveShards': '_types/common.ts#L125-L126', +'_types.WaitForEvents': '_types/common.ts#L279-L286', +'_types.WarmerStats': '_types/Stats.ts#L404-L409', '_types.WktGeoBounds': '_types/Geo.ts#L159-L161', '_types.WriteResponseBase': '_types/Base.ts#L36-L45', '_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L573-L575', @@ -901,15 +903,15 @@ '_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L465-L471', '_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L569-L578', 'async_search._types.AsyncSearch': 'async_search/_types/AsyncSearch.ts#L30-L56', -'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L44-L48', -'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L43', +'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L50-L54', +'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L49', 'async_search.delete.Request': 'async_search/delete/AsyncSearchDeleteRequest.ts#L23-L38', 'async_search.delete.Response': 'async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24', 'async_search.get.Request': 'async_search/get/AsyncSearchGetRequest.ts#L24-L54', 'async_search.get.Response': 'async_search/get/AsyncSearchGetResponse.ts#L22-L24', 'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L23-L36', -'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L34-L36', -'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L33', +'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L39-L41', +'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L38', 'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286', 'async_search.submit.Response': 'async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24', 'autoscaling._types.AutoscalingPolicy': 'autoscaling/_types/AutoscalingPolicy.ts#L23-L27', @@ -2657,10 +2659,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/de09c3f9203eb71b39d67863616ccd9bd997acbf/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/b89646a75dd9e8001caf92d22bd8b3704c59dfdf/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification.