1

我有大约 3300 个填充了 geo_point 类型字段的文档。当我尝试在图块地图上可视化我的文档时,kibana 说“没有找到结果”。

我已经尝试将坐标设置为: - 字符串中的 geohash - [lon, lat] 数组 - 具有“lat”和“lon”属性的对象 - 字符串“lat,lon”

根据ES 文档,所有这些设置 geo_point 的方法都是允许的。Kibana 将此字段检测为 geo_point(字段名称附近有一个地球图标),但瓷砖地图上没有任何显示。

我怎么了?

我正在使用 Kibana 4.2、elasticsearch 2.0.0

4

2 回答 2

2

我已经成功了。

之所以发生这种情况,是因为我在带有“type”:“nested”参数的字段内有我的 geo_point 类型字段。

我已将此外部字段更改为“动态”:“真实”,现在我可以可视化我的位置!

于 2015-09-25T11:12:28.283 回答
0

通过从映射中删除“type”:“nested”,我能够拥有一个嵌套的 geo_point。不需要“动态”:“真”。我的映射如下所示:

"mappings": {
        "_default_": {
            "_all": {
                "enabled": true
            },
            "_ttl": {
                "enabled": true,
                "default": "12m"
            },
            "dynamic_templates": [{
                "string_fields": {
                    "match": "*",
                    "match_mapping_type": "string",
                    "mapping": {
                        "type": "string",
                        "index": "analyzed",
                        "omit_norms": true,
                        "fields": {
                            "raw": {
                                "type": "string",
                                "index": "not_analyzed",
                                "ignore_above": 256
                            }
                        }
                    }
                }
            }],
            "properties": {
                "@version": {
                    "type": "string",
                    "index": "not_analyzed"
                },
                "user_data": {
                    "properties": {
                        "user_geolocation": {
                            "properties": {
                                "location": {
                                    "type": "geo_point"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
于 2016-05-05T10:36:23.327 回答