Hi Guys,
I have created some indexes on ES, using LogStash, and then trying to visualise with Kibana 4.
To visualise the geo data I try to select a 'Tile Map' and then 'Aggregation' with Geohash, and finally 'Field' of geoip.location.
This fails with :
Error: Request to Elasticsearch failed: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[uyUOwArCTO2S1muPN1HAiw][logstash-2015.01][0]: ClassCastException[org.elasticsearch.index.fielddata.plain.DoubleArrayIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexGeoPointFieldData]}{[uyUOwArCTO2S1muPN1HAiw][logstash-2015.02][0]:
Clearly something is wrong. Have I mucked up my index? I have set the geop field to be "not analyzed" and I have left the geop.location fields as is. Any clues what is wrong?
Here is a sample of the geoip.location field:
geoip.location ["4.900000000000006","52.36670000000001"]
And here is the mapping:
"geoip": {
"properties": {
"timezone": {
"type": "string"
},
"region_name": {
"type": "string"
},
"real_region_name": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"longitude": {
"type": "double"
},
"location": {
"type": "double"
},
"latitude": {
"type": "double"
},
"area_code": {
"type": "long"
},
"city_name": {
"type": "string"
},
"continent_code": {
"type": "string"
},
"country_code2": {
"type": "string"
},
"country_code3": {
"type": "string"
},
"country_name": {
"type": "string"
},
"dma_code": {
"type": "long"
},
"ip": {
"type": "string"
}
}
},