Skip to content

Commit 04ca9d6

Browse files
Protobuf schema change detected (opensearch-project#301)
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 cde962c commit 04ca9d6

2 files changed

Lines changed: 18 additions & 47 deletions

File tree

protos/generated/models/aggregated_models.proto

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,16 +1709,7 @@ message Explanation {
17091709

17101710
repeated Explanation details = 2;
17111711

1712-
ExplanationValue value = 3;
1713-
}
1714-
message ExplanationValue {
1715-
optional int32 int32 = 1;
1716-
1717-
optional int64 int64 = 2;
1718-
1719-
optional float float = 3;
1720-
1721-
optional double double = 4;
1712+
float value = 3;
17221713
}
17231714
message ExtendedBounds {
17241715
ObjectMap max = 1;
@@ -2058,9 +2049,6 @@ message FieldSort {
20582049

20592050
// The numeric type to use for sorting.
20602051
optional FieldSortNumericType numeric_type = 6;
2061-
2062-
// The format to use for the sort values.
2063-
optional string format = 7;
20642052
}
20652053
message FieldSortMap {
20662054
map<string, FieldSort> field_sort_map = 1;
@@ -2137,9 +2125,11 @@ enum FieldType {
21372125
message FieldValue {
21382126
optional bool bool = 1;
21392127

2140-
optional GeneralNumber general_number = 2;
2128+
optional NullValue null_value = 2;
2129+
2130+
optional GeneralNumber general_number = 3;
21412131

2142-
optional string string = 3;
2132+
optional string string = 4;
21432133
}
21442134
message FieldValueArray {
21452135
repeated FieldValue field_value_array = 1;
@@ -3056,6 +3046,8 @@ message Hit {
30563046
optional int64 x_primary_term = 19;
30573047

30583048
optional int64 x_version = 20;
3049+
3050+
optional ObjectMap meta_fields = 21;
30593051
}
30603052
message HitXScore {
30613053
oneof hit_x_score {
@@ -3114,6 +3106,8 @@ message HitsMetadataHitsInner {
31143106
optional int64 x_primary_term = 19;
31153107

31163108
optional int64 x_version = 20;
3109+
3110+
optional ObjectMap meta_fields = 21;
31173111
}
31183112
message HitsMetadataJsonValue {
31193113
optional HitsMetadataTotal total = 1;
@@ -6681,13 +6675,6 @@ message StringTermsBucket {
66816675

66826676
string key = 3;
66836677
}
6684-
message StringifiedInteger {
6685-
oneof stringified_integer {
6686-
int32 int32 = 1;
6687-
6688-
string string = 2;
6689-
}
6690-
}
66916678
message StupidBackoffSmoothingModel {
66926679
double discount = 1;
66936680
}
@@ -7382,7 +7369,7 @@ enum WaitForActiveShardOptions {
73827369
message WaitForActiveShards {
73837370
oneof wait_for_active_shards {
73847371
// The number of active shards to wait for.
7385-
StringifiedInteger count = 1;
7372+
int32 count = 1;
73867373

73877374
// Determines how many shards to wait for.
73887375
WaitForActiveShardOptions option = 2;

protos/generated/services/default_service.proto

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ message BulkRequest {
4848
optional GlobalParams global_params = 13;
4949
}
5050

51-
message BulkResponse {
52-
oneof response {
53-
BulkResponse bulk_response_200 = 1;
54-
}
55-
}
5651
message SearchRequest {
5752
// 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`.
5853
repeated string index = 1;
@@ -129,37 +124,26 @@ message SearchRequest {
129124
// Period to retain the search context for scrolling. See Scroll search results. By default, this value cannot exceed `1d` (24 hours). You can change this limit using the `search.max_keep_alive` cluster-level setting.
130125
optional string scroll = 25;
131126

132-
// Customizable sequence of processing stages applied to search queries.
133-
optional string search_pipeline = 26;
134-
135127
// How distributed term frequencies are calculated for relevance scoring.
136-
optional SearchType search_type = 27;
128+
optional SearchType search_type = 26;
137129

138130
// Specifies which field to use for suggestions.
139-
optional string suggest_field = 28;
131+
optional string suggest_field = 27;
140132

141133
// Specifies the suggest mode. This parameter can only be used when the `suggest_field` and `suggest_text` query string parameters are specified.
142-
optional SuggestMode suggest_mode = 29;
134+
optional SuggestMode suggest_mode = 28;
143135

144136
// Number of suggestions to return. This parameter can only be used when the `suggest_field` and `suggest_text` query string parameters are specified.
145-
optional int32 suggest_size = 30;
137+
optional int32 suggest_size = 29;
146138

147139
// The source text for which the suggestions should be returned. This parameter can only be used when the `suggest_field` and `suggest_text` query string parameters are specified.
148-
optional string suggest_text = 31;
140+
optional string suggest_text = 30;
149141

150142
// If `true`, aggregation and suggester names are be prefixed by their respective types in the response.
151-
optional bool typed_keys = 32;
143+
optional bool typed_keys = 31;
152144

153145
// Global query parameters
154-
optional GlobalParams global_params = 33;
155-
156-
optional SearchRequestBody search_request_body = 34;
157-
}
146+
optional GlobalParams global_params = 32;
158147

159-
message SearchResponse {
160-
oneof response {
161-
SearchResponse search_response_200 = 1;
162-
ErrorResponseBase error_response_base_400 = 2;
163-
ErrorResponseBase error_response_base_404 = 3;
164-
}
148+
optional SearchRequestBody search_request_body = 33;
165149
}

0 commit comments

Comments
 (0)