Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class GeoPointFieldMapper.GeoPointFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
org.elasticsearch.index.mapper.AbstractPointGeometryFieldMapper.AbstractPointFieldType<GeoPoint>
org.elasticsearch.index.mapper.GeoPointFieldMapper.GeoPointFieldType
- All Implemented Interfaces:
GeoShapeQueryable
- Enclosing class:
GeoPointFieldMapper
public static class GeoPointFieldMapper.GeoPointFieldType
extends AbstractPointGeometryFieldMapper.AbstractPointFieldType<GeoPoint>
implements GeoShapeQueryable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.BlockLoaderContext, MappedFieldType.CollapseType, MappedFieldType.FielddataOperation, MappedFieldType.FieldExtractPreference, MappedFieldType.Relation -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
geometryParser, nullValue -
Constructor Summary
ConstructorsConstructorDescriptionGeoPointFieldType(String name) GeoPointFieldType(String name, TimeSeriesParams.MetricType metricType, IndexMode indexMode) -
Method Summary
Modifier and TypeMethodDescriptionblockLoader(MappedFieldType.BlockLoaderContext blContext) Returns a loader for ESQL ornullif the field doesn't support ESQL.org.apache.lucene.search.QuerydistanceFeatureQuery(Object origin, String pivot, SearchExecutionContext context) fielddataBuilder(FieldDataContext fieldDataContext) Return a fielddata builder for this fieldorg.apache.lucene.search.QuerygeoShapeQuery(SearchExecutionContext context, String fieldName, ShapeRelation relation, org.apache.lucene.geo.LatLonGeometry... geometries) getFormatter(String format) Gets the formatter by name.If field is a time series metric field, returns its metric typebooleanReturns true if the field is searchable.typeName()Returns the name of this type, as would be specified in mapping propertiesvalueFetcher(SearchExecutionContext context, String format) Create a helper class to fetch field values during theFetchFieldsPhase.Methods inherited from class org.elasticsearch.index.mapper.AbstractPointGeometryFieldMapper.AbstractPointFieldType
nullValueAsSourceMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
blockLoaderFromFallbackSyntheticSource, blockLoaderFromSource, termQuery, valueFetcherMethods inherited from class org.elasticsearch.index.mapper.MappedFieldType
automatonQuery, checkNoFormat, checkNoTimeZone, collapseType, dimensions, docValueFormat, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, failIfNotIndexedNorDocValuesFallback, familyTypeName, fieldHasValue, fuzzyIntervals, fuzzyQuery, fuzzyQuery, getDefaultHighlighter, getTerms, getTextSearchInfo, hasDocValues, hasScriptValues, isAggregatable, isDimension, isFieldWithinQuery, isIndexed, isStored, isVectorEmbedding, mayExistInIndex, meta, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixIntervals, prefixQuery, prefixQuery, rangeIntervals, rangeQuery, regexpIntervals, regexpQuery, spanPrefixQuery, termIntervals, termQueryCaseInsensitive, termsQuery, validateMatchedRoutingPath, valueForDisplay, wildcardIntervals, wildcardLikeQuery, wildcardQuery, wildcardQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.GeoShapeQueryable
geoShapeQuery, geoShapeQuery
-
Field Details
-
GEO_FORMATTER_FACTORY
-
-
Constructor Details
-
GeoPointFieldType
-
GeoPointFieldType
-
-
Method Details
-
typeName
Description copied from class:MappedFieldTypeReturns the name of this type, as would be specified in mapping properties- Specified by:
typeNamein classMappedFieldType
-
isSearchable
public boolean isSearchable()Description copied from class:MappedFieldTypeReturns true if the field is searchable.- Overrides:
isSearchablein classMappedFieldType
-
getFormatter
Description copied from class:AbstractGeometryFieldMapper.AbstractGeometryFieldTypeGets the formatter by name.- Specified by:
getFormatterin classAbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
-
valueFetcher
Description copied from class:MappedFieldTypeCreate 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 throwUnsupportedOperationExceptionsince this could cause a search retrieving multiple fields (like "fields": ["*"]) to fail.- Overrides:
valueFetcherin classAbstractGeometryFieldMapper.AbstractGeometryFieldType<GeoPoint>
-
geoShapeQuery
public org.apache.lucene.search.Query geoShapeQuery(SearchExecutionContext context, String fieldName, ShapeRelation relation, org.apache.lucene.geo.LatLonGeometry... geometries) - Specified by:
geoShapeQueryin interfaceGeoShapeQueryable
-
fielddataBuilder
Description copied from class:MappedFieldTypeReturn a fielddata builder for this field- Overrides:
fielddataBuilderin classMappedFieldType- Parameters:
fieldDataContext- the context for the fielddata
-
distanceFeatureQuery
public org.apache.lucene.search.Query distanceFeatureQuery(Object origin, String pivot, SearchExecutionContext context) - Overrides:
distanceFeatureQueryin classMappedFieldType
-
getMetricType
If field is a time series metric field, returns its metric type- Overrides:
getMetricTypein classMappedFieldType- Returns:
- the metric type or null
-
blockLoader
Description copied from class:MappedFieldTypeReturns a loader for ESQL ornullif the field doesn't support ESQL.- Overrides:
blockLoaderin classMappedFieldType
-