Class AttachmentProcessor

java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.AttachmentProcessor
All Implemented Interfaces:
ProcessorVariant, JsonpSerializable

@JsonpDeserializable public class AttachmentProcessor extends ProcessorBase implements ProcessorVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _processorKind

      public Processor.Kind _processorKind()
      Processor variant kind.
      Specified by:
      _processorKind in interface ProcessorVariant
    • field

      public final String field()
      Required - The field to get the base64 encoded field from.

      API name: field

    • ignoreMissing

      @Nullable public final Boolean ignoreMissing()
      If true and field does not exist, the processor quietly exits without modifying the document.

      API name: ignore_missing

    • indexedChars

      @Nullable public final Long indexedChars()
      The number of chars being used for extraction to prevent huge fields. Use -1 for no limit.

      API name: indexed_chars

    • indexedCharsField

      @Nullable public final String indexedCharsField()
      Field name from which you can overwrite the number of chars being used for extraction.

      API name: indexed_chars_field

    • properties

      public final List<String> properties()
      Array of properties to select to be stored. Can be content, title, name, author, keywords, date, content_type, content_length, language.

      API name: properties

    • targetField

      @Nullable public final String targetField()
      The field that will hold the attachment information.

      API name: target_field

    • resourceName

      @Nullable public final String resourceName()
      Field containing the name of the resource to decode. If specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection.

      API name: resource_name

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class ProcessorBase
    • setupAttachmentProcessorDeserializer

      protected static void setupAttachmentProcessorDeserializer(ObjectDeserializer<AttachmentProcessor.Builder> op)