Class ScriptQueryDescriptor<T>
A query allowing to define a script to execute as a query
Inheritance
ScriptQueryDescriptor<T>
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ScriptQueryDescriptor<T> : QueryDescriptorBase<ScriptQueryDescriptor<T>, IScriptQuery>, IDescriptor, IScriptQuery, IQuery where T : class
Type Parameters
Name | Description |
---|---|
T |
Properties
| Edit this page View SourceConditionless
Whether the query is conditionless. A conditionless query is not serialized as part of the request sent to OpenSearch.
Declaration
protected override bool Conditionless { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceScript(Func<ScriptDescriptor, IScript>)
The script to execute
Declaration
public ScriptQueryDescriptor<T> Script(Func<ScriptDescriptor, IScript> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<ScriptDescriptor, IScript> | selector |
Returns
Type | Description |
---|---|
ScriptQueryDescriptor<T> |