Interface ICsvProcessor
Extracts fields from CSV line out of a single text field within a document. Any empty field in CSV will be skipped.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ICsvProcessor : IProcessor
Properties
| Edit this page View SourceEmptyValue
Value used to fill empty fields, empty fields will be skipped if this is not provided.
Empty field is one with no value (2 consecutive separators) or empty quotes (""
)
Declaration
[DataMember(Name = "empty_value")]
object EmptyValue { get; set; }
Property Value
Type | Description |
---|---|
object |
Field
The field to extract data from
Declaration
[DataMember(Name = "field")]
Field Field { get; set; }
Property Value
Type | Description |
---|---|
Field |
IgnoreMissing
If true
and Field does not exist or is null,
the processor quietly exits without modifying the document. Default is false
Declaration
[DataMember(Name = "ignore_missing")]
bool? IgnoreMissing { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Quote
Quote used in CSV, has to be single character string. Defaults to "
Declaration
[DataMember(Name = "quote")]
string Quote { get; set; }
Property Value
Type | Description |
---|---|
string |
Separator
Separator used in CSV, has to be single character string. Defaults to ,
Declaration
[DataMember(Name = "separator")]
string Separator { get; set; }
Property Value
Type | Description |
---|---|
string |
TargetFields
The array of fields to assign extracted values to.
Declaration
[DataMember(Name = "target_fields")]
Fields TargetFields { get; set; }
Property Value
Type | Description |
---|---|
Fields |
Trim
Trim whitespaces in unquoted fields. Default is false
;
Declaration
[DataMember(Name = "trim")]
bool? Trim { get; set; }
Property Value
Type | Description |
---|---|
bool? |