From 9c21efb53b1fd3af9206f40c66efdb0a4ef0062d Mon Sep 17 00:00:00 2001 From: Senthil <34865595+senthilkumarmohan@users.noreply.github.com> Date: Thu, 25 Oct 2018 04:30:13 +0100 Subject: [PATCH 1/2] Improved documentation - reg multiple index_patterns Modified example text to include multiple index patterns used in the code --- docs/reference/indices/templates.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/indices/templates.asciidoc b/docs/reference/indices/templates.asciidoc index 051e78fc44297..dffca8924a040 100644 --- a/docs/reference/indices/templates.asciidoc +++ b/docs/reference/indices/templates.asciidoc @@ -46,9 +46,9 @@ PUT _template/template_1 NOTE: Index templates provide C-style /* */ block comments. Comments are allowed everywhere in the JSON document except before the initial opening curly bracket. -Defines a template named `template_1`, with a template pattern of `te*`. +Defines a template named `template_1`, with a template pattern of `te*` or `bar*`. The settings and mappings will be applied to any index name that matches -the `te*` pattern. +the `te*` or or `bar*` pattern. It is also possible to include aliases in an index template as follows: From 0b437d7a68f03169b5b719ff4dd26c3107b0545a Mon Sep 17 00:00:00 2001 From: Senthil <34865595+senthilkumarmohan@users.noreply.github.com> Date: Thu, 25 Oct 2018 04:37:06 +0100 Subject: [PATCH 2/2] Update templates.asciidoc --- docs/reference/indices/templates.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/indices/templates.asciidoc b/docs/reference/indices/templates.asciidoc index dffca8924a040..e70f461d3bc23 100644 --- a/docs/reference/indices/templates.asciidoc +++ b/docs/reference/indices/templates.asciidoc @@ -48,7 +48,7 @@ everywhere in the JSON document except before the initial opening curly bracket. Defines a template named `template_1`, with a template pattern of `te*` or `bar*`. The settings and mappings will be applied to any index name that matches -the `te*` or or `bar*` pattern. +the `te*` or `bar*` pattern. It is also possible to include aliases in an index template as follows: