public class GeoPointFieldMapperLegacy 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 |
GeoPointFieldMapperLegacy.Builder
Concrete builder for legacy GeoPointField
|
static class |
GeoPointFieldMapperLegacy.CustomGeoPointDocValuesField |
static class |
GeoPointFieldMapperLegacy.Defaults |
static class |
GeoPointFieldMapperLegacy.Encoding
A byte-aligned fixed-length encoding for latitudes and longitudes.
|
static class |
GeoPointFieldMapperLegacy.Names |
BaseGeoPointFieldMapper.GeoPointFieldType, 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, multiFields
EMPTY_PARAMS
Constructor and Description |
---|
GeoPointFieldMapperLegacy(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
DoubleFieldMapper latMapper,
DoubleFieldMapper lonMapper,
KeywordFieldMapper 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) |
static GeoPointFieldMapperLegacy.Builder |
parse(GeoPointFieldMapperLegacy.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, fieldType, iterator, parse, parseCreateField, updateFieldType
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, indexOptionToString, indexTokenizeOption, isGenerated, merge, name, termVectorOptionsToString, toXContent
simpleName
public static final java.lang.String CONTENT_TYPE
protected Explicit<java.lang.Boolean> coerce
public GeoPointFieldMapperLegacy(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, DoubleFieldMapper latMapper, DoubleFieldMapper lonMapper, KeywordFieldMapper geoHashMapper, FieldMapper.MultiFields multiFields, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, FieldMapper.CopyTo copyTo)
public static GeoPointFieldMapperLegacy.Builder parse(GeoPointFieldMapperLegacy.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