@@ -272,7 +272,7 @@ message SearchResponse {
272272 optional ClusterStatistics x_clusters = 7 ;
273273
274274 // [optional] Retrieved specific fields in the search response
275- optional ObjectMap fields = 8 ;
275+ optional ObjectMap fields = 8 [ deprecated = true ] ;
276276
277277 // [optional] The number of times that the coordinating node aggregates results from batches of shard responses
278278 optional int32 num_reduce_phases = 9 ;
@@ -415,7 +415,7 @@ message HitsMetadataHitsInner {
415415 map <string , InnerHitsResult > inner_hits = 8 ;
416416
417417 // [optional] List of matched query names used in the search request.
418- repeated string matched_queries = 9 ;
418+ repeated string matched_queries = 9 [ deprecated = true ] ;
419419
420420 // [optional] Defines from what inner nested object this inner hit came from
421421 optional NestedIdentity x_nested = 10 ;
@@ -451,6 +451,9 @@ message HitsMetadataHitsInner {
451451
452452 // [optional] Contains metadata values for the documents.
453453 optional ObjectMap meta_fields = 21 ;
454+
455+ // [optional] List of matched query names used in the search request.
456+ optional HitMatchedQueries matched_queries_2 = 22 ;
454457}
455458
456459message ClusterStatistics {
@@ -1192,11 +1195,13 @@ message GeoLocation {
11921195 // The location specified using a geohash value.
11931196 GeoHashLocation geohash = 2 ;
11941197
1195- DoubleArray double_array = 3 ;
1198+ DoubleArray double_array = 3 [ deprecated = true ] ;
11961199
11971200 // The location specified as a string in `lat,lon` or WKT format.
11981201 string text = 4 ;
11991202
1203+ DoubleArray coords = 5 ;
1204+
12001205 }
12011206}
12021207
@@ -2527,10 +2532,12 @@ message PrefixQuery {
25272532
25282533message TermsQueryField {
25292534 oneof terms_query_field {
2530- FieldValueArray field_value_array = 1 ;
2535+ FieldValueArray field_value_array = 1 [ deprecated = true ] ;
25312536
25322537 TermsLookup lookup = 2 ;
25332538
2539+ FieldValueArray value = 3 ;
2540+
25342541 }
25352542}
25362543
@@ -3148,6 +3155,21 @@ message FieldValueFactorScoreFunction {
31483155 optional FieldValueFactorModifier modifier = 4 ;
31493156}
31503157
3158+ message DoubleMap {
3159+
3160+ // A map of matched query names to their scores (when `include_named_queries_score` is true).
3161+ map <string , double > double_map = 1 ;
3162+ }
3163+
3164+ message HitMatchedQueries {
3165+ oneof hit_matched_queries {
3166+ StringArray names = 1 ;
3167+
3168+ DoubleMap scores = 2 ;
3169+
3170+ }
3171+ }
3172+
31513173enum FieldValueFactorModifier {
31523174 FIELD_VALUE_FACTOR_MODIFIER_UNSPECIFIED = 0 ;
31533175 FIELD_VALUE_FACTOR_MODIFIER_LN = 1 ;
@@ -3194,7 +3216,7 @@ enum VersionType {
31943216 VERSION_TYPE_EXTERNAL = 1 ;
31953217 VERSION_TYPE_EXTERNAL_GTE = 2 ;
31963218 VERSION_TYPE_INTERNAL = 3 ;
3197- VERSION_TYPE_FORCE = 4 ;
3219+ VERSION_TYPE_FORCE = 4 [ deprecated = true ] ;
31983220}
31993221
32003222enum Refresh {
0 commit comments