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 SourceLang
Language of script.
Declaration
[DataMember(Name = "lang")]
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
[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