Skip to content

Commit 0cafe85

Browse files
lucy66hwgithub-actions[bot]
authored andcommitted
Protobuf schema change detected
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 05cb635 commit 0cafe85

2 files changed

Lines changed: 23 additions & 36 deletions

File tree

protos/generated/models/aggregated_models.proto

Lines changed: 15 additions & 25 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;
21412129

2142-
optional string string = 3;
2130+
optional GeneralNumber general_number = 3;
2131+
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;
@@ -6271,7 +6265,7 @@ message SortCombinations {
62716265
// The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields.
62726266
string field = 1;
62736267

6274-
StringMap field_with_direction = 2;
6268+
SortOrderMap field_with_direction = 2;
62756269

62766270
FieldSortMap field_with_order = 3;
62776271

@@ -6298,6 +6292,9 @@ enum SortOrder {
62986292
SORT_ORDER_ASC = 1;
62996293
SORT_ORDER_DESC = 2;
63006294
}
6295+
message SortOrderMap {
6296+
map<string, SortOrder> sort_order_map = 1;
6297+
}
63016298
message SourceConfig {
63026299
oneof source_config {
63036300
bool fetch = 1;
@@ -6681,13 +6678,6 @@ message StringTermsBucket {
66816678

66826679
string key = 3;
66836680
}
6684-
message StringifiedInteger {
6685-
oneof stringified_integer {
6686-
int32 int32 = 1;
6687-
6688-
string string = 2;
6689-
}
6690-
}
66916681
message StupidBackoffSmoothingModel {
66926682
double discount = 1;
66936683
}
@@ -7024,7 +7014,7 @@ message TermsAggregation {
70247014
// Coerced unmapped fields into the specified type.
70257015
optional string value_type = 14;
70267016

7027-
repeated StringMap order = 15;
7017+
repeated SortOrderMap order = 15;
70287018

70297019
optional Script script = 16;
70307020

@@ -7382,7 +7372,7 @@ enum WaitForActiveShardOptions {
73827372
message WaitForActiveShards {
73837373
oneof wait_for_active_shards {
73847374
// The number of active shards to wait for.
7385-
StringifiedInteger count = 1;
7375+
int32 count = 1;
73867376

73877377
// Determines how many shards to wait for.
73887378
WaitForActiveShardOptions option = 2;

protos/generated/services/default_service.proto

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,29 +124,26 @@ message SearchRequest {
124124
// 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.
125125
optional string scroll = 25;
126126

127-
// Customizable sequence of processing stages applied to search queries.
128-
optional string search_pipeline = 26;
129-
130127
// How distributed term frequencies are calculated for relevance scoring.
131-
optional SearchType search_type = 27;
128+
optional SearchType search_type = 26;
132129

133130
// Specifies which field to use for suggestions.
134-
optional string suggest_field = 28;
131+
optional string suggest_field = 27;
135132

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

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

142139
// 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.
143-
optional string suggest_text = 31;
140+
optional string suggest_text = 30;
144141

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

148145
// Global query parameters
149-
optional GlobalParams global_params = 33;
146+
optional GlobalParams global_params = 32;
150147

151-
optional SearchRequestBody search_request_body = 34;
148+
optional SearchRequestBody search_request_body = 33;
152149
}

0 commit comments

Comments
 (0)