Class: OpenSearch::DSL::Search::Queries::Match

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/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

Method Summary

Methods included from BaseComponent

included, #initialize