Assuming I have a lot of index templates and I want to update the same setting on all of them (change the number of primary or replica shards for example) is there a way to update all of the templates using a simple call to api?
the only way I know for the template update is to get the current template, change what I want and then PUT the updated template with the same name so it will override.
it depends how you have specified your templates but it is possible that multiple index templates match an index. This means you could define a "base template" that matches all indices that you are interested in and then more specific templates that only match certain indices.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.