Class ExecutePainlessScriptRequest
The Painless execute API allows an arbitrary script to be executed and a result to be returned.
Inheritance
ExecutePainlessScriptRequest
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ExecutePainlessScriptRequest : PlainRequestBase<ExecutePainlessScriptRequestParameters>, IExecutePainlessScriptRequest, IRequest<ExecutePainlessScriptRequestParameters>, IRequest
Properties
| Edit this page View SourceContext
The context the script should be executed in
Declaration
public string Context { get; set; }
Property Value
Type | Description |
---|---|
string |
ContextSetup
Sets up contextual scope for the painless script the execute under.
Declaration
public IPainlessContextSetup ContextSetup { get; set; }
Property Value
Type | Description |
---|---|
IPainlessContextSetup |
Script
The script to execute
Declaration
public IInlineScript Script { get; set; }
Property Value
Type | Description |
---|---|
IInlineScript |
Self
Declaration
protected IExecutePainlessScriptRequest Self { get; }
Property Value
Type | Description |
---|---|
IExecutePainlessScriptRequest |