Package org.elasticsearch.index.mapper
Class TypeFieldType
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.ConstantFieldType
org.elasticsearch.index.mapper.TypeFieldType
Mediates access to the deprecated _type field
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.CollapseType, MappedFieldType.Relation
-
Field Summary
Modifier and TypeFieldDescriptionstatic
static
static
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Query
existsQuery(SearchExecutionContext context)
fullyQualifiedIndexName, <SearchLookup> searchLookup)
Return a fielddata builder for this fieldgetType()
Returns the name of the current typeprotected boolean
pattern, boolean caseInsensitive, SearchExecutionContext context)
Return whether the constant value of this field matches the providedpattern
as documented inRegex.simpleMatch(java.lang.String, java.lang.String)
.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.ConstantFieldType
isAggregatable, isSearchable, prefixQuery, termQuery, termQueryCaseInsensitive, termsQuery, wildcardQuery
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, collapseType, distanceFeatureQuery, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fuzzyIntervals, fuzzyQuery, getTerms, getTextSearchInfo, hasDocValues, isFieldWithinQuery, isStored, meta, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixIntervals, prefixQuery, rangeQuery, regexpQuery, setBoost, spanPrefixQuery, termIntervals, valueForDisplay, wildcardIntervals, wildcardQuery
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
TYPES_V7_DEPRECATION_MESSAGE
public static final TYPES_V7_DEPRECATION_MESSAGE- See Also:
- Constant Field Values
-
NAME
public static final NAME- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final CONTENT_TYPE- See Also:
- Constant Field Values
-
-
Method Details
-
getType
public getType()Returns the name of the current type -
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
-
existsQuery
- Overrides:
existsQuery
in classMappedFieldType
-
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
-
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.
- Specified by:
valueFetcher
in classMappedFieldType
-
matches
Description copied from class:ConstantFieldType
Return whether the constant value of this field matches the providedpattern
as documented inRegex.simpleMatch(java.lang.String, java.lang.String)
.- Specified by:
matches
in classConstantFieldType
-