gpt4 book ai didi

node.js - Elasticsearch 映射

转载 作者:太空宇宙 更新时间:2023-11-03 23:09:03 25 4
gpt4 key购买 nike

如何更改elasticsearch现有索引中的映射?我需要为 geo_point 类型的位置设置类型。

{
"stations": {
"mappings": {
"station": {
"properties": {
"address": {
"type": "string"
},
"district": {
"type": "string"
},
"location": {
"properties": {
"lat": {
"type": "double"
},
"lon": {
"type": "double"
}
}
},
"name": {
"type": "string"
}
}
}
}
}
}

最佳答案

这个article解释了解决这个问题的几种方法。无法显式更改现有字段的类型。

关于node.js - Elasticsearch 映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23181957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com