Class: Elasticsearch::DSL::Search::Queries::MatchPhrase

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

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize