Class ScriptBase
A script to execute to provide custom computation
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public abstract class ScriptBase : IScript
Properties
| Edit this page View SourceLang
Language of script.
Declaration
public string Lang { get; set; }
Property Value
Type | Description |
---|---|
string | this |
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
public Dictionary<string, object> Params { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> | this |
Examples
script: "doc['num1'].value > param1" param: "param1" = 5
Operators
| Edit this page View Sourceimplicit operator ScriptBase(string)
Implicit conversion from string to InlineScript
Declaration
public static implicit operator ScriptBase(string script)
Parameters
Type | Name | Description |
---|---|---|
string | script |
Returns
Type | Description |
---|---|
ScriptBase |