Package org.elasticsearch.index.mapper
Class GeoShapeFieldMapper
- java.lang.Object
-
- org.elasticsearch.index.mapper.Mapper
-
- org.elasticsearch.index.mapper.FieldMapper
-
- org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
-
- org.elasticsearch.index.mapper.GeoShapeFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,ToXContent
,ToXContentFragment
public class GeoShapeFieldMapper extends BaseGeoShapeFieldMapper
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.BaseGeoShapeFieldMapper
BaseGeoShapeFieldMapper.BaseGeoShapeFieldType, BaseGeoShapeFieldMapper.Defaults, BaseGeoShapeFieldMapper.Names, BaseGeoShapeFieldMapper.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 inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
coerce, CONTENT_TYPE, 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 GeoShapeFieldMapper.GeoShapeFieldType
fieldType()
void
parse(ParseContext context)
parsing logic forLatLonShape
indexing-
Methods inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper
coerce, contentType, doMerge, doXContentBody, ignoreMalformed, ignoreZValue, orientation, 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
-
-
-
-
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
-
fieldType
public GeoShapeFieldMapper.GeoShapeFieldType fieldType()
- Overrides:
fieldType
in classFieldMapper
-
parse
public void parse(ParseContext context) throws java.io.IOException
parsing logic forLatLonShape
indexing- Overrides:
parse
in classFieldMapper
- Throws:
java.io.IOException
-
-