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_names
field mapper, mostly used to check if it is enabled.The name of the index.lookup()
SearchLookup
used 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_source
that contain values for the field namedname
.
-
Method Details
-
indexName
String indexName()The name 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()SearchLookup
used for building scripts. -
sourcePaths
Find the paths in_source
that 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_names
field mapper, mostly used to check if it is enabled.
-