Interface InferenceFieldMapper


public interface InferenceFieldMapper
Field mapper that requires to transform its input before indexation through the InferenceService.
  • Method Details

    • getMetadata

      InferenceFieldMetadata getMetadata(Set<String> sourcePaths)
      Retrieve the inference metadata associated with this mapper.
      Parameters:
      sourcePaths - The source path that populates the input for the field (before inference)
    • getOriginalValue

      Object getOriginalValue(Map<String,Object> sourceAsMap)
      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