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
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
Modifier and TypeClassDescriptionstatic class
Deprecated.static class
Deprecated.static class
Deprecated.static class
Deprecated.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.TypeParser
Nested 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
Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, orientation
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, hasScript, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields, onScriptError
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionLegacyGeoShapeFieldMapper(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 void
checkIncomingMergeType(FieldMapper mergeWith)
Deprecated.static boolean
containsDeprecatedParameter(Set<String> paramKeys)
Deprecated.protected String
Deprecated.Deprecated.Deprecated.Returns aFieldMapper.Builder
to be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);
protected void
index(ParseContext context, ShapeBuilder<?,?,?> shapeBuilder)
Deprecated.Build an index document using a parsed geometryMethods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, coerceParam, orientation, orientationParam
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, parse, parseCreateField, parsesArrayValue
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, doValidate, doXContentBody, executeScript, hasScript, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, name, notInMultiFields, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
Methods inherited from class java.lang.Object
clone, 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 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:
fieldType
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>>
-
index
Deprecated.Description copied from class:AbstractGeometryFieldMapper
Build an index document using a parsed geometry- Specified by:
index
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>>
- Parameters:
context
- the ParseContext holding the documentshapeBuilder
- the parsed geometry object- Throws:
IOException
-
contentType
Deprecated.- Specified by:
contentType
in classFieldMapper
-
getMergeBuilder
Deprecated.Description copied from class:FieldMapper
Returns aFieldMapper.Builder
to be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);
- Specified by:
getMergeBuilder
in classFieldMapper
-
checkIncomingMergeType
Deprecated.- Overrides:
checkIncomingMergeType
in classFieldMapper
-
GeoShapeFieldMapper