Class PainlessContextSetup
Sets up contextual scope for the painless script the execute under.
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class PainlessContextSetup : IPainlessContextSetup
Properties
| Edit this page View SourceDocument
Contains the document that will be temporarily indexed in-memory and is accessible from the script.
Declaration
public 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
public 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
public QueryContainer Query { get; set; }
Property Value
Type | Description |
---|---|
QueryContainer |