Class GeoShapeFieldMapper

All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<Mapper>, ToXContent, ToXContentFragment

public class GeoShapeFieldMapper
extends AbstractGeometryFieldMapper<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))