@@ -1324,7 +1324,7 @@ message DateDecayPlacement {
13241324 optional string origin = 3 ;
13251325
13261326 // A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
1327- optional string scale = 4 ;
1327+ string scale = 4 ;
13281328}
13291329message DateHistogramAggregate {
13301330 // The custom metadata attached to a resource.
@@ -1459,7 +1459,13 @@ message DateRangeQuery {
14591459 // The time zone identifier.
14601460 optional string time_zone = 11 ;
14611461
1462- string field = 12 ;
1462+ // Include the lower bound
1463+ optional bool include_lower = 12 ;
1464+
1465+ // Include the upper bound
1466+ optional bool include_upper = 13 ;
1467+
1468+ string field = 14 ;
14631469}
14641470message DateRangeQueryAllOfFrom {
14651471 oneof date_range_query_all_of_from {
@@ -1497,11 +1503,13 @@ message DecayFunctionBase {
14971503 optional MultiValueMode multi_value_mode = 1 ;
14981504}
14991505message DecayPlacement {
1500- optional DateDecayPlacement date_decay_placement = 1 ;
1506+ oneof decay_placement {
1507+ DateDecayPlacement date_decay_placement = 1 ;
15011508
1502- optional GeoDecayPlacement geo_decay_placement = 2 ;
1509+ GeoDecayPlacement geo_decay_placement = 2 ;
15031510
1504- optional NumericDecayPlacement numeric_decay_placement = 3 ;
1511+ NumericDecayPlacement numeric_decay_placement = 3 ;
1512+ }
15051513}
15061514message DeleteOperation {
15071515 // The routing value for the document.
@@ -2489,9 +2497,9 @@ message GeoDecayPlacement {
24892497
24902498 optional string offset = 2 ;
24912499
2492- optional GeoLocation origin = 3 ;
2500+ GeoLocation origin = 3 ;
24932501
2494- optional string scale = 4 ;
2502+ string scale = 4 ;
24952503}
24962504message GeoDistanceAggregate {
24972505 // The custom metadata attached to a resource.
@@ -2538,7 +2546,10 @@ message GeoDistanceQuery {
25382546 // Set to `true` to ignore an unmapped field and not match any documents for this query. Set to `false` to throw an exception if the field is not mapped.
25392547 optional bool ignore_unmapped = 6 ;
25402548
2541- map <string , GeoLocation > location = 7 ;
2549+ // The unit of distance measurement.
2550+ optional DistanceUnit unit = 7 ;
2551+
2552+ map <string , GeoLocation > location = 8 ;
25422553}
25432554message GeoDistanceSort {
25442555 // The mode for sorting on array or multi-valued fields.
@@ -4787,7 +4798,13 @@ message NumberRangeQuery {
47874798
47884799 optional NumberRangeQueryAllOfTo to = 9 ;
47894800
4790- string field = 10 ;
4801+ // Include the lower bound
4802+ optional bool include_lower = 10 ;
4803+
4804+ // Include the upper bound
4805+ optional bool include_upper = 11 ;
4806+
4807+ string field = 12 ;
47914808}
47924809message NumberRangeQueryAllOfFrom {
47934810 oneof number_range_query_all_of_from {
@@ -4812,9 +4829,9 @@ message NumericDecayPlacement {
48124829
48134830 optional double offset = 2 ;
48144831
4815- optional double origin = 3 ;
4832+ double origin = 3 ;
48164833
4817- optional double scale = 4 ;
4834+ double scale = 4 ;
48184835}
48194836enum OpType {
48204837 OP_TYPE_UNSPECIFIED = 0 ;
@@ -5475,7 +5492,9 @@ message RandomScoreFunctionSeed {
54755492 oneof random_score_function_seed {
54765493 int32 int32 = 1 ;
54775494
5478- string string = 2 ;
5495+ int64 int64 = 2 ;
5496+
5497+ string string = 3 ;
54795498 }
54805499}
54815500message RangeAggregate {
@@ -5990,7 +6009,7 @@ message SearchResponse {
59906009
59916010 optional PhaseTook phase_took = 3 ;
59926011
5993- SearchResultHits hits = 4 ;
6012+ HitsMetadata hits = 4 ;
59946013
59956014 repeated ProcessorExecutionDetail processor_results = 5 ;
59966015
@@ -6022,7 +6041,7 @@ message SearchResult {
60226041
60236042 optional PhaseTook phase_took = 3 ;
60246043
6025- SearchResultHits hits = 4 ;
6044+ HitsMetadata hits = 4 ;
60266045
60276046 repeated ProcessorExecutionDetail processor_results = 5 ;
60286047
@@ -6047,57 +6066,6 @@ message SearchResult {
60476066
60486067 optional string x_scroll_id = 15 ;
60496068}
6050- message SearchResultHits {
6051- optional HitsMetadataTotal total = 1 ;
6052-
6053- repeated SearchResultHitsAllOfHitsInner hits = 2 ;
6054-
6055- optional HitsMetadataMaxScore max_score = 3 ;
6056- }
6057- message SearchResultHitsAllOfHitsInner {
6058- optional ObjectMap fields = 1 ;
6059-
6060- map <string , StringArray > highlight = 2 ;
6061-
6062- map <string , InnerHitsResult > inner_hits = 3 ;
6063-
6064- repeated string matched_queries = 4 ;
6065-
6066- map <string , StringArray > ignored_field_values = 5 ;
6067-
6068- repeated FieldValue sort = 6 ;
6069-
6070- // The type of document or resource.
6071- optional string x_type = 7 ;
6072-
6073- optional string x_index = 8 ;
6074-
6075- // The unique identifier for a resource.
6076- optional string x_id = 9 ;
6077-
6078- optional HitXScore x_score = 10 ;
6079-
6080- optional Explanation x_explanation = 11 ;
6081-
6082- optional NestedIdentity x_nested = 12 ;
6083-
6084- repeated string x_ignored = 13 ;
6085-
6086- optional string x_shard = 14 ;
6087-
6088- optional string x_node = 15 ;
6089-
6090- optional string x_routing = 16 ;
6091-
6092- optional ObjectMap x_source = 17 ;
6093-
6094- // The sequence number of the document.
6095- optional int64 x_seq_no = 18 ;
6096-
6097- optional int64 x_primary_term = 19 ;
6098-
6099- optional int64 x_version = 20 ;
6100- }
61016069enum SearchType {
61026070 SEARCH_TYPE_UNSPECIFIED = 0 ;
61036071 SEARCH_TYPE_DFS_QUERY_THEN_FETCH = 1 ;
0 commit comments