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<ShapeBuilder<?,?,?>,Shape>
-
- org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper
-
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,ToXContent,ToXContentFragment
@Deprecated public class LegacyGeoShapeFieldMapper extends AbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,Shape>
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.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType<Parsed,Processed>, AbstractGeometryFieldMapper.Defaults, AbstractGeometryFieldMapper.Indexer<Parsed,Processed>, AbstractGeometryFieldMapper.Names, AbstractGeometryFieldMapper.Parser<Parsed>, AbstractGeometryFieldMapper.QueryProcessor, AbstractGeometryFieldMapper.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 StringCONTENT_TYPEDeprecated.-
Fields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
coerce, DEPRECATED_PARAMETERS_KEY, 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(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, Explicit<ShapeBuilder.Orientation> orientation, Explicit<Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringcontentType()Deprecated.protected voiddoMerge(Mapper mergeWith)Deprecated.Merge changes coming frommergeWithin place.voiddoXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params)Deprecated.LegacyGeoShapeFieldMapper.GeoShapeFieldTypefieldType()Deprecated.-
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
coerce, ignoreMalformed, ignoreZValue, orientation, parse, 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 java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
CONTENT_TYPE
public static final String CONTENT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LegacyGeoShapeFieldMapper
public LegacyGeoShapeFieldMapper(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, Explicit<ShapeBuilder.Orientation> orientation, Explicit<Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
Deprecated.
-
-
Method Detail
-
fieldType
public LegacyGeoShapeFieldMapper.GeoShapeFieldType fieldType()
Deprecated.- Overrides:
fieldTypein classFieldMapper
-
doXContentBody
public void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
Deprecated.- Overrides:
doXContentBodyin classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,Shape>- Throws:
IOException
-
doMerge
protected void doMerge(Mapper mergeWith)
Deprecated.Description copied from class:FieldMapperMerge changes coming frommergeWithin place.- Overrides:
doMergein classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,Shape>
-
contentType
protected String contentType()
Deprecated.- Specified by:
contentTypein classFieldMapper
-
-