Class CsvProcessor
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 class CsvProcessor : ProcessorBase, 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
public object EmptyValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Field
The field to extract data from
Declaration
public 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
public bool? IgnoreMissing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Name
Declaration
protected override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceQuote
Quote used in CSV, has to be single character string. Defaults to "
Declaration
public string Quote { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Separator
Separator used in CSV, has to be single character string. Defaults to ,
Declaration
public string Separator { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TargetFields
The array of fields to assign extracted values to.
Declaration
public Fields TargetFields { get; set; }
Property Value
| Type | Description |
|---|---|
| Fields |
Trim
Trim whitespaces in unquoted fields. Default is false;
Declaration
public bool? Trim { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |