Interface IExecutePainlessScriptRequest
The Painless execute API allows an arbitrary script to be executed and a result to be returned.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IExecutePainlessScriptRequest : IRequest<ExecutePainlessScriptRequestParameters>, IRequest
Properties
| Edit this page View SourceContext
The context the script should be executed in
Declaration
[DataMember(Name = "context")]
string Context { get; set; }
Property Value
Type | Description |
---|---|
string |
ContextSetup
Sets up contextual scope for the painless script the execute under.
Declaration
[DataMember(Name = "context_setup")]
IPainlessContextSetup ContextSetup { get; set; }
Property Value
Type | Description |
---|---|
IPainlessContextSetup |
Script
The script to execute
Declaration
[DataMember(Name = "script")]
IInlineScript Script { get; set; }
Property Value
Type | Description |
---|---|
IInlineScript |