Class: OpenSearch::DSL::Search::Queries::MatchPhrase

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

Overview

A query that analyzes the text and creates a phrase query out of the analyzed text

Examples:


search do
  query do
    match_phrase :content do
      query 'example content'
      analyzer 'standard'
    end
  end
end

Method Summary

Methods included from BaseComponent

included, #initialize