Search Results for

    Show / Hide Table of Contents

    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
    IFieldNameQuery.Field
    IQuery.Boost
    IQuery.Conditionless
    IQuery.IsStrict
    IQuery.IsVerbatim
    IQuery.IsWritable
    IQuery.Name
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IRankFeatureQuery : IFieldNameQuery, IQuery

    Properties

    | Edit this page View Source

    Function

    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

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Function
    • Extension Methods
    Back to top Generated by DocFX