Class TrimProcessorDescriptor<T>
Trims whitespace from field. This only works on leading and trailing whitespace
Inheritance
TrimProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class TrimProcessorDescriptor<T> : ProcessorDescriptorBase<TrimProcessorDescriptor<T>, ITrimProcessor>, IDescriptor, ITrimProcessor, 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 string-valued field to trim whitespace from
Declaration
public TrimProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The string-valued field to trim whitespace from
Declaration
public TrimProcessorDescriptor<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 TrimProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
TargetField(Field)
The field to assign the trimmed value to, by default field is updated in-place
Declaration
public TrimProcessorDescriptor<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 trimmed value to, by default field is updated in-place
Declaration
public TrimProcessorDescriptor<T> TargetField(Expression<Func<T, object>> objectPath)
Parameters
Returns
Implements
Extension Methods