elasticsearch关于设置ignore_above的问题 #2
dabing1022
started this conversation in
Events
Replies: 1 comment 1 reply
-
|
PUT _template/xxx } 删除当天索引立即生效 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我使用的是elk是6.8.10版本,在某个索引中,有个字段关于url的 默认的ignore_above是256,因为url字符超过了,所以没被存储下来。
ignore_above 是什么
关于
ignore_above官方的说明在这里:https://www.elastic.co/guide/en/elasticsearch/reference/6.8/ignore-above.html我的尝试
我通过在开发工具中用PUT xxx-*/_mapping/_doc 的方式 去除了这个长度限制
{ "properties": { "datapool": { "properties": { "url": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 32766 } } } } } } }但问题是只能针对当天后续的数据生效,但第二天生成的索引 (索引按天生成),新的ignore_above 又恢复默认是256,有没有统一设置的地方呢?
Beta Was this translation helpful? Give feedback.
All reactions