Interface ISetProcessor
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 interface ISetProcessor : IProcessor
Properties
| Edit this page View SourceField
The field to insert, upsert, or update. Supports template snippets.
Declaration
[DataMember(Name = "field")]
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
[DataMember(Name = "ignore_empty_value")]
bool? IgnoreEmptyValue { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Override
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
[DataMember(Name = "override")]
bool? Override { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Value
The value to be set for the field. Supports template snippets.
Declaration
[DataMember(Name = "value")]
object Value { get; set; }
Property Value
Type | Description |
---|---|
object |