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
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 Classes Modifier and Type Class Description static classLegacyGeoShapeFieldMapper.BuilderDeprecated.static classLegacyGeoShapeFieldMapper.DefaultsDeprecated.static classLegacyGeoShapeFieldMapper.GeoShapeFieldTypeDeprecated.static classLegacyGeoShapeFieldMapper.PrefixTreesDeprecated.Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldTypeNested 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.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
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPEDeprecated.static java.util.Set<java.lang.String>DEPRECATED_PARAMETERSDeprecated.Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper
coerce, orientationFields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFieldsFields 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 voidaddDocValuesFields(java.lang.String name, org.locationtech.spatial4j.shape.Shape geometry, java.util.List<org.apache.lucene.index.IndexableField> fields, ParseContext context)Deprecated.protected voidaddMultiFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.protected voidaddStoredFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.protected voidcheckIncomingMergeType(FieldMapper mergeWith)Deprecated.static booleancontainsDeprecatedParameter(java.util.Set<java.lang.String> paramKeys)Deprecated.protected java.lang.StringcontentType()Deprecated.LegacyGeoShapeFieldMapper.GeoShapeFieldTypefieldType()Deprecated.FieldMapper.BuildergetMergeBuilder()Deprecated.Returns aFieldMapper.Builderto 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, parsesArrayValueMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, parse, parseCreateFieldMethods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, doValidate, doXContentBody, indexAnalyzers, iterator, merge, multiFields, name, 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
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:
fieldTypein classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
addStoredFields
protected void addStoredFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.- Specified by:
addStoredFieldsin 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:
addDocValuesFieldsin classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
addMultiFields
protected void addMultiFields(ParseContext context, org.locationtech.spatial4j.shape.Shape geometry)Deprecated.- Specified by:
addMultiFieldsin classAbstractGeometryFieldMapper<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
contentType
protected java.lang.String 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