Skip to content

Commit b7cb053

Browse files
committed
[API] Adds include_named_queries_score (Boolean) to search
Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false).
1 parent 79cce77 commit b7cb053

File tree

1 file changed

+1
-0
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions

1 file changed

+1
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/search.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module Actions
6868
# @option arguments [Number] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.
6969
# @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response
7070
# @option arguments [String] :min_compatible_shard_node The minimum compatible version that all shards involved in search should have for this request to be successful
71+
# @option arguments [Boolean] :include_named_queries_score Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false)
7172
# @option arguments [Hash] :headers Custom HTTP headers
7273
# @option arguments [Hash] :body The search definition using the Query DSL
7374
#

0 commit comments

Comments
 (0)