public class GeoPointFieldMapper extends BaseGeoPointFieldMapper
- "field" : "geo_hash" - "field" : "lat,lon" - "field" : { "lat" : 1.1, "lon" : 2.1 }
Modifier and Type | Class and Description |
---|---|
static class |
GeoPointFieldMapper.Builder
Concrete builder for indexed GeoPointField type
|
static class |
GeoPointFieldMapper.Defaults |
static class |
GeoPointFieldMapper.TypeParser |
BaseGeoPointFieldMapper.GeoPointFieldType, BaseGeoPointFieldMapper.Names
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
deprecationLogger, geoHashMapper, ignoreMalformed, latMapper, lonMapper, pathType
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFields
EMPTY_PARAMS
Constructor and Description |
---|
GeoPointFieldMapper(String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
ContentPath.Type pathType,
DoubleFieldMapper latMapper,
DoubleFieldMapper lonMapper,
StringFieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<Boolean> ignoreMalformed,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
protected void |
parse(ParseContext context,
GeoPoint point,
String geoHash) |
contentType, doMerge, doXContentBody, 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 GeoPointFieldMapper(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, ContentPath.Type pathType, DoubleFieldMapper latMapper, DoubleFieldMapper lonMapper, StringFieldMapper geoHashMapper, FieldMapper.MultiFields multiFields, Explicit<Boolean> ignoreMalformed, FieldMapper.CopyTo copyTo)
protected void parse(ParseContext context, GeoPoint point, String geoHash) throws IOException
parse
in class BaseGeoPointFieldMapper
IOException
Copyright © 2009–2016. All rights reserved.