Class ConvertProcessorDescriptor<T>
Inheritance
ConvertProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class ConvertProcessorDescriptor<T> : ProcessorDescriptorBase<ConvertProcessorDescriptor<T>, IConvertProcessor>, IDescriptor, IConvertProcessor, 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 whose value is to be converted
Declaration
public ConvertProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field whose value is to be converted
Declaration
public ConvertProcessorDescriptor<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 ConvertProcessorDescriptor<T> IgnoreMissing(bool? ignoreMissing = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMissing |
|
Returns
|
Edit this page
View Source
TargetField(Field)
The field to assign the converted value to, by default field is updated in-place
Declaration
public ConvertProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField<TValue>(Expression<Func<T, TValue>>)
The field to assign the converted value to, by default field is updated in-place
Declaration
public ConvertProcessorDescriptor<T> TargetField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Type(ConvertProcessorType?)
The type to convert the existing value to
Declaration
public ConvertProcessorDescriptor<T> Type(ConvertProcessorType? type)
Parameters
Returns
Implements
Extension Methods