Package org.elasticsearch.index.mapper
Class GeoPointFieldMapper.GeoPointFieldType
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
org.elasticsearch.index.mapper.GeoPointFieldMapper.GeoPointFieldType
- All Implemented Interfaces:
GeoShapeQueryable
- Enclosing class:
- GeoPointFieldMapper
public static class GeoPointFieldMapper.GeoPointFieldType
extends AbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
implements GeoShapeQueryable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.CollapseType, MappedFieldType.Relation
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
geometryParser
-
Constructor Summary
ConstructorDescriptionname)
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Query
origin, pivot, SearchExecutionContext context)
fullyQualifiedIndexName, <SearchLookup> searchLookup)
Return a fielddata builder for this fieldorg.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, fieldName, ShapeRelation relation, SearchExecutionContext context)
protected <>
format)
Gets the formatter by name.typeName()
Returns the name of this type, as would be specified in mapping propertiesvalueFetcher(SearchExecutionContext context, format)
Create a helper class to fetch field values during theFetchFieldsPhase
.Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
termQuery
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, collapseType, docValueFormat, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fuzzyIntervals, fuzzyQuery, getTerms, getTextSearchInfo, hasDocValues, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixIntervals, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, spanPrefixQuery, termIntervals, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardIntervals, wildcardQuery, wildcardQuery
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface org.elasticsearch.index.mapper.GeoShapeQueryable
geoShapeQuery
-
Constructor Details
-
GeoPointFieldType
public GeoPointFieldType( name)
-
-
Method Details
-
typeName
public typeName()Description copied from class:MappedFieldType
Returns the name of this type, as would be specified in mapping properties- Specified by:
typeName
in classMappedFieldType
-
getFormatter
protected <> getFormatter( format)Description copied from class:AbstractGeometryFieldMapper.AbstractGeometryFieldType
Gets the formatter by name.- Specified by:
getFormatter
in classAbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
-
valueFetcher
Description copied from class:MappedFieldType
Create a helper class to fetch field values during theFetchFieldsPhase
.New field types must implement this method in order to support the search 'fields' option. Except for metadata fields, field types should not throw since this could cause a search retrieving multiple fields (like "fields": ["*"]) to fail.
- Overrides:
valueFetcher
in classAbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
-
geoShapeQuery
public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, fieldName, ShapeRelation relation, SearchExecutionContext context)- Specified by:
geoShapeQuery
in interfaceGeoShapeQueryable
-
fielddataBuilder
public fullyQualifiedIndexName, <SearchLookup> searchLookup)Description copied from class:MappedFieldType
Return a fielddata builder for this field- Overrides:
fielddataBuilder
in classMappedFieldType
- Parameters:
fullyQualifiedIndexName
- the name of the index this field-data is build forsearchLookup
- aSearchLookup
supplier to allow for accessing other fields values in the context of runtime fields
-
distanceFeatureQuery
public org.apache.lucene.search.Query distanceFeatureQuery( origin, pivot, SearchExecutionContext context)- Overrides:
distanceFeatureQuery
in classMappedFieldType
-