Index Templates API
来源:互联网 发布:最新网络红歌排行榜 编辑:程序博客网 时间:2024/04/29 18:42
https://people.mozilla.org/~wkahngreene/elastic/guide/reference/api/admin-indices-templates.html
—- layout: guide title: Index Templates API cat: guide sidebar: reference_api —-
Index templates allow to define templates that will automatically be applied to new indices created. The templates include both settings and mappings, and a simple pattern template that controls if the template will be applied to the index created. For example:
Defines a template named template_1, with a template pattern of te*. The settings and mappings will be applied to any index name that matches thete* template.
Deleting a Template
Index templates are identified by a name (in the above case template_1) and can be delete as well:
GETting a Template
Index templates are identified by a name (in the above case template_1) and can be retrieved using the following:
To get list of all index templates you can use Cluster State API and check for the metadata/templates section of the response.
Multiple Template Matching
Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. For example:
The above will disable storing the _source on all type1 types, but for indices of that start with te*, source will still be enabled. Note, for mappings, the merging is “deep”, meaning that specific object/property based mappings can easily be added/overridden on higher order templates, with lower order templates providing the basis.
- Index Templates API
- ElasticSearch Index templates属性描述
- API Index
- Zabbix-templates / 2.0 / VMware / VMware vCenter API and objects templates
- Elasticsearch模块功能之-索引模板(Index templates)
- 08-索引模版--Index Templates--es横向扩展设计
- jQuery API .index()
- Windows API Index
- ElasticSearch Index API
- Windows API Index
- Templates
- templates
- Templates
- Templates
- Templates
- templates
- templates
- templates
- yii2.0 union all 查询 如何使用
- SurfaceView和View的区别
- redis保存数据的几种类型
- 利用mysql存储过程向数据库批量插入数据
- 升级Xcode8后控制台输出警告
- Index Templates API
- Ajax局部刷新后,重新加载百度分享
- 算法之数字反转问题
- Hive最新数据操作详解(超级详细)
- 买房购车注意事项
- 学习 Node.js 的 6 个步骤
- 算法基础4—快速排序
- 华夏群英传隐私政策
- 项目知识复习3----CAN总线