Class GeoShapeFieldMapper

All Implemented Interfaces:
Cloneable, Iterable<Mapper>, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class GeoShapeFieldMapper extends AbstractShapeGeometryFieldMapper<org.elasticsearch.geometry.Geometry>
FieldMapper for indexing LatLonShapes.

Currently Shapes can only be indexed and can only be queried using GeoShapeQueryBuilder, consequently a lot of behavior in this Mapper is disabled.

Format supported:

"field" : { "type" : "polygon", "coordinates" : [ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ] ] }

or:

"field" : "POLYGON ((100.0 0.0, 101.0 0.0, 101.0 1.0, 100.0 1.0, 100.0 0.0))