Class ScriptScoreFunctionDescriptor<T>
The script score function allows you to wrap another query and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression.
Inheritance
ScriptScoreFunctionDescriptor<T>
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ScriptScoreFunctionDescriptor<T> : FunctionScoreFunctionDescriptorBase<ScriptScoreFunctionDescriptor<T>, IScriptScoreFunction, T>, IDescriptor, IScriptScoreFunction, IScoreFunction where T : class
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Edit this page View SourceScript(Func<ScriptDescriptor, IScript>)
The script to execute to calculate score
Declaration
public ScriptScoreFunctionDescriptor<T> Script(Func<ScriptDescriptor, IScript> selector)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<ScriptDescriptor, IScript> | selector |
Returns
| Type | Description |
|---|---|
| ScriptScoreFunctionDescriptor<T> |