I have this index:
{
"example_index_name": {
"aliases": {},
"mappings": {
"lambda-type": {
"properties": {
"document": {
"properties": {
"Entities": {
"properties": {
"BeginOffset": {
"type": "long"
},
"EndOffset": {
"type": "long"
},
"Score": {
"type": "float"
},
"Text": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"Type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
** "lat": {
"type": "float" **
},
"lng": {
** "type": "float" **
}
}
},
"File": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
The **
's show the problem area - I have latitude and longitude, but Kibana will not recognize the numbers because they are not in the geo_point
format. I've been trying to update them in Kibana Dev Tools with PUT example_index_name/_mapping/_doc
.
I get this error:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:
...etc
When I try to update lat
& lng
type to geo_point
, I just get an error. I'm following Kibana docs. How do I update this? I feel like the coordinates are in the wrong section of the index.