Class LegacyGeoShapeFieldMapper

java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper<ShapeBuilder<?,​?,​?>,​org.locationtech.spatial4j.shape.Shape>
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<Mapper>, ToXContent, ToXContentFragment

@Deprecated
public class LegacyGeoShapeFieldMapper
extends AbstractGeometryFieldMapper<ShapeBuilder<?,​?,​?>,​org.locationtech.spatial4j.shape.Shape>
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))