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<Parsed,Processed>
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.Defaults
Deprecated.static class
LegacyGeoShapeFieldMapper.GeoShapeFieldType
Deprecated.static class
LegacyGeoShapeFieldMapper.PrefixTrees
Deprecated.Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType, AbstractGeometryFieldMapper.Indexer<Parsed,Processed>, AbstractGeometryFieldMapper.Parser<Parsed>
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 Modifier and Type Field Description static java.lang.String
CONTENT_TYPE
Deprecated.static java.util.Set<java.lang.String>
DEPRECATED_PARAMETERS
Deprecated.Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, orientation
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description LegacyGeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, LegacyGeoShapeIndexer indexer, org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.LegacyGeoShapeParser parser, LegacyGeoShapeFieldMapper.Builder builder)
Deprecated. -
Method Summary
Modifier and Type Method Description protected void
addDocValuesFields(java.lang.String name, org.locationtech.spatial4j.shape.Shape geometry, java.util.List<org.apache.lucene.index.IndexableField> fields, ParseContext context)
Deprecated.protected void
addMultiFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)
Deprecated.protected void
addStoredFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)
Deprecated.protected void
checkIncomingMergeType(FieldMapper mergeWith)
Deprecated.static boolean
containsDeprecatedParameter(java.util.Set<java.lang.String> paramKeys)
Deprecated.protected java.lang.String
contentType()
Deprecated.LegacyGeoShapeFieldMapper.GeoShapeFieldType
fieldType()
Deprecated.FieldMapper.Builder
getMergeBuilder()
Deprecated.Returns aFieldMapper.Builder
to be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);
Methods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, coerceParam, orientation, orientationParam, parsesArrayValue
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, parse, parseCreateField
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, doValidate, doXContentBody, indexAnalyzers, iterator, merge, multiFields, name, 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
public static final java.lang.String CONTENT_TYPEDeprecated.- See Also:
- Constant Field Values
-
DEPRECATED_PARAMETERS
public static final java.util.Set<java.lang.String> DEPRECATED_PARAMETERSDeprecated.
-
-
Constructor Details
-
LegacyGeoShapeFieldMapper
public LegacyGeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, LegacyGeoShapeIndexer indexer, org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.LegacyGeoShapeParser parser, LegacyGeoShapeFieldMapper.Builder builder)Deprecated.
-
-
Method Details
-
containsDeprecatedParameter
public static boolean containsDeprecatedParameter(java.util.Set<java.lang.String> paramKeys)Deprecated. -
fieldType
Deprecated.- Overrides:
fieldType
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
addStoredFields
protected void addStoredFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.- Specified by:
addStoredFields
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
addDocValuesFields
protected void addDocValuesFields(java.lang.String name, org.locationtech.spatial4j.shape.Shape geometry, java.util.List<org.apache.lucene.index.IndexableField> fields, ParseContext context)Deprecated.- Specified by:
addDocValuesFields
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
addMultiFields
protected void addMultiFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.- Specified by:
addMultiFields
in classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
contentType
protected java.lang.String 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