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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AttachmentProcessor>Json deserializer forAttachmentProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final Stringfield()Required - The field to get the base64 encoded field from.final BooleanIftrueand field does not exist, the processor quietly exits without modifying the document.final LongThe number of chars being used for extraction to prevent huge fields.final StringField name from which you can overwrite the number of chars being used for extraction.static AttachmentProcessorArray of properties to select to be stored.final BooleanIf true, the binary field will be removed from the documentfinal StringField containing the name of the resource to decode.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringThe field that will hold the attachment information.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
_processorKindin interfaceProcessorVariant
-
field
Required - The field to get the base64 encoded field from.API name:
field -
ignoreMissing
Iftrueand 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-1for 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 -
removeBinary
If true, the binary field will be removed from the documentAPI name:
remove_binary -
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:
serializeInternalin classProcessorBase
-
setupAttachmentProcessorDeserializer
protected static void setupAttachmentProcessorDeserializer(ObjectDeserializer<AttachmentProcessor.Builder> op)
-