Haoyuan Ge
Haoyuan Ge

Reputation: 3699

How to load a index template file into elasticsearch when it starts up?

In elasticsearch v1.5, Index templates can be placed within the config location (path.conf) under the templates directory elasticsearch/config/templates. However, I found this template will not be loaded after I upgrade to v2.3 or v5.3. Is any way to load index template?

https://www.elastic.co/guide/en/elasticsearch/reference/1.5/indices-templates.html

Upvotes: 4

Views: 1354

Answers (1)

Andrei Stefan
Andrei Stefan

Reputation: 52368

No other way in 2.x or 5.x. This has been removed starting with 2.0.0-beta1 version of Elasticsearch.

This was documented here.

And reasons and discussions around this can be found here.

Upvotes: 6

Related Questions