Search Results for

    Show / Hide Table of Contents

    Interface IPainlessContextSetup

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

    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface 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
    [DataMember(Name = "document")]
    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
    [DataMember(Name = "index")]
    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
    [DataMember(Name = "query")]
    QueryContainer Query { get; set; }
    Property Value
    Type Description
    QueryContainer

    Extension Methods

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