Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper
- java.lang.Object
-
- org.elasticsearch.index.mapper.Mapper
-
- org.elasticsearch.index.mapper.FieldMapper
-
- org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
-
- org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<Mapper>,ToXContent,ToXContentFragment
@Deprecated public class LegacyGeoShapeFieldMapper extends BaseGeoShapeFieldMapper
Deprecated.FieldMapper for indexingShapes.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 classLegacyGeoShapeFieldMapper.BuilderDeprecated.static classLegacyGeoShapeFieldMapper.DeprecatedParametersDeprecated.static classLegacyGeoShapeFieldMapper.GeoShapeFieldTypeDeprecated.-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
BaseGeoShapeFieldMapper.BaseGeoShapeFieldType, BaseGeoShapeFieldMapper.Defaults, BaseGeoShapeFieldMapper.Names, BaseGeoShapeFieldMapper.TypeParser
-
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
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPEDeprecated.-
Fields inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
coerce, ignoreMalformed, ignoreZValue
-
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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 voiddoXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params)Deprecated.LegacyGeoShapeFieldMapper.GeoShapeFieldTypefieldType()Deprecated.voidparse(ParseContext context)Deprecated.Parse the field value using the providedParseContext.-
Methods inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
coerce, contentType, doMerge, ignoreMalformed, ignoreZValue, orientation, parseCreateField
-
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, copyTo, createFieldNamesField, doXContentAnalyzers, doXContentDocValues, indexOptionToString, iterator, merge, name, termVectorOptionsToString, toXContent, typeName, updateFieldType
-
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
fieldType
public LegacyGeoShapeFieldMapper.GeoShapeFieldType fieldType()
Deprecated.- Overrides:
fieldTypein classFieldMapper
-
parse
public void parse(ParseContext context) throws java.io.IOException
Deprecated.Description copied from class:FieldMapperParse the field value using the providedParseContext.- Overrides:
parsein classFieldMapper- Throws:
java.io.IOException
-
doXContentBody
protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
Deprecated.- Overrides:
doXContentBodyin classBaseGeoShapeFieldMapper- Throws:
java.io.IOException
-
-