Class: OpenSearch::DSL::Search::Queries::Template

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