Index Templates

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.

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01f58b9f-df80-4908-b3c1-6fc349bc72ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes. This dir does not exist. You need to create it yourself.
It should be readable by the user who run elasticsearch.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 14 janv. 2015 à 15:58, Eric Howard dangerguy@gmail.com a écrit :

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.

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01f58b9f-df80-4908-b3c1-6fc349bc72ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/EEB678EE-3A9B-4238-B608-2015A42E2895%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

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

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/778e6bb6-c0a8-492c-bf6f-0ecd0132224e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3526c5f7-62db-4b29-a2ea-4e32d32e8d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 janv. 2015 à 19:08, Eric Howard dangerguy@gmail.com a écrit :

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?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3526c5f7-62db-4b29-a2ea-4e32d32e8d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9CBB8F9D-0A94-44E9-AE17-AEAC35B61FBD%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Yes, they are persistent.

—Aaron

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1421261604862.e6b315ca%40Nodemailer.
For more options, visit https://groups.google.com/d/optout.