lib/elasticsearch/api/actions/rank_eval.rb in elasticsearch-api-7.5.0 vs lib/elasticsearch/api/actions/rank_eval.rb in elasticsearch-api-7.6.0.pre

- old
+ new

@@ -11,10 +11,13 @@ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # (options: open,closed,none,all) + # @option arguments [String] :search_type Search operation type + # (options: query_then_fetch,dfs_query_then_fetch) + # @option arguments [Hash] :body The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. (*Required*) # # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-rank-eval.html # def rank_eval(arguments = {}) @@ -40,10 +43,11 @@ # # @since 6.2.0 ParamsRegistry.register(:rank_eval, [ :ignore_unavailable, :allow_no_indices, - :expand_wildcards + :expand_wildcards, + :search_type ].freeze) end end end