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:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<AttachmentProcessor>
Json deserializer forAttachmentProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final String
field()
Required - The field to get the base64 encoded field from.final Boolean
Iftrue
and field does not exist, the processor quietly exits without modifying the document.final Long
The number of chars being used for extraction to prevent huge fields.final String
Field name from which you can overwrite the number of chars being used for extraction.static AttachmentProcessor
Array of properties to select to be stored.final String
Field containing the name of the resource to decode.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
The field that will hold the attachment information.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forAttachmentProcessor
-
-
Method Details
-
of
public static AttachmentProcessor of(Function<AttachmentProcessor.Builder, ObjectBuilder<AttachmentProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
field
Required - The field to get the base64 encoded field from.API name:
field
-
ignoreMissing
Iftrue
and field does not exist, the processor quietly exits without modifying the document.API name:
ignore_missing
-
indexedChars
The number of chars being used for extraction to prevent huge fields. Use-1
for no limit.API name:
indexed_chars
-
indexedCharsField
Field name from which you can overwrite the number of chars being used for extraction.API name:
indexed_chars_field
-
properties
Array of properties to select to be stored. Can becontent
,title
,name
,author
,keywords
,date
,content_type
,content_length
,language
.API name:
properties
-
targetField
The field that will hold the attachment information.API name:
target_field
-
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
- Overrides:
serializeInternal
in classProcessorBase
-
setupAttachmentProcessorDeserializer
protected static void setupAttachmentProcessorDeserializer(ObjectDeserializer<AttachmentProcessor.Builder> op)
-