From c34a957e4ec693e457b3151ace30cdb5fd57cf89 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 12 Aug 2025 16:41:46 +0200 Subject: [PATCH 1/3] bump version --- config/version.txt | 2 +- .../java/co/elastic/clients/transport/VersionInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/version.txt b/config/version.txt index 48e97c8f8..61fd81a36 100644 --- a/config/version.txt +++ b/config/version.txt @@ -1 +1 @@ -9.0.5 +9.0.6 diff --git a/java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java b/java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java index e68fc6daf..aed045a7a 100644 --- a/java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java +++ b/java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java @@ -21,5 +21,5 @@ // Package private class VersionInfo { - static final String VERSION = "9.0.5"; + static final String VERSION = "9.0.6"; } From 1c692222139900a72972e321e2fb64672eff7807 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 12:34:34 +0200 Subject: [PATCH 2/3] consumer limit check fix (#1055) (#1056) Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com> --- .../transport/rest5_client/low_level/BufferedByteConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java b/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java index 63cee0af9..ef33c7295 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java +++ b/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java @@ -55,7 +55,7 @@ protected int capacityIncrement() { @Override protected void data(final ByteBuffer src, final boolean endOfStream) throws ContentTooLongException { - if (src.capacity() > limit) { + if (buffer.length() + src.limit() > limit) { throw new ContentTooLongException( "entity content is too long [" + src.capacity() + "] for the configured buffer limit [" + limit + "]" ); From 6a4be302ec5d0462fb0a5940c73dc50bb562e8e2 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 14 Aug 2025 12:41:22 +0200 Subject: [PATCH 3/3] [codegen] update to latest spec --- .../ElasticsearchAsyncClient.java | 31 ++++ .../elasticsearch/ElasticsearchClient.java | 31 ++++ .../aggregations/ArrayPercentilesItem.java | 12 +- .../elasticsearch/cat/AliasesRequest.java | 9 +- .../elasticsearch/cat/AllocationRequest.java | 9 +- .../elasticsearch/cat/CatAliasesColumn.java | 98 +++++++++++++ .../cat/CatAllocationColumn.java | 133 ++++++++++++++++++ .../elasticsearch/cat/CatComponentColumn.java | 103 ++++++++++++++ .../elasticsearch/cat/CatCountColumn.java | 83 +++++++++++ .../elasticsearch/cat/CatFieldDataColumn.java | 98 +++++++++++++ .../cat/ComponentTemplatesRequest.java | 9 +- .../elasticsearch/cat/CountRequest.java | 9 +- .../elasticsearch/cat/FielddataRequest.java | 9 +- .../elasticsearch/core/BulkRequest.java | 1 + .../elasticsearch/core/ReindexRequest.java | 14 ++ .../elasticsearch/doc-files/api-spec.html | 99 ++++++------- .../ElasticsearchIndicesAsyncClient.java | 4 +- .../indices/ElasticsearchIndicesClient.java | 4 +- .../indices/PutMappingRequest.java | 2 +- .../elasticsearch/sql/QueryRequest.java | 28 ++-- 20 files changed, 699 insertions(+), 87 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAliasesColumn.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAllocationColumn.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatComponentColumn.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatCountColumn.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatFieldDataColumn.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 88f124c04..f2b6bce4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -475,6 +475,7 @@ public ElasticsearchXpackAsyncClient xpack() { *
  • JavaScript: Check out client.helpers.*
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -653,6 +654,7 @@ public CompletableFuture bulk(BulkRequest request) { *

  • JavaScript: Check out client.helpers.*
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -831,6 +833,7 @@ public final CompletableFuture bulk(FunctionJavaScript: Check out client.helpers.* *

  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -4186,6 +4189,20 @@ public final CompletableFuture rankEval( * until it has successfully indexed max_docs documents into the * target or it has gone through every document in the source query. *

    + * It's recommended to reindex on indices with a green status. Reindexing can + * fail when a node shuts down or crashes. + *

    + *

    * Refer to the linked documentation for examples of how to reindex documents. * * @see reindex(ReindexRequest request) { * until it has successfully indexed max_docs documents into the * target or it has gone through every document in the source query. *

    + * It's recommended to reindex on indices with a green status. Reindexing can + * fail when a node shuts down or crashes. + *

    + *

    * Refer to the linked documentation for examples of how to reindex documents. * * @param fn diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index 96e290446..f653e875b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -475,6 +475,7 @@ public ElasticsearchXpackClient xpack() { *

  • JavaScript: Check out client.helpers.*
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -653,6 +654,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE *

  • JavaScript: Check out client.helpers.*
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -832,6 +834,7 @@ public final BulkResponse bulk(FunctionJavaScript: Check out client.helpers.* *

  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL @@ -4215,6 +4218,20 @@ public final RankEvalResponse rankEval(Functionmax_docs documents into the * target or it has gone through every document in the source query. *

    + * It's recommended to reindex on indices with a green status. Reindexing can + * fail when a node shuts down or crashes. + *

      + *
    • When requested with wait_for_completion=true (default), the + * request fails if the node shuts down.
    • + *
    • When requested with wait_for_completion=false, a task id is + * returned, which can be used via the task management API to monitor, debug, or + * cancel the task. The task may disappear or fail if the node shuts down. When + * retrying a failed reindex operation, it might be necessary to set + * conflicts=proceed or to first delete the partial destination + * index. Additionally, dry runs, checking disk space, and fetching index + * recovery information can help address the root cause.
    • + *
    + *

    * Refer to the linked documentation for examples of how to reindex documents. * * @see max_docs documents into the * target or it has gone through every document in the source query. *

    + * It's recommended to reindex on indices with a green status. Reindexing can + * fail when a node shuts down or crashes. + *

    + *

    * Refer to the linked documentation for examples of how to reindex documents. * * @param fn diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java index 8abc4ef51..be77e4493 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java @@ -61,7 +61,7 @@ */ @JsonpDeserializable public class ArrayPercentilesItem implements JsonpSerializable { - private final String key; + private final double key; @Nullable private final Double value; @@ -73,7 +73,7 @@ public class ArrayPercentilesItem implements JsonpSerializable { private ArrayPercentilesItem(Builder builder) { - this.key = ApiTypeHelper.requireNonNull(builder.key, this, "key"); + this.key = ApiTypeHelper.requireNonNull(builder.key, this, "key", 0); this.value = builder.value; this.valueAsString = builder.valueAsString; @@ -86,7 +86,7 @@ public static ArrayPercentilesItem of(Function implements ObjectBuilder { - private String key; + private Double key; @Nullable private Double value; @@ -158,7 +158,7 @@ public static class Builder extends WithJsonObjectBuilderBase /** * Required - API name: {@code key} */ - public final Builder key(String value) { + public final Builder key(double value) { this.key = value; return this; } @@ -207,7 +207,7 @@ public ArrayPercentilesItem build() { protected static void setupArrayPercentilesItemDeserializer(ObjectDeserializer op) { - op.add(Builder::key, JsonpDeserializer.stringDeserializer(), "key"); + op.add(Builder::key, JsonpDeserializer.doubleDeserializer(), "key"); op.add(Builder::value, JsonpDeserializer.doubleDeserializer(), "value"); op.add(Builder::valueAsString, JsonpDeserializer.stringDeserializer(), "value_as_string"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index fdff726e2..92e9278f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -112,7 +112,8 @@ public final List expandWildcards() { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} */ @@ -210,7 +211,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    @@ -222,7 +224,8 @@ public final Builder h(List list) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index 1ddec4603..77d9053e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -115,7 +115,8 @@ public final Bytes bytes() { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} */ @@ -206,7 +207,8 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    @@ -218,7 +220,8 @@ public final Builder h(List list) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAliasesColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAliasesColumn.java new file mode 100644 index 000000000..0e2fdde81 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAliasesColumn.java @@ -0,0 +1,98 @@ +/* + * 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.cat; + +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 CatAliasesColumn implements JsonEnum { + /** + * The name of the alias. + */ + Alias("alias", "a"), + + /** + * The name of the index the alias points to. + */ + Index("index", "i", "idx"), + + /** + * The filter applied to the alias. + */ + Filter("filter", "f", "fi"), + + /** + * Index routing value for the alias. + */ + RoutingIndex("routing.index", "ri", "routingIndex"), + + /** + * Search routing value for the alias. + */ + RoutingSearch("routing.search", "rs", "routingSearch"), + + /** + * Indicates if the index is the write index for the alias. + */ + IsWriteIndex("is_write_index", "w", "isWriteIndex"), + + ; + + private final String jsonValue; + private final String[] aliases; + + CatAliasesColumn(String jsonValue, String... aliases) { + this.jsonValue = jsonValue; + this.aliases = aliases; + } + + public String jsonValue() { + return this.jsonValue; + } + + public String[] aliases() { + return this.aliases; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CatAliasesColumn.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAllocationColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAllocationColumn.java new file mode 100644 index 000000000..6fb59d2cf --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAllocationColumn.java @@ -0,0 +1,133 @@ +/* + * 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.cat; + +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 CatAllocationColumn implements JsonEnum { + /** + * The number of shards on the node. + */ + Shards("shards", "s"), + + /** + * The number of shards scheduled to be moved elsewhere in the cluster. + */ + ShardsUndesired("shards.undesired"), + + /** + * The sum of index write load forecasts. + */ + WriteLoadForecast("write_load.forecast", "wlf", "writeLoadForecast"), + + /** + * The sum of shard size forecasts. + */ + DiskIndicesForecast("disk.indices.forecast", "dif", "diskIndicesForecast"), + + /** + * The disk space used by Elasticsearch indices. + */ + DiskIndices("disk.indices", "di", "diskIndices"), + + /** + * The total disk space used on the node. + */ + DiskUsed("disk.used", "du", "diskUsed"), + + /** + * The available disk space on the node. + */ + DiskAvail("disk.avail", "da", "diskAvail"), + + /** + * The total disk capacity of all volumes on the node. + */ + DiskTotal("disk.total", "dt", "diskTotal"), + + /** + * The percentage of disk space used on the node. + */ + DiskPercent("disk.percent", "dp", "diskPercent"), + + /** + * IThe host of the node. + */ + Host("host", "h"), + + /** + * The IP address of the node. + */ + Ip("ip"), + + /** + * The name of the node. + */ + Node("node", "n"), + + /** + * The roles assigned to the node. + */ + NodeRole("node.role", "r", "role", "nodeRole"), + + ; + + private final String jsonValue; + private final String[] aliases; + + CatAllocationColumn(String jsonValue, String... aliases) { + this.jsonValue = jsonValue; + this.aliases = aliases; + } + + public String jsonValue() { + return this.jsonValue; + } + + public String[] aliases() { + return this.aliases; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CatAllocationColumn.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatComponentColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatComponentColumn.java new file mode 100644 index 000000000..479a40897 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatComponentColumn.java @@ -0,0 +1,103 @@ +/* + * 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.cat; + +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 CatComponentColumn implements JsonEnum { + /** + * The name of the component template. + */ + Name("name", "n"), + + /** + * The version number of the component template. + */ + Version("version", "v"), + + /** + * The number of aliases in the component template. + */ + AliasCount("alias_count", "a"), + + /** + * The number of mappings in the component template. + */ + MappingCount("mapping_count", "m"), + + /** + * The number of settings in the component template. + */ + SettingsCount("settings_count", "s"), + + /** + * The number of metadata entries in the component template. + */ + MetadataCount("metadata_count", "me"), + + /** + * The index templates that include this component template. + */ + IncludedIn("included_in", "i"), + + ; + + private final String jsonValue; + private final String[] aliases; + + CatComponentColumn(String jsonValue, String... aliases) { + this.jsonValue = jsonValue; + this.aliases = aliases; + } + + public String jsonValue() { + return this.jsonValue; + } + + public String[] aliases() { + return this.aliases; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CatComponentColumn.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatCountColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatCountColumn.java new file mode 100644 index 000000000..d959480b7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatCountColumn.java @@ -0,0 +1,83 @@ +/* + * 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.cat; + +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 CatCountColumn implements JsonEnum { + /** + * The Unix epoch time in seconds since 1970-01-01 00:00:00. + */ + Epoch("epoch", "t", "time"), + + /** + * The current time in HH:MM:SS format. + */ + Timestamp("timestamp", "ts", "hms", "hhmmss"), + + /** + * The document count in the cluster or index. + */ + Count("count", "dc", "docs.count", "docsCount"), + + ; + + private final String jsonValue; + private final String[] aliases; + + CatCountColumn(String jsonValue, String... aliases) { + this.jsonValue = jsonValue; + this.aliases = aliases; + } + + public String jsonValue() { + return this.jsonValue; + } + + public String[] aliases() { + return this.aliases; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CatCountColumn.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatFieldDataColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatFieldDataColumn.java new file mode 100644 index 000000000..b722d337c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatFieldDataColumn.java @@ -0,0 +1,98 @@ +/* + * 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.cat; + +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 CatFieldDataColumn implements JsonEnum { + /** + * The node ID. + */ + Id("id"), + + /** + * The host name of the node. + */ + Host("host", "h"), + + /** + * The IP address of the node. + */ + Ip("ip"), + + /** + * The node name. + */ + Node("node", "n"), + + /** + * The field name. + */ + Field("field", "f"), + + /** + * The field data usage. + */ + Size("size", "s"), + + ; + + private final String jsonValue; + private final String[] aliases; + + CatFieldDataColumn(String jsonValue, String... aliases) { + this.jsonValue = jsonValue; + this.aliases = aliases; + } + + public String jsonValue() { + return this.jsonValue; + } + + public String[] aliases() { + return this.aliases; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CatFieldDataColumn.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index c1ec97ce2..a619f0eeb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -103,7 +103,8 @@ public static ComponentTemplatesRequest of(Function * API name: {@code h} */ @@ -182,7 +183,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List s; /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    @@ -194,7 +196,8 @@ public final Builder h(List list) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    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 126e5cccd..c1808a28f 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 @@ -92,7 +92,8 @@ public static CountRequest of(Function> fn) } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} */ @@ -140,7 +141,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl private List s; /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    @@ -152,7 +154,8 @@ public final Builder h(List list) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java index b77d03810..adf24c2d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java @@ -116,7 +116,8 @@ public final List fields() { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} */ @@ -193,7 +194,8 @@ public final Builder fields(String value, String... values) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    @@ -205,7 +207,8 @@ public final Builder h(List list) { } /** - * List of columns to appear in the response. Supports simple wildcards. + * A comma-separated list of columns names to display. It supports simple + * wildcards. *

    * API name: {@code h} *

    diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java index 21df7c2eb..25975d43e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java @@ -170,6 +170,7 @@ *

  • JavaScript: Check out client.helpers.*
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • + *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • * *

    * Submitting bulk requests with cURL diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java index 095d75239..c20f09dab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java @@ -131,6 +131,20 @@ * until it has successfully indexed max_docs documents into the * target or it has gone through every document in the source query. *

    + * It's recommended to reindex on indices with a green status. Reindexing can + * fail when a node shuts down or crashes. + *

    + *

    * Refer to the linked documentation for examples of how to reindex documents. * * @see API 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 592ca2624..1c973da52 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#L100-L117', '_global.bulk.OperationContainer': '_global/bulk/types.ts#L158-L180', '_global.bulk.OperationType': '_global/bulk/types.ts#L93-L98', -'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L32-L251', +'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L32-L252', '_global.bulk.Response': '_global/bulk/BulkResponse.ts#L24-L45', '_global.bulk.ResponseItem': '_global/bulk/types.ts#L37-L84', '_global.bulk.UpdateAction': '_global/bulk/types.ts#L182-L217', @@ -136,7 +136,7 @@ '_global.rank_eval.UnratedDocument': '_global/rank_eval/types.ts#L150-L153', '_global.reindex.Destination': '_global/reindex/types.ts#L39-L67', '_global.reindex.RemoteSource': '_global/reindex/types.ts#L112-L140', -'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L27-L178', +'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L27-L184', '_global.reindex.Response': '_global/reindex/ReindexResponse.ts#L26-L92', '_global.reindex.Source': '_global/reindex/types.ts#L69-L110', '_global.reindex_rethrottle.ReindexNode': '_global/reindex_rethrottle/types.ts#L33-L35', @@ -1063,18 +1063,23 @@ 'autoscaling.get_autoscaling_policy.Response': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L25', 'autoscaling.put_autoscaling_policy.Request': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57', 'autoscaling.put_autoscaling_policy.Response': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L25', +'cat._types.CatAliasesColumn': 'cat/_types/CatBase.ts#L1283-L1315', +'cat._types.CatAllocationColumn': 'cat/_types/CatBase.ts#L1317-L1382', 'cat._types.CatAnomalyDetectorColumn': 'cat/_types/CatBase.ts#L32-L401', +'cat._types.CatComponentColumn': 'cat/_types/CatBase.ts#L1384-L1421', +'cat._types.CatCountColumn': 'cat/_types/CatBase.ts#L1423-L1440', 'cat._types.CatDatafeedColumn': 'cat/_types/CatBase.ts#L405-L471', 'cat._types.CatDfaColumn': 'cat/_types/CatBase.ts#L473-L558', +'cat._types.CatFieldDataColumn': 'cat/_types/CatBase.ts#L1442-L1472', 'cat._types.CatNodeColumn': 'cat/_types/CatBase.ts#L560-L1012', 'cat._types.CatRecoveryColumn': 'cat/_types/CatBase.ts#L1014-L1145', 'cat._types.CatRequestBase': 'cat/_types/CatBase.ts#L28-L30', 'cat._types.CatSegmentsColumn': 'cat/_types/CatBase.ts#L1147-L1212', -'cat._types.CatShardColumn': 'cat/_types/CatBase.ts#L1576-L1949', +'cat._types.CatShardColumn': 'cat/_types/CatBase.ts#L1772-L2145', 'cat._types.CatSnapshotsColumn': 'cat/_types/CatBase.ts#L1214-L1281', -'cat._types.CatThreadPoolColumn': 'cat/_types/CatBase.ts#L1952-L2052', -'cat._types.CatTrainedModelsColumn': 'cat/_types/CatBase.ts#L1290-L1364', -'cat._types.CatTransformColumn': 'cat/_types/CatBase.ts#L1369-L1573', +'cat._types.CatThreadPoolColumn': 'cat/_types/CatBase.ts#L2148-L2248', +'cat._types.CatTrainedModelsColumn': 'cat/_types/CatBase.ts#L1486-L1560', +'cat._types.CatTransformColumn': 'cat/_types/CatBase.ts#L1565-L1769', 'cat.aliases.AliasesRecord': 'cat/aliases/types.ts#L22-L53', 'cat.aliases.Request': 'cat/aliases/CatAliasesRequest.ts#L24-L77', 'cat.aliases.Response': 'cat/aliases/CatAliasesResponse.ts#L22-L25', @@ -1814,23 +1819,23 @@ 'inference._types.CompletionToolType': 'inference/_types/CommonTypes.ts#L118-L121', 'inference._types.ContentObject': 'inference/_types/CommonTypes.ts#L123-L135', 'inference._types.DeleteInferenceEndpointResult': 'inference/_types/Results.ts#L110-L115', -'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L777-L811', -'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L827-L829', -'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L813-L819', -'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L821-L825', -'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L831-L857', -'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L863-L865', -'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L859-L861', -'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L890-L892', -'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L867-L883', -'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L885-L888', -'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L894-L920', -'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L938-L940', -'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L922-L931', -'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L933-L936', -'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L942-L963', -'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L969-L971', -'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L965-L967', +'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L757-L791', +'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L807-L809', +'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L793-L799', +'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L801-L805', +'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L811-L837', +'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L843-L845', +'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L839-L841', +'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L870-L872', +'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L847-L863', +'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L865-L868', +'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L874-L900', +'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L918-L920', +'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L902-L911', +'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L913-L916', +'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L922-L943', +'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L949-L951', +'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L945-L947', 'inference._types.InferenceChunkingSettings': 'inference/_types/Services.ts#L254-L283', 'inference._types.InferenceEndpoint': 'inference/_types/Services.ts#L42-L62', 'inference._types.InferenceEndpointInfo': 'inference/_types/Services.ts#L64-L76', @@ -1851,21 +1856,21 @@ 'inference._types.InferenceEndpointInfoVoyageAI': 'inference/_types/Services.ts#L232-L241', 'inference._types.InferenceEndpointInfoWatsonx': 'inference/_types/Services.ts#L243-L252', 'inference._types.InferenceResult': 'inference/_types/Results.ts#L117-L128', -'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L973-L1002', -'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1032-L1034', -'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1036-L1040', -'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L1004-L1025', -'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1027-L1030', -'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1042-L1047', +'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L953-L982', +'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1012-L1014', +'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1016-L1020', +'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L984-L1005', +'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1007-L1010', +'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1022-L1027', 'inference._types.Message': 'inference/_types/CommonTypes.ts#L174-L228', 'inference._types.MessageContent': 'inference/_types/CommonTypes.ts#L169-L172', -'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1049-L1076', -'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1082-L1084', -'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1078-L1080', -'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1086-L1128', -'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1144-L1146', -'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1130-L1136', -'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1138-L1142', +'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1029-L1056', +'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1062-L1064', +'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1058-L1060', +'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1066-L1108', +'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1124-L1126', +'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1110-L1116', +'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1118-L1122', 'inference._types.RankedDocument': 'inference/_types/Results.ts#L91-L101', 'inference._types.RateLimitSetting': 'inference/_types/Services.ts#L289-L315', 'inference._types.RequestChatCompletion': 'inference/_types/CommonTypes.ts#L25-L97', @@ -1894,13 +1899,13 @@ 'inference._types.TextEmbeddingResult': 'inference/_types/Results.ts#L60-L65', 'inference._types.ToolCall': 'inference/_types/CommonTypes.ts#L151-L167', 'inference._types.ToolCallFunction': 'inference/_types/CommonTypes.ts#L137-L149', -'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L1148-L1179', -'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L1212-L1214', -'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L1181-L1205', -'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L1207-L1210', -'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L1216-L1253', -'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L1259-L1261', -'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1255-L1257', +'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L1128-L1159', +'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L1192-L1194', +'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L1161-L1185', +'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L1187-L1190', +'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L1196-L1233', +'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L1239-L1241', +'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1235-L1237', 'inference.chat_completion_unified.Request': 'inference/chat_completion_unified/UnifiedRequest.ts#L24-L61', 'inference.chat_completion_unified.Response': 'inference/chat_completion_unified/UnifiedResponse.ts#L22-L25', 'inference.completion.Request': 'inference/completion/CompletionRequest.ts#L25-L63', @@ -2994,9 +2999,9 @@ 'sql.get_async.Response': 'sql/get_async/SqlGetAsyncResponse.ts#L23-L60', 'sql.get_async_status.Request': 'sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L45', 'sql.get_async_status.Response': 'sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55', -'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L28-L152', +'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L27-L151', 'sql.query.Response': 'sql/query/QuerySqlResponse.ts#L23-L60', -'sql.query.SqlFormat': 'sql/query/QuerySqlRequest.ts#L154-L162', +'sql.query.SqlFormat': 'sql/query/QuerySqlRequest.ts#L153-L161', 'sql.translate.Request': 'sql/translate/TranslateSqlRequest.ts#L25-L65', 'sql.translate.Response': 'sql/translate/TranslateSqlResponse.ts#L27-L37', 'ssl.certificates.CertificateInformation': 'ssl/certificates/types.ts#L22-L57', @@ -3288,10 +3293,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/3e1ec6798fc5c8ea1b48ce42a98e9005dc6bde27/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/d61890b2deddf1eaaa6c6fd2d663e727d3a3ff26/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/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 193f4d573..4325aa6bb 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 @@ -2662,7 +2662,7 @@ public final CompletableFuture putIndexTemplate( *

    * Learn how to use the update mapping API with practical examples in the * Update + * "https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update * mapping API examples guide. * * @see putMapping(PutMappingRequest reques *

    * Learn how to use the update mapping API with practical examples in the * Update + * "https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update * mapping API examples guide. * * @param fn 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 d33ce2128..e128a27f7 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 @@ -2707,7 +2707,7 @@ public final PutIndexTemplateResponse putIndexTemplate( *

    * Learn how to use the update mapping API with practical examples in the * Update + * "https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update * mapping API examples guide. * * @see * Learn how to use the update mapping API with practical examples in the * Update + * "https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update * mapping API examples guide. * * @param fn diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index a07833ec5..47444f793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -85,7 +85,7 @@ *

    * Learn how to use the update mapping API with practical examples in the * Update + * "https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update * mapping API examples guide. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java index 1df25b73d..5e2c616ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -43,6 +43,7 @@ import java.lang.String; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -109,7 +110,7 @@ public class QueryRequest extends RequestBase implements JsonpSerializable { @Nullable private final Time pageTimeout; - private final Map params; + private final List params; @Nullable private final String query; @@ -299,7 +300,7 @@ public final Time pageTimeout() { *

    * API name: {@code params} */ - public final Map params() { + public final List params() { return this.params; } @@ -426,10 +427,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } if (ApiTypeHelper.isDefined(this.params)) { generator.writeKey("params"); - generator.writeStartObject(); - for (Map.Entry item0 : this.params.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); + generator.writeStartArray(); + for (JsonData item0 : this.params) { + item0.serialize(generator, mapper); } generator.writeEnd(); @@ -513,7 +513,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Time pageTimeout; @Nullable - private Map params; + private List params; @Nullable private String query; @@ -715,10 +715,10 @@ public final Builder pageTimeout(Function> fn) *

    * API name: {@code params} *

    - * Adds all entries of map to params. + * Adds all elements of list to params. */ - public final Builder params(Map map) { - this.params = _mapPutAll(this.params, map); + public final Builder params(List list) { + this.params = _listAddAll(this.params, list); return this; } @@ -727,10 +727,10 @@ public final Builder params(Map map) { *

    * API name: {@code params} *

    - * Adds an entry to params. + * Adds one or more values to params. */ - public final Builder params(String key, JsonData value) { - this.params = _mapPut(this.params, key, value); + public final Builder params(JsonData value, JsonData... values) { + this.params = _listAdd(this.params, value, values); return this; } @@ -881,7 +881,7 @@ protected static void setupQueryRequestDeserializer(ObjectDeserializer