At www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html it states that "Index templates can also be placed within the config location (path.conf) under the templates directory (note, make sure to place them on all master eligible nodes). For example, a file called template_1.json can be placed under config/templates..."
I do not see a config/templates directory. Do i need to create it somewhere? I'm using elasticsearch 1.0.1-1.
At Elasticsearch Platform — Find real-time answers at scale | Elastic it states that "Index templates can also be placed within the config location (path.conf) under the templates directory (note, make sure to place them on all master eligible nodes). For example, a file called template_1.json can be placed under config/templates..."
I do not see a config/templates directory. Do i need to create it somewhere? I'm using elasticsearch 1.0.1-1.
While it is possible to have a templates directory, it is not advisable to
use it in a production environment. You would have to keep the contents of
that directory synchronized between all of your nodes, otherwise you run
the risk of inconsistencies.
It is recommended, instead, to use the API to upload templates and update
them that way, as needed.
--Aaron
On Wednesday, January 14, 2015 at 7:58:30 AM UTC-7, Eric Howard wrote:
At Elasticsearch Platform — Find real-time answers at scale | Elastic
it states that "Index templates can also be placed within the config
location (path.conf) under the templates directory (note, make sure to
place them on all master eligible nodes). For example, a file called
template_1.json can be placed under config/templates..."
I do not see a config/templates directory. Do i need to create it
somewhere? I'm using elasticsearch 1.0.1-1.
I added the template file to each node and restarted elasticsearch on each node but do not see the template when i issue "curl -XGET localhost:9200/_template/?pretty".
If i use the API, are the changes persistent over reboots?
I added the template file to each node and restarted elasticsearch on each node but do not see the template when i issue "curl -XGET localhost:9200/_template/?pretty".
If i use the API, are the changes persistent over reboots?
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.