Class: Elasticsearch::DSL::Search::Queries::DisMax

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/elasticsearch/dsl/search/queries/dis_max.rb

Overview

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)

Examples:


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

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize