diff --git a/protos/generated/models/aggregated_models.proto b/protos/generated/models/aggregated_models.proto index 4e0236f51ff..a7552f12fc1 100644 --- a/protos/generated/models/aggregated_models.proto +++ b/protos/generated/models/aggregated_models.proto @@ -11,14 +11,15 @@ message ObjectMap { message Value { oneof value { - int32 int32 = 1; - int64 int64 = 2; - float float = 3; - double double = 4; - string string = 5; - bool bool = 6; - ObjectMap object_map = 7; - ListValue list_value = 8; + NullValue null_value = 1; + int32 int32 = 2; + int64 int64 = 3; + float float = 4; + double double = 5; + string string = 6; + bool bool = 7; + ObjectMap object_map = 8; + ListValue list_value = 9; } } @@ -775,7 +776,7 @@ message BulkRequestBody { message BulkResponse { bool errors = 1; - repeated Items items = 2; + repeated Item items = 2; int64 took = 3; @@ -1074,7 +1075,7 @@ message CompositeAggregation { optional int32 size = 6; // The value sources used to build composite buckets. Keys are returned in the order of the `sources` definition. - repeated CompositeAggregationSourceMap sources = 7; + map sources = 7; } message CompositeAggregationSource { optional CompositeTermsAggregationSource terms = 1; @@ -1085,9 +1086,6 @@ message CompositeAggregationSource { optional CompositeGeoTileGridAggregationSource geotile_grid = 4; } -message CompositeAggregationSourceMap { - map composite_aggregation_source_map = 1; -} message CompositeBucket { int64 doc_count = 1; @@ -2199,9 +2197,6 @@ message FiltersAggregation { message FiltersBucket { int64 doc_count = 1; } -message FloatMap { - map float_map = 1; -} message FormatMetricAggregationBase { // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3502,7 +3497,7 @@ message IpRangeBucket { optional string to = 4; } -message Items { +message Item { optional ResponseItem index = 1; optional ResponseItem create = 2; @@ -5706,7 +5701,7 @@ message SearchRequestBody { optional TrackHits track_total_hits = 8; // Boosts the `_score` of documents from specified indexes. - repeated FloatMap indices_boost = 9; + map indices_boost = 9; // Array of wildcard (`*`) patterns. The request returns doc values for field names matching these patterns in the `hits.fields` property of the response. repeated FieldAndFormat docvalue_fields = 10; @@ -5878,7 +5873,7 @@ message ShardFailure { optional string status = 5; - optional bool primary = 6; + bool primary = 6; } message ShardInfo { int32 failed = 1; @@ -6265,7 +6260,7 @@ message SortCombinations { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; - StringMap field_with_direction = 2; + SortOrderMap field_with_direction = 2; FieldSortMap field_with_order = 3; @@ -6292,6 +6287,9 @@ enum SortOrder { SORT_ORDER_ASC = 1; SORT_ORDER_DESC = 2; } +message SortOrderMap { + map sort_order_map = 1; +} message SourceConfig { oneof source_config { bool fetch = 1; @@ -7011,7 +7009,7 @@ message TermsAggregation { // Coerced unmapped fields into the specified type. optional string value_type = 14; - repeated StringMap order = 15; + map order = 15; optional Script script = 16; @@ -7252,18 +7250,15 @@ message UpdateAction { // When `true`, uses the contents of `doc` as the value of `upsert`. optional bool doc_as_upsert = 3; - // The sequence number of the document. - optional int64 if_seq_no = 4; - - optional Script script = 5; + optional Script script = 4; // When `true`, executes the script whether or not the document exists. - optional bool scripted_upsert = 6; + optional bool scripted_upsert = 5; // If the document does not already exist, the contents of `upsert` are inserted as a new document. If the document exists, the `script` is executed. - optional bytes upsert = 7; + optional bytes upsert = 6; - optional SourceConfig x_source = 8; + optional SourceConfig x_source = 7; } message UpdateOperation { // The routing value for the document. diff --git a/protos/generated/services/default_service.proto b/protos/generated/services/default_service.proto index 12e36407b15..037516e2189 100644 --- a/protos/generated/services/default_service.proto +++ b/protos/generated/services/default_service.proto @@ -9,19 +9,19 @@ package org.opensearch.protobufs.services; import "models/aggregated_models.proto"; message BulkRequest { - // Name of the data stream, index, or index alias to perform bulk actions on. - string index = 1; - - repeated BulkRequestBody bulk_request_body = 2; + repeated BulkRequestBody bulk_request_body = 1; // `true` or `false` to return the `_source` field or not, or a list of fields to return. - optional SourceConfigParam x_source = 3; + optional SourceConfigParam x_source = 2; // A comma-separated list of source fields to exclude from the response. - repeated string x_source_excludes = 4; + repeated string x_source_excludes = 3; // A comma-separated list of source fields to include in the response. - repeated string x_source_includes = 5; + repeated string x_source_includes = 4; + + // Name of the data stream, index, or index alias to perform bulk actions on. + optional string index = 5; // ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter. optional string pipeline = 6; @@ -49,53 +49,53 @@ message BulkRequest { } message SearchRequest { - // A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`. - repeated string index = 1; - // Indicates which source fields are returned for matching documents. These fields are returned in the `hits._source` property of the search response. Valid values are: `true` to return the entire document source; `false` to not return the document source; `` to return the source fields that are specified as a comma-separated list (supports wildcard (`*`) patterns). - optional SourceConfigParam x_source = 2; + optional SourceConfigParam x_source = 1; // A comma-separated list of source fields to exclude from the response. You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. If the `_source` parameter is `false`, this parameter is ignored. - repeated string x_source_excludes = 3; + repeated string x_source_excludes = 2; // A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter. If the `_source` parameter is `false`, this parameter is ignored. - repeated string x_source_includes = 4; + repeated string x_source_includes = 3; // If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indexes. This behavior applies even if the request targets other open indexes. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. - optional bool allow_no_indices = 5; + optional bool allow_no_indices = 4; // If `true`, returns partial results if there are shard request timeouts or shard failures. If `false`, returns an error with no partial results. - optional bool allow_partial_search_results = 6; + optional bool allow_partial_search_results = 5; // If `true`, wildcard and prefix queries are analyzed. This parameter can only be used when the q query string parameter is specified. - optional bool analyze_wildcard = 7; + optional bool analyze_wildcard = 6; // The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. - optional int32 batched_reduce_size = 8; + optional int32 batched_reduce_size = 7; // The time after which the search request will be canceled. Request-level parameter takes precedence over `cancel_after_time_interval` cluster setting. - optional string cancel_after_time_interval = 9; + optional string cancel_after_time_interval = 8; // If `true`, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. - optional bool ccs_minimize_roundtrips = 10; + optional bool ccs_minimize_roundtrips = 9; // The default operator for query string query: AND or OR. This parameter can only be used when the `q` query string parameter is specified. - optional Operator default_operator = 11; + optional Operator default_operator = 10; // Field to use as default where no field prefix is given in the query string. This parameter can only be used when the q query string parameter is specified. - optional string df = 12; + optional string df = 11; // A comma-separated list of fields to return as the docvalue representation for each hit. - repeated string docvalue_fields = 13; + repeated string docvalue_fields = 12; // Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden`. - repeated ExpandWildcard expand_wildcards = 14; + repeated ExpandWildcard expand_wildcards = 13; // If `true`, concrete, expanded or aliased indexes will be ignored when frozen. - optional bool ignore_throttled = 15; + optional bool ignore_throttled = 14; // If `false`, the request returns an error if it targets a missing or closed index. - optional bool ignore_unavailable = 16; + optional bool ignore_unavailable = 15; + + // A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`. + repeated string index = 16; // Defines the number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. optional int32 max_concurrent_shard_requests = 17; @@ -116,7 +116,7 @@ message SearchRequest { optional bool request_cache = 22; // Indicates whether `hits.total` should be rendered as an integer or an object in the rest search response. - optional bool rest_total_hits_as_int = 23; + optional bool total_hits_as_int = 23; // A custom value used to route operations to a specific shard. repeated string routing = 24;