Search Results for

    Show / Hide Table of Contents

    Interface IScript

    A script to execute to provide custom computation

    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IScript

    Properties

    | Edit this page View Source

    Lang

    Language of script.

    Declaration
    [DataMember(Name = "lang")]
    string Lang { get; set; }
    Property Value
    Type Description
    string

    this

    | Edit this page View Source

    Params

    Scripts are compiled and cached for faster execution. If the same script can be used, just with different parameters provided, it is preferable to use the ability to pass parameters to the script itself.

    Declaration
    [DataMember(Name = "params")]
    Dictionary<string, object> Params { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    this

    Examples

    script: "doc['num1'].value > param1" param: "param1" = 5

    Extension Methods

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