Class SplitProcessorDescriptor<T>
Splits a field into an array using a separator character. Only works on string fields
Inheritance
SplitProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class SplitProcessorDescriptor<T> : ProcessorDescriptorBase<SplitProcessorDescriptor<T>, ISplitProcessor>, IDescriptor, ISplitProcessor, 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)
Declaration
public SplitProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
Declaration
public SplitProcessorDescriptor<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 or is null,
the processor quietly exits without modifying the document. Default is false
Declaration
public SplitProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
PreserveTrailing(bool?)
Preserves empty trailing fields, if any.
Declaration
public SplitProcessorDescriptor<T> PreserveTrailing(bool? preserveTrailing = true)
Parameters
Type |
Name |
Description |
bool? |
preserveTrailing |
|
Returns
|
Edit this page
View Source
Separator(string)
A regex which matches the separator, eg , or \s+
Declaration
public SplitProcessorDescriptor<T> Separator(string separator)
Parameters
Type |
Name |
Description |
string |
separator |
|
Returns
|
Edit this page
View Source
TargetField(Field)
The field to assign the split value to, by default field is updated in-place
Declaration
public SplitProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField(Expression<Func<T, object>>)
The field to assign the split value to, by default field is updated in-place
Declaration
public SplitProcessorDescriptor<T> TargetField(Expression<Func<T, object>> objectPath)
Parameters
Returns
Implements
Extension Methods