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<Boolean> |
coerce |
static String |
CONTENT_TYPE |
deprecationLogger, geoHashMapper, ignoreMalformed, latMapper, lonMapper, pathType
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFields
EMPTY_PARAMS
Constructor and Description |
---|
GeoPointFieldMapperLegacy(String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
ContentPath.Type pathType,
DoubleFieldMapper latMapper,
DoubleFieldMapper lonMapper,
StringFieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<Boolean> ignoreMalformed,
Explicit<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,
Map<String,Object> node,
Mapper.TypeParser.ParserContext parserContext) |
protected void |
parse(ParseContext context,
GeoPoint point,
String geoHash) |
contentType, fieldType, iterator, parse, parseCreateField, updateFieldType
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, isGenerated, merge, name, termVectorOptionsToString, toXContent
simpleName
public static final String CONTENT_TYPE
public GeoPointFieldMapperLegacy(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, ContentPath.Type pathType, DoubleFieldMapper latMapper, DoubleFieldMapper lonMapper, StringFieldMapper geoHashMapper, FieldMapper.MultiFields multiFields, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, FieldMapper.CopyTo copyTo)
public static GeoPointFieldMapperLegacy.Builder parse(GeoPointFieldMapperLegacy.Builder builder, Map<String,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, String geoHash) throws IOException
parse
in class BaseGeoPointFieldMapper
IOException
protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
doXContentBody
in class BaseGeoPointFieldMapper
IOException
Copyright © 2009–2017. All rights reserved.