Class AttachmentProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<AttachmentProcessor.Builder>
org.opensearch.client.opensearch.ingest.AttachmentProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<AttachmentProcessor.Builder,,AttachmentProcessor> MutableBuilder<AttachmentProcessor.Builder,,AttachmentProcessor> ObjectBuilder<AttachmentProcessor>
- Enclosing class:
AttachmentProcessor
public static class AttachmentProcessor.Builder
extends ProcessorBase.AbstractBuilder<AttachmentProcessor.Builder>
implements CopyableBuilder<AttachmentProcessor.Builder,AttachmentProcessor>
Builder for
AttachmentProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAttachmentProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:fieldignoreMissing(Boolean value) Iftrueand field does not exist, the processor quietly exits without modifying the document.indexedChars(Long value) The number of chars being used for extraction to prevent huge fields.indexedCharsField(String value) API name:indexed_chars_fieldproperties(String value, String... values) Array of properties to select to be stored.properties(List<String> list) Array of properties to select to be stored.resourceName(String value) Field containing the name of the resource to decode.protected AttachmentProcessor.Builderself()targetField(String value) API name:target_fieldMethods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AttachmentProcessor.Builder,AttachmentProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<AttachmentProcessor.Builder>
-
field
Required - 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
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:
propertiesAdds all elements of
listtoproperties. -
properties
Array of properties to select to be stored. Can becontent,title,name,author,keywords,date,content_type,content_length,language.API name:
propertiesAdds one or more values to
properties. -
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 -
targetField
API name:target_field -
build
Builds aAttachmentProcessor.- Specified by:
buildin interfaceObjectBuilder<AttachmentProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-