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<T>
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>>
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
@Deprecated
public class LegacyGeoShapeFieldMapper
extends AbstractShapeGeometryFieldMapper<ShapeBuilder<?,?,?>>
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))
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<T>Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>, AbstractGeometryFieldMapper.Parser<T>Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.TypeParserNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, orientationFields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, hasScript, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields, onScriptErrorFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionLegacyGeoShapeFieldMapper(String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.LegacyGeoShapeParser parser, LegacyGeoShapeFieldMapper.Builder builder)Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIncomingMergeType(FieldMapper mergeWith)Deprecated.static booleancontainsDeprecatedParameter(Set<String> paramKeys)Deprecated.protected StringDeprecated.Deprecated.Deprecated.Returns aFieldMapper.Builderto be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);protected voidindex(ParseContext context, ShapeBuilder<?,?,?> shapeBuilder)Deprecated.Build an index document using a parsed geometryMethods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, coerceParam, orientation, orientationParamMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, parse, parseCreateField, parsesArrayValueMethods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, doValidate, doXContentBody, executeScript, hasScript, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, name, notInMultiFields, toXContent, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
simpleNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
DEPRECATED_PARAMETERS
Deprecated.
-
-
Constructor Details
-
LegacyGeoShapeFieldMapper
public LegacyGeoShapeFieldMapper(String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.LegacyGeoShapeParser parser, LegacyGeoShapeFieldMapper.Builder builder)Deprecated.
-
-
Method Details
-
containsDeprecatedParameter
Deprecated. -
fieldType
Deprecated.- Overrides:
fieldTypein classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>>
-
index
Deprecated.Description copied from class:AbstractGeometryFieldMapperBuild an index document using a parsed geometry- Specified by:
indexin classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>>- Parameters:
context- the ParseContext holding the documentshapeBuilder- the parsed geometry object- Throws:
IOException
-
contentType
Deprecated.- Specified by:
contentTypein classFieldMapper
-
getMergeBuilder
Deprecated.Description copied from class:FieldMapperReturns aFieldMapper.Builderto be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);- Specified by:
getMergeBuilderin classFieldMapper
-
checkIncomingMergeType
Deprecated.- Overrides:
checkIncomingMergeTypein classFieldMapper
-
GeoShapeFieldMapper