public class GeoShapeFieldMapper extends FieldMapper
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] ] ] }
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoShapeFieldMapper.Builder |
static class |
GeoShapeFieldMapper.Defaults |
static class |
GeoShapeFieldMapper.GeoShapeFieldType |
static class |
GeoShapeFieldMapper.Names |
static class |
GeoShapeFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected Explicit<java.lang.Boolean> |
coerce |
static java.lang.String |
CONTENT_TYPE |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFieldsEMPTY_PARAMS| Constructor and Description |
|---|
GeoShapeFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
Explicit<java.lang.Boolean> coerce,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
| Modifier and Type | Method and Description |
|---|---|
Explicit<java.lang.Boolean> |
coerce() |
protected java.lang.String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
GeoShapeFieldMapper.GeoShapeFieldType |
fieldType() |
Mapper |
parse(ParseContext context)
Parse using the provided
ParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified. |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, indexOptionToString, indexTokenizeOption, iterator, merge, name, termVectorOptionsToString, toXContent, updateFieldTypesimpleNamepublic static final java.lang.String CONTENT_TYPE
protected Explicit<java.lang.Boolean> coerce
public GeoShapeFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
Explicit<java.lang.Boolean> coerce,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo)
public GeoShapeFieldMapper.GeoShapeFieldType fieldType()
fieldType in class FieldMapperpublic Mapper parse(ParseContext context) throws java.io.IOException
FieldMapperParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified.parse in class FieldMapperjava.io.IOExceptionprotected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.document.Field> fields) throws java.io.IOException
FieldMapperfields.parseCreateField in class FieldMapperjava.io.IOExceptionprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class FieldMapperupdateAllTypes - TODOprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody in class FieldMapperjava.io.IOExceptionpublic Explicit<java.lang.Boolean> coerce()
protected java.lang.String contentType()
contentType in class FieldMapper