Class AttachmentProcessorDescriptor<T>
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.
Inheritance
AttachmentProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class AttachmentProcessorDescriptor<T> : ProcessorDescriptorBase<AttachmentProcessorDescriptor<T>, IAttachmentProcessor>, IDescriptor, IAttachmentProcessor, IProcessor where T : class
Type Parameters
Properties
|
Edit this page
View Source
Name
Declaration
protected override string Name { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Field(Field)
The field to get the base64 encoded field from.
Declaration
public AttachmentProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field to get the base64 encoded field from.
Declaration
public AttachmentProcessorDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
IgnoreMissing(bool?)
If true
and field
does not exist, the processor quietly exits without modifying the document.
Declaration
public AttachmentProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
IndexedCharacters(long?)
The number of chars being used for extraction to prevent huge fields. Use -1 for no limit.
Defaults to 100000.
Declaration
public AttachmentProcessorDescriptor<T> IndexedCharacters(long? indexedCharacters)
Parameters
Type |
Name |
Description |
long? |
indexedCharacters |
|
Returns
|
Edit this page
View Source
IndexedCharactersField(Field)
Field name from which you can overwrite the number of chars being used for extraction.
Declaration
public AttachmentProcessorDescriptor<T> IndexedCharactersField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
IndexedCharactersField<TValue>(Expression<Func<T, TValue>>)
Field name from which you can overwrite the number of chars being used for extraction.
Declaration
public AttachmentProcessorDescriptor<T> IndexedCharactersField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Properties(IEnumerable<string>)
Properties to select to be stored. Can be content, title, name, author,
keywords, date, content_type, content_length, language. Defaults to all.
Declaration
public AttachmentProcessorDescriptor<T> Properties(IEnumerable<string> properties)
Parameters
Returns
|
Edit this page
View Source
Properties(params string[])
Properties to select to be stored. Can be content, title, name, author,
keywords, date, content_type, content_length, language. Defaults to all.
Declaration
public AttachmentProcessorDescriptor<T> Properties(params string[] properties)
Parameters
Type |
Name |
Description |
string[] |
properties |
|
Returns
|
Edit this page
View Source
ResourceName(Field)
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 AttachmentProcessorDescriptor<T> ResourceName(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
ResourceName<TValue>(Expression<Func<T, TValue>>)
The field that will hold the attachment information.
Declaration
public AttachmentProcessorDescriptor<T> ResourceName<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
TargetField(Field)
The field that will hold the attachment information.
Declaration
public AttachmentProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField<TValue>(Expression<Func<T, TValue>>)
The field that will hold the attachment information.
Declaration
public AttachmentProcessorDescriptor<T> TargetField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods