Search Results for

    Show / Hide Table of Contents

    Class PainlessContextSetup

    Sets up contextual scope for the painless script the execute under.

    Inheritance
    object
    PainlessContextSetup
    Implements
    IPainlessContextSetup
    Inherited Members
    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 PainlessContextSetup : IPainlessContextSetup

    Properties

    | Edit this page View Source

    Document

    Contains the document that will be temporarily indexed in-memory and is accessible from the script.

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

    Index

    The name of an index containing a mapping that is compatible with the document being indexed.

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

    Query

    If _score is used in the script then a query can specified that will be used to compute a score.

    Declaration
    public QueryContainer Query { get; set; }
    Property Value
    Type Description
    QueryContainer

    Implements

    IPainlessContextSetup

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Document
      • Index
      • Query
    • Implements
    • Extension Methods
    Back to top Generated by DocFX