Class SetProcessor
Sets one field and associates it with the specified value. If the field already exists, its value will be replaced with the provided one.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class SetProcessor : ProcessorBase, ISetProcessor, IProcessor
Properties
| Edit this page View SourceField
The field to insert, upsert, or update. Supports template snippets.
Declaration
public Field Field { get; set; }
Property Value
Type | Description |
---|---|
Field |
IgnoreEmptyValue
If true
and value is a template snippet that evaluates to null or the
empty string, the processor quietly exits without modifying the document.
Defaults to false
.
Declaration
public bool? IgnoreEmptyValue { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Name
Declaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceOverride
If processor will update fields with pre-existing non-null-valued field.
When set to false, such fields will not be touched.
Default is true
Declaration
public bool? Override { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Value
The value to be set for the field. Supports template snippets.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
object |