【发布时间】:2021-01-26 15:44:40
【问题描述】:
我的一个索引有这个映射:
"mappings": {
"properties": {
"count": {
"type": "integer"
},
"currency": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 16
}
}
},
"query": {
"properties": {
"match_all": {
"type": "object"
},
"range": {
"properties": {
"hour": {
"properties": {
"gte": {
"type": "date"
},
"lt": {
"type": "date"
}
}
}
}
}
}
}
}
}
我不明白为什么会这样,所以我创建了一个新索引并确保其中没有这个 查询 绒毛。在确保新索引的映射没有问题后,我开始了重新索引过程,但过了一段时间,我再次注意到:
"mappings": {
"properties": {
"count": {
"type": "integer"
},
"currency": {
"type": "keyword",
"index_options": "freqs"
},
"query": {
"properties": {
"match_all": {
"type": "object"
}
}
}
}
}
查询部分已更改,但它仍然存在,我不确定是什么导致它变成这样
【问题讨论】:
标签: elasticsearch elasticsearch-mapping