Method: Chewy::Index::Mapping::ClassMethods#template
- Defined in:
- lib/chewy/index/mapping.rb
#template(*args, **options) ⇒ Object Also known as: dynamic_template
Defines dynamic template in mapping root objects
Name for each template is generated with the following
rule: template_#!{dynamic_templates.size + 1}.
173 174 175 |
# File 'lib/chewy/index/mapping.rb', line 173 def template(*args, **) root.dynamic_template(*args, **) end |