Class: OpenSearch::DSL::Search::Queries::MultiMatch

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

Overview

A query which allows to use the ‘match` query on multiple fields

Examples:


search do
  query do
    multi_match do
      query    'how to fix my printer'
      fields   [:title, :abstract, :content]
      operator 'and'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize