在elasticsearch v1.5中,索引模板可以放置在templates目录下的配置位置(path.conf)中elasticsearch/config/templates
。但是,我发现升级到v2.3或v5.3后,这个模板将不会被加载。有什么办法可以加载索引模板吗?
https://www.elastic.co/guide/en/elasticsearch/reference/1.5/indices-templates.html https://www.elastic.co/guide/en/elasticsearch/reference/1.5/indices-templates.html
在 2.x 或 5.x 中没有其他方法。从 Elasticsearch 2.0.0-beta1 版本开始,此功能已被删除。
这已记录在案here https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_index_api_changes.html#_file_based_index_templates.
以及相关的原因和讨论可以找到here https://github.com/elastic/elasticsearch/pull/10870.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)