Class: Elasticsearch::DSL::Search::Queries::Match

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

Overview

A simple to use, yet sophisticated query which returns documents matching the specified terms, taking into account field types, analyzers, etc. and allowing to search in phrase, prefix, fuzzy modes

Examples:


search do
  query do
    match :content do
      query    'how to fix my printer'
      operator 'and'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize