Class: Elasticsearch::DSL::Search::Queries::Template

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

Overview

A query which allows to use Mustache templates for query definitions

Examples:


search do
  query do
    template do
      query  match: { content: '{query_string}' }
      params query_string: 'twitter'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize