Package org.opensearch.index.mapper
Class DataStreamFieldMapper.DataStreamFieldType
java.lang.Object
org.opensearch.index.mapper.MappedFieldType
org.opensearch.index.mapper.DataStreamFieldMapper.DataStreamFieldType
- Enclosing class:
- DataStreamFieldMapper
public static final class DataStreamFieldMapper.DataStreamFieldType extends MappedFieldType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.index.mapper.MappedFieldType
MappedFieldType.Relation
-
Field Summary
Fields Modifier and Type Field Description static DataStreamFieldMapper.DataStreamFieldType
INSTANCE
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.Query
existsQuery(QueryShardContext context)
org.apache.lucene.search.Query
termQuery(java.lang.Object value, QueryShardContext context)
Generates a query that will only match documents that contain the given value.java.lang.String
typeName()
Returns the name of this type, as would be specified in mapping propertiesValueFetcher
valueFetcher(MapperService mapperService, SearchLookup searchLookup, java.lang.String format)
Create a helper class to fetch field values during theFetchFieldsPhase
.Methods inherited from class org.opensearch.index.mapper.MappedFieldType
boost, distanceFeatureQuery, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fielddataBuilder, fuzzyQuery, getTextSearchInfo, hasDocValues, indexAnalyzer, intervals, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, setIndexAnalyzer, spanPrefixQuery, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardQuery, wildcardQuery
-
Field Details
-
Method Details
-
valueFetcher
public ValueFetcher valueFetcher(MapperService mapperService, SearchLookup searchLookup, java.lang.String format)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 throwUnsupportedOperationException
since this could cause a search retrieving multiple fields (like "fields": ["*"]) to fail.- Specified by:
valueFetcher
in classMappedFieldType
-
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
-
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
-
existsQuery
- Overrides:
existsQuery
in classMappedFieldType
-