Index templates - OpenSearch documentation stats that i can override a parts of a template if i index match with a higher priority template. This does not appear to work for me as the higher priority always takes preference and i lose my settings from the lower priority template.
It is correct “If the index name matches more than one template, OpenSearch takes the mappings and settings from the template with the highest priority and applies it to the index.”
Index templates - OpenSearch Documentation seems to suggest the templates would be merged. Use ‘test’ as a base and the override / set any settings in ‘test2’ as it has a higher priority.
Essentially, i with to use the same base template but change the alias to say, test_core_1 test_access_1.
What it suggests is that you can use the existing template as a base for the new template (with desired changes) and set a higher(est) priority, “OpenSearch takes the mappings and settings from the template with the highest priority” (If the index name matches more than one template (no merge)).