Class ScriptScoreQuery
A query allowing you to modify the score of documents that are retrieved by a query. This can be useful if, for example, a score function is computationally expensive and it is sufficient to compute the score on a filtered set of documents.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ScriptScoreQuery : QueryBase, IScriptScoreQuery, IQuery
Properties
| Edit this page View SourceConditionless
Declaration
protected override bool Conditionless { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceMinScore
The score above which documents will be returned
Declaration
public double? MinScore { get; set; }
Property Value
Type | Description |
---|---|
double? |
Query
The query to execute
Declaration
public QueryContainer Query { get; set; }
Property Value
Type | Description |
---|---|
QueryContainer |
Script
The script to execute
Declaration
public IScript Script { get; set; }
Property Value
Type | Description |
---|---|
IScript |