Interface IPainlessContextSetup
Sets up contextual scope for the painless script the execute under.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IPainlessContextSetup
Properties
| Edit this page View SourceDocument
Contains the document that will be temporarily indexed in-memory and is accessible from the script.
Declaration
[DataMember(Name = "document")]
object Document { get; set; }
Property Value
Type | Description |
---|---|
object |
Index
The name of an index containing a mapping that is compatible with the document being indexed.
Declaration
[DataMember(Name = "index")]
IndexName Index { get; set; }
Property Value
Type | Description |
---|---|
IndexName |
Query
If _score is used in the script then a query can specified that will be used to compute a score.
Declaration
[DataMember(Name = "query")]
QueryContainer Query { get; set; }
Property Value
Type | Description |
---|---|
QueryContainer |