Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface MappedFieldType.BlockLoaderContext
- Enclosing class:
MappedFieldType
public static interface MappedFieldType.BlockLoaderContext
-
Method Summary
Modifier and TypeMethodDescriptionHow the field should be extracted into the BlockLoader.The_field_namesfield mapper, mostly used to check if it is enabled.The name of the index.The index settings of the indexlookup()SearchLookupused for building scripts.parentField(String field) If field is a leaf multi-field return the path to the parent field.sourcePaths(String name) Find the paths in_sourcethat contain values for the field namedname.
-
Method Details
-
indexName
String indexName()The name of the index. -
indexSettings
IndexSettings indexSettings()The index settings of the index -
fieldExtractPreference
MappedFieldType.FieldExtractPreference fieldExtractPreference()How the field should be extracted into the BlockLoader. The default isMappedFieldType.FieldExtractPreference.NONE, which means that the field type can choose where to load the field from. However, in some cases, the caller may have a preference. For example, when loading a spatial field for usage in STATS, it is preferable to load from doc-values. -
lookup
SearchLookup lookup()SearchLookupused for building scripts. -
sourcePaths
Find the paths in_sourcethat contain values for the field namedname. -
parentField
If field is a leaf multi-field return the path to the parent field. Otherwise, return null. -
fieldNames
FieldNamesFieldMapper.FieldNamesFieldType fieldNames()The_field_namesfield mapper, mostly used to check if it is enabled.
-