在Kibana创建地理点

时间:2016-12-26 10:38:44

标签: json elasticsearch kibana

我已经将我的数据从SQL导入Elastic之后如何在Kibana中创建地理点,因为我想为纬度和经度添加一个名为location的新字段,这样我就可以使用地图可视化或修改索引i已经创造出来了。感谢

我的索引样本

 {
        "_index": "test1",
        "_type": "pre-test",
        "_id": "AVk1OzrXZxCtOaXERUPg",
        "_score": 1,
        "_source": {
          "tagno": "L116E11079                ",
          "status": "04 ",
          "cdesc": "STRINGING                                         ",
          "statusdt": "2016-08-27T00:00:00",
          "weightdone": 12.35,
          "cchiange": "0067+172.750   ",
          "kp_no": "067",
          "latitude": 29.55592659,
          "longitude": 47.69675638,
          "pIPELINE": " FUEL ",
          "pIPELINE_DESCRIPTION": "From A ",
          "pOINT_DESCRIPTION": "KILOMETER POINT (KP)",
          "cATEGORY": "MAIN "
        }
      }

1 个答案:

答案 0 :(得分:1)

您需要将字段映射为地理位置,然后将文档编入索引,请查看geopoint documentation