我的设置如下:

我使用流利的数据将数据传递给elasticsearch .

我用kibana来形象化 .

从我的一个应用程序中,我想发送位置数据并使用平铺图将其可视化 .

我声明了以下映射 .

curl -XPUT 'http://localhost:9200/*/_mapping/locationtypetest' -d '{

   "locationtypetest" : {
        "properties" : {
            "locationtest" : {
                "lat_lon" : true,
                "type" : "geo_point"
            }
        }
  }
}

然后我通过Kibana更新了我的字段列表并发送了一些数据 .

在字段列表中,“locationtest”显示为“geo_point”“locationtest”.lon和.lat显示为Number . 它们被标记为“已编入索引”,但未标记为“已分析”

当我搜索输入数据时,我看到这样的数据:locationtest:{“lon”:5.6769012,“lat”:57.91436209999999}

但是,它也说“无法搜索未索引的字段”,我无法使用它来使用图块 Map 进行可视化 .

elasticsearch版本:版本:1.7.2,版本:e43676b / 2015-09-14T09:49:53Z,JVM:1.7.0_79

refresh_interval:5s