Hi.
elasticsearch 5.1.1
kibana 5.1.1
logstash 5.1.1
I am capturing tweets using the logstash twitter input plugin and passing them to elasticsearch using the elasticsearch output plugin. All works well except I seem unable to correctly map coordinates as the geo_point datatype.
I append my mapping template below. This is based on David Pilato's excellent article Indexing Twitter with Logstash and Elasticsearch (http://david.pilato.fr/blog/2015/06/01/indexing-twitter-with-logstash-and-elasticsearch/).
I know I have coordinates in my elasticsearch index but they are using the float datatype not geo_point despite the mapping below.
Any help would be much appreciated.
Kind regards.
Oliver
{
"template": "twitter",
"order": 1,
"settings": {
"number_of_shards": 1
},
"mappings": {
"tweet": {
"_all": {
"enabled": false
},
"dynamic_templates": [
{
"message_field": {
"match": "message",
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index": "analyzed",
"omit_norms": true
}
}
},
{
"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": {
"text": {
"type": "string"
},
"coordinates": {
"properties": {
"coordinates": {
"type": "geo_point"
},
"type": {
"type": "string"
}
}
}
}
}
}
}