@@ -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 {
@@ -3148,6 +3151,21 @@ message FieldValueFactorScoreFunction {
31483151 optional FieldValueFactorModifier modifier = 4 ;
31493152}
31503153
3154+ message DoubleMap {
3155+
3156+ // A map of matched query names to their scores (when `include_named_queries_score` is true).
3157+ map <string , double > double_map = 1 ;
3158+ }
3159+
3160+ message HitMatchedQueries {
3161+ oneof hit_matched_queries {
3162+ StringArray names = 1 ;
3163+
3164+ DoubleMap scores = 2 ;
3165+
3166+ }
3167+ }
3168+
31513169enum FieldValueFactorModifier {
31523170 FIELD_VALUE_FACTOR_MODIFIER_UNSPECIFIED = 0 ;
31533171 FIELD_VALUE_FACTOR_MODIFIER_LN = 1 ;
@@ -3194,7 +3212,7 @@ enum VersionType {
31943212 VERSION_TYPE_EXTERNAL = 1 ;
31953213 VERSION_TYPE_EXTERNAL_GTE = 2 ;
31963214 VERSION_TYPE_INTERNAL = 3 ;
3197- VERSION_TYPE_FORCE = 4 ;
3215+ VERSION_TYPE_FORCE = 4 [ deprecated = true ] ;
31983216}
31993217
32003218enum Refresh {
0 commit comments