public class LegacyGeoPointFieldMapper extends BaseGeoPointFieldMapper implements ArrayValueMapperParser
- "field" : "geo_hash" - "field" : "lat,lon" - "field" : { "lat" : 1.1, "lon" : 2.1 }
| Modifier and Type | Class and Description |
|---|---|
static class |
LegacyGeoPointFieldMapper.Builder
Concrete builder for legacy GeoPointField
|
static class |
LegacyGeoPointFieldMapper.CustomGeoPointDocValuesField |
static class |
LegacyGeoPointFieldMapper.Defaults |
static class |
LegacyGeoPointFieldMapper.Encoding
A byte-aligned fixed-length encoding for latitudes and longitudes.
|
static class |
LegacyGeoPointFieldMapper.Names |
BaseGeoPointFieldMapper.GeoPointFieldType, BaseGeoPointFieldMapper.LegacyGeoPointFieldType, BaseGeoPointFieldMapper.TypeParserFieldMapper.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 |
deprecationLogger, geoHashMapper, ignoreMalformed, latMapper, lonMapperCOERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFieldsEMPTY_PARAMS| Constructor and Description |
|---|
LegacyGeoPointFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper latMapper,
FieldMapper lonMapper,
FieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<java.lang.Boolean> ignoreMalformed,
Explicit<java.lang.Boolean> coerce,
FieldMapper.CopyTo copyTo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
BaseGeoPointFieldMapper.LegacyGeoPointFieldType |
fieldType() |
static LegacyGeoPointFieldMapper.Builder |
parse(LegacyGeoPointFieldMapper.Builder builder,
java.util.Map<java.lang.String,java.lang.Object> node,
Mapper.TypeParser.ParserContext parserContext) |
protected void |
parse(ParseContext context,
GeoPoint point,
java.lang.String geoHash) |
contentType, iterator, legacyDoXContentBody, legacyFieldType, legacyIterator, parse, parseCreateField, updateFieldTypeclone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, indexOptionToString, indexTokenizeOption, merge, name, termVectorOptionsToString, toXContentsimpleNamepublic static final java.lang.String CONTENT_TYPE
protected Explicit<java.lang.Boolean> coerce
public LegacyGeoPointFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper latMapper,
FieldMapper lonMapper,
FieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<java.lang.Boolean> ignoreMalformed,
Explicit<java.lang.Boolean> coerce,
FieldMapper.CopyTo copyTo)
public static LegacyGeoPointFieldMapper.Builder parse(LegacyGeoPointFieldMapper.Builder builder, java.util.Map<java.lang.String,java.lang.Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException
MapperParsingExceptionprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class BaseGeoPointFieldMapperupdateAllTypes - TODOprotected void parse(ParseContext context, GeoPoint point, java.lang.String geoHash) throws java.io.IOException
parse in class BaseGeoPointFieldMapperjava.io.IOExceptionprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody in class BaseGeoPointFieldMapperjava.io.IOExceptionpublic BaseGeoPointFieldMapper.LegacyGeoPointFieldType fieldType()
fieldType in class FieldMapper