【发布时间】:2019-03-28 13:53:35
【问题描述】:
我的索引包含两个字段:存储为浮点数的经度和纬度。我想创建新索引并从第一个索引复制数据,但映射不同。我使用带有弹性处理器的 reindex api,它可以重命名字段并赋予它们不同的数据类型。当我尝试创建类型为“geo_point”的字段时,它失败了。
"type": "parse_exception",
"reason": "[type] type [geo_point] not supported, cannot convert field.",
但是当我创建新索引时,我能够创建具有“geo_point”类型的字段。 我尝试了不同的解决方法,但文档说使用地理查询只能使用“geo_point”类型。 有什么解决办法吗?
{
"description": "test pipe",
"processors": [
{
"convert": {
"field": "location",
"type": "geo_point"
}
}
]
}
添加了管道定义。
【问题讨论】:
-
请显示您的摄取管道定义
-
抱歉这么晚了:) 添加了管道定义。
-
能否请您出示您的地图和示例文档?
-
基本上问题是这个管道无效,kibana显示错误,意思是任何字段都不能转换为geo_point类型。当我想创建这个管道时发生错误。
-
你真的有一个叫做
location的字段吗?您能说明一下管道创建错误是什么吗?
标签: elasticsearch kibana