【发布时间】:2021-05-25 20:27:56
【问题描述】:
无论我做什么,当使用心跳进程创建索引时(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 用于聚合。这是多个字段的问题。
我对模板比较陌生,所以我可能遗漏了一些东西。
【问题讨论】:
-
你能展示你从
GET _cat/templates?v得到什么吗?
标签: elasticsearch