Template directory to store configurations?

I know that I can XPUT a template into an ElasticSearch cluster and it will persist. I'm wondering if there is a directory on each node that I can put a template file for persistence, kinda like mappings. Reason being is that in testing my ES cluster I am removing the entire contents of the data directory before doing additional tests. This requires me to XPUT the templates back (All 5 of them).

I like the convention that mappings use (http://www.elasticsearch.org/guide/reference/mapping/conf-mappings.html. The ability to have a 'mappings' directory under 'config'. I'm wondering if Index Templates follow the same convention.

No, there isn't an option for that. It gets a bit trickier, as they are stored as part of the metadata of the cluster.

On Wednesday, June 15, 2011 at 10:19 PM, phobos182 wrote:

I know that I can XPUT a template into an Elasticsearch cluster and it will
persist. I'm wondering if there is a directory on each node that I can put a
template file for persistence, kinda like mappings. Reason being is that in
testing my ES cluster I am removing the entire contents of the data
directory before doing additional tests. This requires me to XPUT the
templates back (All 5 of them).

I like the convention that mappings use
(Elasticsearch Platform — Find real-time answers at scale | Elastic.
The ability to have a 'mappings' directory under 'config'. I'm wondering if
Index Templates follow the same convention.

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Template-directory-to-store-configurations-tp3069014p3069014.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com (http://Nabble.com).

Gotcha. I'll just make it part of my test plan to XPUT back the templates.

Thanks!