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

久未见 提交于 2019-12-23 12:02:11

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/44021339/how-to-load-a-index-template-file-into-elasticsearch-when-it-starts-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!