From cdc039f4512bf70499768e542bbef4da939e5fbd Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Sat, 7 Mar 2026 23:14:24 +0000
Subject: [PATCH] Re-generate client code using latest OpenSearch API
specification (2026-03-02) (#1900)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit f8c8865cef538261096eea930edff99b6f7cc92c)
Signed-off-by: github-actions[bot]
Signed-off-by: Andriy Redko
---
.../_types/aggregations/TermsAggregation.java | 20 +++++++-------
.../_types/aggregations/ValueType.java | 18 ++++++++++++-
java-codegen/opensearch-openapi.yaml | 26 +++++++++++++++++--
3 files changed, 51 insertions(+), 13 deletions(-)
diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/TermsAggregation.java b/java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/TermsAggregation.java
index bf86ef49b2..f869afad1f 100644
--- a/java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/TermsAggregation.java
+++ b/java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/TermsAggregation.java
@@ -85,7 +85,7 @@ public class TermsAggregation extends BucketAggregationBase
private final TermsInclude include;
@Nullable
- private final Integer minDocCount;
+ private final Long minDocCount;
@Nullable
private final FieldValue missing;
@@ -97,7 +97,7 @@ public class TermsAggregation extends BucketAggregationBase
private final Script script;
@Nullable
- private final Integer shardMinDocCount;
+ private final Long shardMinDocCount;
@Nullable
private final Integer shardSize;
@@ -199,7 +199,7 @@ public final TermsInclude include() {
*
*/
@Nullable
- public final Integer minDocCount() {
+ public final Long minDocCount() {
return this.minDocCount;
}
@@ -234,7 +234,7 @@ public final Script script() {
*
*/
@Nullable
- public final Integer shardMinDocCount() {
+ public final Long shardMinDocCount() {
return this.shardMinDocCount;
}
@@ -405,7 +405,7 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder
*/
@Nonnull
- public final Builder minDocCount(@Nullable Integer value) {
+ public final Builder minDocCount(@Nullable Long value) {
this.minDocCount = value;
return this;
}
@@ -624,7 +624,7 @@ public final Builder script(Function> fn)
*
*/
@Nonnull
- public final Builder shardMinDocCount(@Nullable Integer value) {
+ public final Builder shardMinDocCount(@Nullable Long value) {
this.shardMinDocCount = value;
return this;
}
@@ -711,7 +711,7 @@ protected static void setupTermsAggregationDeserializer(ObjectDeserializerlenientParse accepts multiple representations for the same underlying type (for
+ * example, byte/short/integer/long all map to long).
+ */
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public enum ValueType implements JsonEnum {
Boolean("boolean"),
+ Byte("byte"),
+
Date("date"),
DateNanos("date_nanos"),
Double("double"),
+ Float("float"),
+
GeoPoint("geo_point"),
+ Integer("integer"),
+
Ip("ip"),
Long("long"),
@@ -63,7 +73,13 @@ public enum ValueType implements JsonEnum {
Numeric("numeric"),
- String("string");
+ Range("range"),
+
+ Short("short"),
+
+ String("string"),
+
+ UnsignedLong("unsigned_long");
private final String jsonValue;
diff --git a/java-codegen/opensearch-openapi.yaml b/java-codegen/opensearch-openapi.yaml
index b2da0f093e..4352ebbf76 100644
--- a/java-codegen/opensearch-openapi.yaml
+++ b/java-codegen/opensearch-openapi.yaml
@@ -3944,6 +3944,7 @@ paths:
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/multi-search/
parameters:
+ - $ref: '#/components/parameters/msearch___query.allow_partial_results'
- $ref: '#/components/parameters/msearch___query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/msearch___query.max_concurrent_searches'
- $ref: '#/components/parameters/msearch___query.max_concurrent_shard_requests'
@@ -3969,6 +3970,7 @@ paths:
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/multi-search/
parameters:
+ - $ref: '#/components/parameters/msearch___query.allow_partial_results'
- $ref: '#/components/parameters/msearch___query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/msearch___query.max_concurrent_searches'
- $ref: '#/components/parameters/msearch___query.max_concurrent_shard_requests'
@@ -13994,6 +13996,7 @@ paths:
url: https://opensearch.org/docs/latest/api-reference/multi-search/
parameters:
- $ref: '#/components/parameters/msearch___path.index'
+ - $ref: '#/components/parameters/msearch___query.allow_partial_results'
- $ref: '#/components/parameters/msearch___query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/msearch___query.max_concurrent_searches'
- $ref: '#/components/parameters/msearch___query.max_concurrent_shard_requests'
@@ -14020,6 +14023,7 @@ paths:
url: https://opensearch.org/docs/latest/api-reference/multi-search/
parameters:
- $ref: '#/components/parameters/msearch___path.index'
+ - $ref: '#/components/parameters/msearch___query.allow_partial_results'
- $ref: '#/components/parameters/msearch___query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/msearch___query.max_concurrent_searches'
- $ref: '#/components/parameters/msearch___query.max_concurrent_shard_requests'
@@ -26492,6 +26496,14 @@ components:
schema:
$ref: '#/components/schemas/_common___Indices'
style: simple
+ msearch___query.allow_partial_results:
+ in: query
+ name: allow_partial_results
+ description: Specifies whether to return partial results if there are shard request timeouts or shard failures
+ schema:
+ type: boolean
+ default: true
+ style: form
msearch___query.ccs_minimize_roundtrips:
in: query
name: ccs_minimize_roundtrips
@@ -41152,6 +41164,7 @@ components:
required:
- filter
unevaluatedProperties: true
+ x-protobuf-excluded: true
- properties:
filters:
$ref: '#/components/schemas/_common.aggregations___FiltersAggregation'
@@ -43972,7 +43985,7 @@ components:
min_doc_count:
description: Only return values that are found in more than `min_doc_count` hits.
type: integer
- format: int32
+ format: int64
missing:
$ref: '#/components/schemas/_common___FieldValue'
value_type:
@@ -43991,7 +44004,7 @@ components:
shard_min_doc_count:
description: The minimum number of documents in a bucket on each shard for it to be returned.
type: integer
- format: int32
+ format: int64
show_term_doc_count_error:
description: Set to `true` to return the `doc_count_error_upper_bound`, which is an upper bound to the error on the `doc_count` returned by each shard.
type: boolean
@@ -44168,17 +44181,26 @@ components:
- type: object
_common.aggregations___ValueType:
type: string
+ description: |-
+ The data type for a field. The server's `lenientParse` accepts multiple representations
+ for the same underlying type (for example, byte/short/integer/long all map to long).
enum:
- boolean
+ - byte
- date
- date_nanos
- double
+ - float
- geo_point
+ - integer
- ip
- long
- number
- numeric
+ - range
+ - short
- string
+ - unsigned_long
_common.aggregations___VariableWidthHistogramAggregate:
allOf:
- $ref: '#/components/schemas/_common.aggregations___MultiBucketAggregateBaseVariableWidthHistogramBucket'