Search Results for

    Show / Hide Table of Contents

    Class RankFeatureProperty

    A field that can index numbers so that they can later be used to boost documents in queries with a rank_feature query.

    Inheritance
    object
    PropertyBase
    RankFeatureProperty
    Implements
    IPropertyWithClrOrigin
    IRankFeatureProperty
    IProperty
    IFieldMapping
    Inherited Members
    PropertyBase.LocalMetadata
    PropertyBase.Meta
    PropertyBase.Name
    PropertyBase.DebugDisplay
    PropertyBase.ToString()
    PropertyBase.TypeOverride
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class RankFeatureProperty : PropertyBase, IPropertyWithClrOrigin, IRankFeatureProperty, IProperty, IFieldMapping

    Constructors

    | Edit this page View Source

    RankFeatureProperty()

    Declaration
    public RankFeatureProperty()

    Properties

    | Edit this page View Source

    PositiveScoreImpact

    Rank features that correlate negatively with the score should set PositiveScoreImpact to false (defaults to true). This will be used by the rank_feature query to modify the scoring formula in such a way that the score decreases with the value of the feature instead of increasing. For instance in web search, the url length is a commonly used feature which correlates negatively with scores.

    Declaration
    public bool? PositiveScoreImpact { get; set; }
    Property Value
    Type Description
    bool?

    Implements

    IPropertyWithClrOrigin
    IRankFeatureProperty
    IProperty
    IFieldMapping

    Extension Methods

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