Class: Elasticsearch::DSL::Search::Queries::MatchPhrasePrefix

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

Overview

The same as match_phrase, except that it allows for prefix matches on the last term in the text

Examples:


search do
  query do
    match_phrase_prefix :content do
      query 'example content'
      max_expansions 10
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize