Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -199,7 +199,7 @@ public final TermsInclude include() {
* </p>
*/
@Nullable
public final Integer minDocCount() {
public final Long minDocCount() {
return this.minDocCount;
}

Expand Down Expand Up @@ -234,7 +234,7 @@ public final Script script() {
* </p>
*/
@Nullable
public final Integer shardMinDocCount() {
public final Long shardMinDocCount() {
return this.shardMinDocCount;
}

Expand Down Expand Up @@ -405,15 +405,15 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder<Builde
@Nullable
private TermsInclude include;
@Nullable
private Integer minDocCount;
private Long minDocCount;
@Nullable
private FieldValue missing;
@Nullable
private List<Map<String, SortOrder>> order;
@Nullable
private Script script;
@Nullable
private Integer shardMinDocCount;
private Long shardMinDocCount;
@Nullable
private Integer shardSize;
@Nullable
Expand Down Expand Up @@ -552,7 +552,7 @@ public final Builder include(Function<TermsInclude.Builder, ObjectBuilder<TermsI
* </p>
*/
@Nonnull
public final Builder minDocCount(@Nullable Integer value) {
public final Builder minDocCount(@Nullable Long value) {
this.minDocCount = value;
return this;
}
Expand Down Expand Up @@ -624,7 +624,7 @@ public final Builder script(Function<Script.Builder, ObjectBuilder<Script>> fn)
* </p>
*/
@Nonnull
public final Builder shardMinDocCount(@Nullable Integer value) {
public final Builder shardMinDocCount(@Nullable Long value) {
this.shardMinDocCount = value;
return this;
}
Expand Down Expand Up @@ -711,15 +711,15 @@ protected static void setupTermsAggregationDeserializer(ObjectDeserializer<Terms
op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field");
op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format");
op.add(Builder::include, TermsInclude._DESERIALIZER, "include");
op.add(Builder::minDocCount, JsonpDeserializer.integerDeserializer(), "min_doc_count");
op.add(Builder::minDocCount, JsonpDeserializer.longDeserializer(), "min_doc_count");
op.add(Builder::missing, FieldValue._DESERIALIZER, "missing");
op.add(
Builder::order,
JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringMapDeserializer(SortOrder._DESERIALIZER)),
"order"
);
op.add(Builder::script, Script._DESERIALIZER, "script");
op.add(Builder::shardMinDocCount, JsonpDeserializer.integerDeserializer(), "shard_min_doc_count");
op.add(Builder::shardMinDocCount, JsonpDeserializer.longDeserializer(), "shard_min_doc_count");
op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size");
op.add(Builder::showTermDocCountError, JsonpDeserializer.booleanDeserializer(), "show_term_doc_count_error");
op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,29 @@

// typedef: _types.aggregations.ValueType

/**
* The data type for a field. The server's <code>lenientParse</code> 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"),
Expand All @@ -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;

Expand Down
26 changes: 24 additions & 2 deletions java-codegen/opensearch-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -41152,6 +41164,7 @@ components:
required:
- filter
unevaluatedProperties: true
x-protobuf-excluded: true
- properties:
filters:
$ref: '#/components/schemas/_common.aggregations___FiltersAggregation'
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down
Loading