Skip to content

Commit ffdb1f3

Browse files
Protobuf schema change detected (opensearch-project#296)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: lucy66hw <178352792+lucy66hw@users.noreply.github.com>
1 parent 364cad7 commit ffdb1f3

2 files changed

Lines changed: 19 additions & 30 deletions

File tree

protos/generated/models/aggregated_models.proto

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,6 +2683,17 @@ message GlobalAggregation {
26832683
// Sub-aggregations for this bucket aggregation
26842684
map<string, AggregationContainer> aggs = 4;
26852685
}
2686+
message GlobalParams {
2687+
optional ObjectMap pretty = 1;
2688+
2689+
optional ObjectMap human = 2;
2690+
2691+
optional ObjectMap error_trace = 3;
2692+
2693+
optional ObjectMap source = 4;
2694+
2695+
optional ObjectMap filter_path = 5;
2696+
}
26862697
message GoogleNormalizedDistanceHeuristic {
26872698
// Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to.
26882699
optional bool background_is_superset = 1;
@@ -3114,7 +3125,7 @@ message HitsMetadataJsonValue {
31143125
optional HitsMetadataMaxScore max_score = 3;
31153126
}
31163127
message HitsMetadataJsonValueAllOfHits {
3117-
optional ObjectMap source = 1 [json_name = "_source"];
3128+
optional ObjectMap source = 1;
31183129
}
31193130
message HitsMetadataMaxScore {
31203131
oneof hits_metadata_max_score {
@@ -3221,6 +3232,8 @@ message HybridQuery {
32213232
repeated QueryContainer queries = 3;
32223233

32233234
optional int32 pagination_depth = 4;
3235+
3236+
optional QueryContainer filter = 5;
32243237
}
32253238
message IdsQuery {
32263239
// Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score.

protos/generated/services/default_service.proto

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,8 @@ message BulkRequest {
4444
// The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
4545
optional WaitForActiveShards wait_for_active_shards = 12;
4646

47-
// Whether to pretty-format the returned JSON response.
48-
optional bool pretty = 13;
49-
50-
// Whether to return human-readable values for statistics.
51-
optional bool human = 14;
52-
53-
// Whether to include the stack trace of returned errors.
54-
optional bool error_trace = 15;
55-
56-
// The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
57-
optional string source = 16;
58-
59-
// A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.
60-
repeated string filter_path = 17;
47+
// Global query parameters
48+
optional GlobalParams global_params = 13;
6149
}
6250

6351
message BulkResponse {
@@ -162,22 +150,10 @@ message SearchRequest {
162150
// If `true`, aggregation and suggester names are be prefixed by their respective types in the response.
163151
optional bool typed_keys = 32;
164152

165-
// Whether to pretty-format the returned JSON response.
166-
optional bool pretty = 33;
167-
168-
// Whether to return human-readable values for statistics.
169-
optional bool human = 34;
170-
171-
// Whether to include the stack trace of returned errors.
172-
optional bool error_trace = 35;
173-
174-
// The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
175-
optional string source = 36;
176-
177-
// A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.
178-
repeated string filter_path = 37;
153+
// Global query parameters
154+
optional GlobalParams global_params = 33;
179155

180-
optional SearchRequestBody search_request_body = 38;
156+
optional SearchRequestBody search_request_body = 34;
181157
}
182158

183159
message SearchResponse {

0 commit comments

Comments
 (0)