Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
@Deprecated public class LegacyGeoShapeFieldMapper extends AbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
Deprecated.
FieldMapper for indexing
Shape
s.
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))
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegacyGeoShapeFieldMapper.Builder
Deprecated.static class
LegacyGeoShapeFieldMapper.DeprecatedParameters
Deprecated.static class
LegacyGeoShapeFieldMapper.GeoShapeFieldType
Deprecated.Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<Parsed,Processed>, AbstractShapeGeometryFieldMapper.Defaults, AbstractShapeGeometryFieldMapper.Indexer<Parsed,Processed>, AbstractShapeGeometryFieldMapper.Names, AbstractShapeGeometryFieldMapper.Parser<Parsed>, AbstractShapeGeometryFieldMapper.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFields
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTENT_TYPE
Deprecated.Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, DEPRECATED_PARAMETERS_KEY, orientation
Fields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreZValue
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
-
Constructor Summary
Constructors Constructor Description LegacyGeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<ShapeBuilder.Orientation> orientation, Explicit<java.lang.Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
Deprecated. -
Method Summary
Modifier and Type Method Description protected java.lang.String
contentType()
Deprecated.protected void
doMerge(Mapper mergeWith)
Deprecated.Merge changes coming frommergeWith
in place.void
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, boolean includeDefaults, org.elasticsearch.common.xcontent.ToXContent.Params params)
Deprecated.LegacyGeoShapeFieldMapper.GeoShapeFieldType
fieldType()
Deprecated.Methods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, orientation, parse, parsesArrayValue
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreZValue, parseCreateField
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, copyTo, createFieldNamesField, doXContentAnalyzers, doXContentDocValues, indexOptionToString, iterator, merge, name, termVectorOptionsToString, toXContent, typeName, updateFieldType
-
Field Details
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPEDeprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
LegacyGeoShapeFieldMapper
public LegacyGeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<ShapeBuilder.Orientation> orientation, Explicit<java.lang.Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)Deprecated.
-
-
Method Details
-
fieldType
Deprecated.- Overrides:
fieldType
in classFieldMapper
-
doXContentBody
public void doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, boolean includeDefaults, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionDeprecated.- Overrides:
doXContentBody
in classAbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
- Throws:
java.io.IOException
-
doMerge
Deprecated.Description copied from class:FieldMapper
Merge changes coming frommergeWith
in place.- Overrides:
doMerge
in classAbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
contentType
protected java.lang.String contentType()Deprecated.- Specified by:
contentType
in classFieldMapper
-