Class ScriptScoreQueryDescriptor<T>
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.
Inheritance
ScriptScoreQueryDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class ScriptScoreQueryDescriptor<T> : QueryDescriptorBase<ScriptScoreQueryDescriptor<T>, IScriptScoreQuery>, IDescriptor, IScriptScoreQuery, IQuery where T : class
Type Parameters
Properties
|
Edit this page
View Source
Conditionless
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
Overrides
Methods
|
Edit this page
View Source
MinScore(double?)
The score above which documents will be returned
Declaration
public ScriptScoreQueryDescriptor<T> MinScore(double? minScore)
Parameters
Type |
Name |
Description |
double? |
minScore |
|
Returns
|
Edit this page
View Source
Query(Func<QueryContainerDescriptor<T>, QueryContainer>)
Declaration
public ScriptScoreQueryDescriptor<T> Query(Func<QueryContainerDescriptor<T>, QueryContainer> selector)
Parameters
Returns
|
Edit this page
View Source
Script(Func<ScriptDescriptor, IScript>)
Declaration
public ScriptScoreQueryDescriptor<T> Script(Func<ScriptDescriptor, IScript> selector)
Parameters
Returns
Implements
Extension Methods