Package org.elasticsearch.index.mapper
Class GeoPointFieldMapper.GeoPointFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
org.elasticsearch.index.mapper.GeoPointFieldMapper.GeoPointFieldType
- All Implemented Interfaces:
GeoShapeQueryable
- Enclosing class:
- GeoPointFieldMapper
public static class GeoPointFieldMapper.GeoPointFieldType extends AbstractGeometryFieldMapper.AbstractGeometryFieldType 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, parsesArrayValue
-
Constructor Summary
Constructors Constructor Description GeoPointFieldType(java.lang.String name)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.Query
distanceFeatureQuery(java.lang.Object origin, java.lang.String pivot, QueryShardContext context)
IndexFieldData.Builder
fielddataBuilder(java.lang.String fullyQualifiedIndexName, java.util.function.Supplier<SearchLookup> searchLookup)
Return a fielddata builder for this fieldorg.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, ShapeRelation relation, QueryShardContext context)
java.lang.String
typeName()
Returns the name of this type, as would be specified in mapping propertiesMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
termQuery, valueFetcher
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, collapseType, docValueFormat, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fuzzyQuery, getTextSearchInfo, hasDocValues, intervals, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, spanPrefixQuery, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardQuery, wildcardQuery
-
Constructor Details
-
GeoPointFieldType
public GeoPointFieldType(java.lang.String name)
-
-
Method Details
-
typeName
public java.lang.String typeName()Description copied from class:MappedFieldType
Returns the name of this type, as would be specified in mapping properties- Specified by:
typeName
in classMappedFieldType
-
geoShapeQuery
public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, ShapeRelation relation, QueryShardContext context)- Specified by:
geoShapeQuery
in interfaceGeoShapeQueryable
-
fielddataBuilder
public IndexFieldData.Builder fielddataBuilder(java.lang.String fullyQualifiedIndexName, java.util.function.Supplier<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(java.lang.Object origin, java.lang.String pivot, QueryShardContext context)- Overrides:
distanceFeatureQuery
in classMappedFieldType
-