Class LegacyGeoShapeFieldMapper

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

    @Deprecated
    public class LegacyGeoShapeFieldMapper
    extends BaseGeoShapeFieldMapper
    Deprecated.
    FieldMapper for indexing Shapes.

    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))