Package org.elasticsearch.index.mapper
Class GeoShapeFieldMapper
- java.lang.Object
-
- org.elasticsearch.index.mapper.Mapper
-
- org.elasticsearch.index.mapper.FieldMapper
-
- org.elasticsearch.index.mapper.AbstractGeometryFieldMapper<Geometry,Geometry>
-
- org.elasticsearch.index.mapper.GeoShapeFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,ToXContent
,ToXContentFragment
public class GeoShapeFieldMapper extends AbstractGeometryFieldMapper<Geometry,Geometry>
FieldMapper for indexingLatLonShape
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
GeoShapeFieldMapper.Builder
static class
GeoShapeFieldMapper.GeoShapeFieldType
-
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 java.lang.String
CONTENT_TYPE
-
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 GeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
contentType()
protected void
doMerge(Mapper mergeWith)
Merge changes coming frommergeWith
in place.GeoShapeFieldMapper.GeoShapeFieldType
fieldType()
-
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
coerce, doXContentBody, 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 org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeoShapeFieldMapper
public GeoShapeFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
-
-
Method Detail
-
doMerge
protected void doMerge(Mapper mergeWith)
Description copied from class:FieldMapper
Merge changes coming frommergeWith
in place.- Overrides:
doMerge
in classAbstractGeometryFieldMapper<Geometry,Geometry>
-
fieldType
public GeoShapeFieldMapper.GeoShapeFieldType fieldType()
- Overrides:
fieldType
in classFieldMapper
-
contentType
protected java.lang.String contentType()
- Specified by:
contentType
in classFieldMapper
-
-