Hello,
I have created an Elasticsearch index from a data set containing geodata. I
have set up mapping for the data. Then I tried to create Kibana
visualisation using this data set. Kibana detects the geodata property but
finds no result even though there plenty of. Then I ran a test on another
data set with different and much simpler layout, and Kibana properly
visualised geodata.
Here's the sample that works:
"location": {
"lat": 56.290525,
"lon": -30.163298
},
and this is its mapping:
"location": {
"type": "geo_point",
"lat_lon": true,
"geohash": true
}
And this one doesn't work:
"groupOfLocations": {
"@type": "Point",
"locationForDisplay": {
"lat": 59.21232,
"lon": 9.603803
}
}
And this is its mapping:
{
... // nested type
"locationForDisplay": {
"type": "geo_point",
"lat_lon": true,
"geohash": true
}
...
}
There are only two things that are different between working and
non-working versions:
- The one that works has a JSON element called "location" while the other
one is called "locationForDisplay" - The one that works has a JSON element ("location") as a top level
element, while in the other one it's an element in the nested type.
Apart from these two differences (which I believe shouldn't mean anything)
I can't find anything else. What can make Kibana fail?
Thanks in advance
Vagif
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/91aff9ac-83bf-49b7-94a2-48ebeeb766f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.