Class ForeachProcessor
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 class ForeachProcessor : ProcessorBase, IForeachProcessor, IProcessor
Properties
| Edit this page View SourceField
The array field
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 SourceProcessor
The processor to execute against each field
Declaration
public IProcessor Processor { get; set; }
Property Value
Type | Description |
---|---|
IProcessor |