-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Elasticsearch is adding a new version of index templates to support data streams. There are a few changes between v1 and v2.
What are index templates?
What is different between V1 and V2?
URL changes - The API endpoint for index templates v2 is /_index_template.
There is a new simulate index template API located at /_index_template/_simulate_index/{index}
With the addition of component templates, there is a new endpoint located at /_component_template
JSON Structure changes - There is a new template JSON object which contains the settings, mappings, and aliases objects.
There are 2 new optional parameters priority and composed_of.
Of all the templates that match the index pattern, the one with the highest priority will be applied.
The composed_of setting is a string array with the names of component templates that will be applied.
Component templates JSON will have 3 fields that follow the same format as in the index template. The three fields are template, version, and _meta.