Class MatchedQueries

java.lang.Object
org.opensearch.client.opensearch.core.search.MatchedQueries
All Implemented Interfaces:
Iterable<String>, Collection<String>, List<String>, SequencedCollection<String>, JsonpSerializable, PlainJsonSerializable, TaggedUnion<MatchedQueries.Kind,Object>

The names of queries that matched a hit, with optional per-query scores.

The server returns matched_queries in one of two shapes, and never both: an array of query names when include_named_queries_score is not set, or an object mapping query names to scores when include_named_queries_score is true.