From 6cd0f42a0532d3ecfc0d52159614f421fda08564 Mon Sep 17 00:00:00 2001 From: keithhc2 Date: Thu, 3 Feb 2022 16:13:28 -0800 Subject: [PATCH] Added warning about symbols Signed-off-by: keithhc2 --- _opensearch/index-templates.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_opensearch/index-templates.md b/_opensearch/index-templates.md index 3e9f18a0..abeba379 100644 --- a/_opensearch/index-templates.md +++ b/_opensearch/index-templates.md @@ -16,7 +16,7 @@ To create an index template, use a POST request: POST _index_template ``` -This command creates a template named `daily_logs` and applies it to any new index whose name matches the regular expression `logs-2020-01-*` and also adds it to the `my_logs` alias: +This command creates a template named `daily_logs` and applies it to any new index whose name matches the pattern `logs-2020-01-*` and also adds it to the `my_logs` alias: ```json PUT _index_template/daily_logs @@ -97,6 +97,8 @@ GET logs-2020-01-01 Any additional indices that match this pattern---`logs-2020-01-02`, `logs-2020-01-03`, and so on---will inherit the same mappings and settings. +Index patterns cannot contain any of the following characters: `:`, `"`, `*`, `+`, `/`, `\`, `|`, `?`, `#`, `>`, and `<`. + ### Retrieve a template To list all index templates: