Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ProcessorBase
    SetProcessor
    Implements
    ISetProcessor
    IProcessor
    Inherited Members
    ProcessorBase.If
    ProcessorBase.Tag
    ProcessorBase.IgnoreFailure
    ProcessorBase.OnFailure
    ProcessorBase.Description
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class SetProcessor : ProcessorBase, ISetProcessor, IProcessor

    Properties

    | Edit this page View Source

    Field

    The field to insert, upsert, or update. Supports template snippets.

    Declaration
    public Field Field { get; set; }
    Property Value
    Type Description
    Field
    | Edit this page View Source

    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?
    | Edit this page View Source

    Name

    Declaration
    protected override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    ProcessorBase.Name
    | Edit this page View Source

    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
    public bool? Override { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Value

    The value to be set for the field. Supports template snippets.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    object

    Implements

    ISetProcessor
    IProcessor

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Field
      • IgnoreEmptyValue
      • Name
      • Override
      • Value
    • Implements
    • Extension Methods
    Back to top Generated by DocFX