Interface IForeachProcessor
Processes elements in an array of unknown length. All processors can operate on elements inside an array, but if all elements of an array need to be processed in the same way, defining a processor for each element becomes cumbersome and tricky because it is likely that the number of elements in an array is unknown. For this reason the foreach processor exists. By specifying the field holding array elements and a processor that defines what should happen to each element, array fields can easily be preprocessed.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IForeachProcessor : IProcessor
Properties
| Edit this page View SourceField
The array field
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? |
Processor
The processor to execute against each field
Declaration
[DataMember(Name = "processor")]
IProcessor Processor { get; set; }
Property Value
Type | Description |
---|---|
IProcessor |