EDIT: ES version: 7.4.2
I have a mapping contains a coordinate
of type geo_point
, like this:
"coordinates": {
"type": "geo_point"
}
I'm sending a POST command (using Postman) with correct syntex:
"coordinates": [ -18.341493, 34.143728 ]
But got a parser exception:
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "geo_point expected"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse field [coordinates] of type [geo_point]",
"caused_by": {
"type": "parse_exception",
"reason": "geo_point expected"
}
},
"status": 400
}
Any idea why I got this error? Thanks!