不管我做什么,当索引创建的时候有心跳进程(7.10.2) Elasticsearch 映射所有字段,并且 monitor.id 将如下所示:
GET /heartbeat-7.10.2-2021.05.25
[...]
"monitor" : {
"properties" : {
"id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
[...]
即使我删除了索引、模板,并将模板更新为:
{
"order" : 1,
"index_patterns" : [
"heartbeat-7.10.2-*"
],
"settings" : {
},
"mappings" : {
"dynamic": false,
"properties" : {
"monitor" : {
"properties" : {
"id" : {
"ignore_above" : 1024,
"type" : "keyword"
}
}
}
}
},
"aliases" : { }
}
似乎忽略了模板配置。 没有其他心跳模板。 这是有问题的,因为这样我不能使用例如用于聚合的 monitor.id。这是多个字段的问题。
我对模板比较陌生,所以可能我遗漏了一些东西。
答案 0 :(得分:0)
显然我有 _template 和 _index_template 并且 _index_template 有优先权
之后
delete _index_template/heartbeat*
效果很好。