Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface InferenceFieldMapper
public interface InferenceFieldMapper
Field mapper that requires to transform its input before indexation through the
InferenceService
.-
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(Set<String> sourcePaths) Retrieve the inference metadata associated with this mapper.getOriginalValue
(Map<String, Object> sourceAsMap) Get the field's original value (i.e.
-
Method Details
-
getMetadata
Retrieve the inference metadata associated with this mapper.- Parameters:
sourcePaths
- The source path that populates the input for the field (before inference)
-
getOriginalValue
Get the field's original value (i.e. the value the user specified) from the provided source.- Parameters:
sourceAsMap
- The source as a map- Returns:
- The field's original value, or
null
if none was provided
-