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.TypeParser
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.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, lonMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
EMPTY_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, updateFieldType
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, indexOptionToString, indexTokenizeOption, merge, name, termVectorOptionsToString, toXContent
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public 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
MapperParsingException
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class BaseGeoPointFieldMapper
updateAllTypes
- TODOprotected void parse(ParseContext context, GeoPoint point, java.lang.String geoHash) throws java.io.IOException
parse
in class BaseGeoPointFieldMapper
java.io.IOException
protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class BaseGeoPointFieldMapper
java.io.IOException
public BaseGeoPointFieldMapper.LegacyGeoPointFieldType fieldType()
fieldType
in class FieldMapper