启动时如何将索引模板文件加载到elasticsearch中? [英] How to load a index template file into elasticsearch when it starts up?
问题描述
在elasticsearch v1.5中,可以将索引模板放在模板目录 elasticsearch / config / templates
下的配置位置(path.conf)中。但是,我发现升级到v2.3或v5.3后将不会加载此模板。有什么方法可以加载索引模板吗?
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/zh-CN/elasticsearch/reference/1.5/indices-templates.html
推荐答案
在2.x或5.x中没有其他方法。从Elasticsearch 2.0.0-beta1版本开始已将其删除。
No other way in 2.x or 5.x. This has been removed starting with 2.0.0-beta1 version of Elasticsearch.
此处。
关于此的原因和讨论都可以找到此处。
And reasons and discussions around this can be found here.
这篇关于启动时如何将索引模板文件加载到elasticsearch中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!