Kibana doesn't show results on tile map

落花浮王杯 提交于 2019-12-24 14:48:00

问题


I have approximately 3300 documents with geo_point typed field filled. When I try to visualize my documents on the tile map, kibana says "no results found".

I've already tried putting coordinates as: - geohash in string - [lon, lat] array - object with "lat" and "lon" properties - string "lat,lon"

All these ways of setting geo_point are allowed according to ES docs. Kibana detects this field as geo_point (there is a globe icon near field name), but nothing shows up on tile map.

What's wrong with me?

I'm using Kibana 4.2, elasticsearch 2.0.0


回答1:


I've managed it.

It was happening because I had my geo_point typed field inside of the field with "type": "nested" parameter.

I've changed this outer field to "dynamic": "true" and now I can visualize my locations!




回答2:


I was able to have a nested geo_point by removing the "type": "nested" from the mapping. No "dynamic":"true" needed. My mapping looks like this:

"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"
                                }
                            }
                        }
                    }
                }
            }
        }
    }


来源:https://stackoverflow.com/questions/32778818/kibana-doesnt-show-results-on-tile-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!