added info about the priority value

This commit is contained in:
ashwinkumar12345 2021-09-27 13:08:27 -07:00
parent d2ba96967b
commit eda842a36d
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ PUT _plugins/_ism/policies/policy_id
}
```
If you have more than one template that matches an index pattern, ISM uses the priority value to determine which template to apply.
For an example ISM template policy, see [Sample policy with ISM template]({{site.url}}{{site.baseurl}}/im-plugin/ism/policies#sample-policy-with-ism-template).
Older versions of the plugin include the `policy_id` in an index template, so when an index is created that matches the index template pattern, the index will have the policy attached to it: