Not sure what is going on, I'm putting the data in the exact format the docs are asking for.
Mapping:
"properties": {
"annotations": {
"type": "geo_shape"
}
}
Data:
"annotations": {"type":"point","coordinates":[1.0,1.0]}
I get:
MapperParsingException[failed to parse [annotations]
]; nested: ElasticsearchParseException[shape must be an object consisting of type and coordinates];
When I look at the code throwing that exception, its failing to recognize the data as an object, but it clearly is an object
public static ShapeBuilder parse(XContentParser parser, GeoShapeFieldMapper shapeMapper) throws IOException {
if (parser.currentToken() == XContentParser.Token.VALUE_NULL) {
return null;
} else if (parser.currentToken() != XContentParser.Token.START_OBJECT) {
throw new ElasticsearchParseException("shape must be an object consisting of type and coordinates");
}