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).
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).
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.