A template includes a set of regexps that determine which indexes it is applied to. For example, the default template
"index_patterns" : "logstash-*",
applies to all index names that start with logstash-
elasticsearch does not provide a way to tell it the data type when indexing a document, although the default field parsers often guess types correctly. It has to be done through an index template.