Search Results for

    Show / Hide Table of Contents

    Class RankFeaturePropertyDescriptor<T>

    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
    DescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty>
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>
    RankFeaturePropertyDescriptor<T>
    Implements
    IDescriptor
    IRankFeatureProperty
    IProperty
    IFieldMapping
    Inherited Members
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.DebugDisplay
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.TypeOverride
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.Name(PropertyName)
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.Name<TValue>(Expression<Func<T, TValue>>)
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.LocalMetadata(Func<FluentDictionary<string, object>, FluentDictionary<string, object>>)
    PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>.Meta(Func<FluentDictionary<string, string>, FluentDictionary<string, string>>)
    DescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty>.Self
    DescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty>.Assign<TValue>(TValue, Action<IRankFeatureProperty, TValue>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class RankFeaturePropertyDescriptor<T> : PropertyDescriptorBase<RankFeaturePropertyDescriptor<T>, IRankFeatureProperty, T>, IDescriptor, IRankFeatureProperty, IProperty, IFieldMapping where T : class
    Type Parameters
    Name Description
    T

    Constructors

    | Edit this page View Source

    RankFeaturePropertyDescriptor()

    Declaration
    public RankFeaturePropertyDescriptor()

    Methods

    | Edit this page View Source

    PositiveScoreImpact(bool?)

    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 RankFeaturePropertyDescriptor<T> PositiveScoreImpact(bool? positiveScoreImpact = true)
    Parameters
    Type Name Description
    bool? positiveScoreImpact
    Returns
    Type Description
    RankFeaturePropertyDescriptor<T>

    Implements

    IDescriptor
    IRankFeatureProperty
    IProperty
    IFieldMapping

    Extension Methods

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