class OpenSearch::DSL::Search::Queries::DisMax

A query which will score the documents based on the highest score of any individual specified query, not by summing the scores (as eg. a ‘bool` query would)

@example

search do
  query do
    dis_max do
      queries [
       { match: { title:   'albino' } },
       { match: { content: 'elephant' } }
      ]
    end
  end
end

@see opensearch.org/guide/en/opensearch/guide/current/_best_fields.html