Class AttachmentProcessor
The ingest attachment plugin lets OpenSearch extract file attachments in common formats (such as PPT, XLS, and PDF) by using the Apache text extraction library Tika. You can use the ingest attachment plugin as a replacement for the mapper attachment plugin.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class AttachmentProcessor : ProcessorBase, IAttachmentProcessor, IProcessor
Remarks
Requires the Ingest Attachment Processor Plugin to be installed on the cluster.
Properties
| Edit this page View SourceField
The field to get the base64 encoded field from.
Declaration
public Field Field { get; set; }
Property Value
| Type | Description |
|---|---|
| Field |
IgnoreMissing
If true and field does not exist, the processor quietly exits without modifying the document.
Declaration
public bool? IgnoreMissing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IndexedCharacters
The number of chars being used for extraction to prevent huge fields. Use -1 for no limit. Defaults to 100000.
Declaration
public long? IndexedCharacters { get; set; }
Property Value
| Type | Description |
|---|---|
| long? |
IndexedCharactersField
Field name from which you can overwrite the number of chars being used for extraction.
Declaration
public Field IndexedCharactersField { get; set; }
Property Value
| Type | Description |
|---|---|
| Field |
Name
Declaration
protected override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceProperties
Properties to select to be stored. Can be content, title, name, author, keywords, date, content_type, content_length, language. Defaults to all.
Declaration
public IEnumerable<string> Properties { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
ResourceName
The 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'.
Declaration
public Field ResourceName { get; set; }
Property Value
| Type | Description |
|---|---|
| Field |
TargetField
The field that will hold the attachment information.
Declaration
public Field TargetField { get; set; }
Property Value
| Type | Description |
|---|---|
| Field |