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.LegacyGeoPointFieldType, BaseGeoPointFieldMapper.Names
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
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 |
---|
GeoPointFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper latMapper,
FieldMapper lonMapper,
FieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<java.lang.Boolean> ignoreMalformed,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
BaseGeoPointFieldMapper.LegacyGeoPointFieldType |
fieldType() |
protected void |
parse(ParseContext context,
GeoPoint point,
java.lang.String geoHash) |
contentType, doMerge, doXContentBody, 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
public GeoPointFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, FieldMapper latMapper, FieldMapper lonMapper, FieldMapper geoHashMapper, FieldMapper.MultiFields multiFields, Explicit<java.lang.Boolean> ignoreMalformed, FieldMapper.CopyTo copyTo)
protected void parse(ParseContext context, GeoPoint point, java.lang.String geoHash) throws java.io.IOException
parse
in class BaseGeoPointFieldMapper
java.io.IOException
public BaseGeoPointFieldMapper.LegacyGeoPointFieldType fieldType()
fieldType
in class FieldMapper