Interface IRankFeatureQuery
A query that only works on rank_feature fields and rank_features fields. Its goal is to boost the score of documents based on the values of numeric features. It is typically put in a should clause of a bool query so that its score is added to the score of the query.
Compared to using function_score or other ways to modify the score, this query has the benefit of being able to efficiently skip non-competitive hits when track_total_hits is not set to true. Speedups may be spectacular.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IRankFeatureQuery : IFieldNameQuery, IQuery
Properties
| Edit this page View SourceFunction
A function to boost scores in a rank_feature query, using the values of rank features.
Declaration
IRankFeatureFunction Function { get; set; }
Property Value
Type | Description |
---|---|
IRankFeatureFunction |