Nik Everett 7c3886769f Breaking changes docs for template index_patterns
0219a211d3539781ad4bc59bbb68ab9dd5633090 added support for templates
to have multiple patterns and renamed `template` to `index_patterns`.
This adds the breaking changes docs for that.
2016-11-11 10:13:19 -05:00

30 lines
805 B
Plaintext

[[breaking_60_indices_changes]]
=== Templates changes
==== `template` is now `index_patterns`
Previously templates expressed the indices that they should match using a glob
style pattern in the `template` field. They should now use the `index_patterns`
field instead. As the name implies you can define multiple glob style patterns
in an array but for convenience defining a single pattern as a bare string is
also supported. So both of these examples are valid:
[source,js]
--------------------------------------------------
PUT _template/template_1
{
"index_patterns": ["te*", "bar*"],
"settings": {
"number_of_shards": 1
}
}
PUT _template/template_2
{
"index_patterns": "te*",
"settings": {
"number_of_shards": 1
}
}
--------------------------------------------------
// CONSOLE