canal同步mysql经纬度字段数据至es的geo_point类型数据

这里s为表别名,latitude,longitude为经纬度字段
concat(IFNULL(s.latitude, 0), ',', IFNULL(s.longitude, 0)) AS location,

效果以下:git

这个仍是问的cancal团队的人才解决的,哈哈blog

相关文章
相关标签/搜索