Package org.elasticsearch.index.mapper
Class AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>
- Direct Known Subclasses:
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
,GeoPointFieldMapper.GeoPointFieldType
- Enclosing class:
- AbstractGeometryFieldMapper<T>
public abstract static class AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>
extends MappedFieldType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.CollapseType, MappedFieldType.Relation
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractGeometryFieldType(String name, boolean indexed, boolean stored, boolean hasDocValues, AbstractGeometryFieldMapper.Parser<T> geometryParser, Map<String,String> meta)
-
Method Summary
Modifier and TypeMethodDescriptiongetFormatter(String format)
Gets the formatter by name.org.apache.lucene.search.Query
termQuery(Object value, SearchExecutionContext context)
Generates a query that will only match documents that contain the given value.valueFetcher(SearchExecutionContext context, String format)
Create a helper class to fetch field values during theFetchFieldsPhase
.Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, collapseType, distanceFeatureQuery, docValueFormat, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fielddataBuilder, 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, typeName, valueForDisplay, wildcardIntervals, wildcardQuery, wildcardQuery
-
Field Details
-
geometryParser
-
-
Constructor Details
-
AbstractGeometryFieldType
-
-
Method Details
-
termQuery
Description copied from class:MappedFieldType
Generates a query that will only match documents that contain the given value. The default implementation returns aTermQuery
over the value bytes, boosted byMappedFieldType.boost()
.- Specified by:
termQuery
in classMappedFieldType
-
getFormatter
Gets the formatter by name. -
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
UnsupportedOperationException
since this could cause a search retrieving multiple fields (like "fields": ["*"]) to fail.- Specified by:
valueFetcher
in classMappedFieldType
-