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.TypeParserFieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected Explicit<Boolean> |
coerce |
static String |
CONTENT_TYPE |
deprecationLogger, geoHashMapper, ignoreMalformed, latMapper, lonMapper, pathTypecopyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFieldsEMPTY_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, updateFieldTypeclone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, isGenerated, merge, name, termVectorOptionsToString, toXContentsimpleNamepublic 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
MapperParsingExceptionprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class BaseGeoPointFieldMapperupdateAllTypes - TODOprotected void parse(ParseContext context, GeoPoint point, String geoHash) throws IOException
parse in class BaseGeoPointFieldMapperIOExceptionprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
doXContentBody in class BaseGeoPointFieldMapperIOExceptionCopyright © 2009–2017. All rights reserved.