Search Results for

    Show / Hide Table of Contents

    Class WeightedAverageValueDescriptor<T>

    Inheritance
    object
    DescriptorBase<WeightedAverageValueDescriptor<T>, IWeightedAverageValue>
    WeightedAverageValueDescriptor<T>
    Implements
    IDescriptor
    IWeightedAverageValue
    Inherited Members
    DescriptorBase<WeightedAverageValueDescriptor<T>, IWeightedAverageValue>.Self
    DescriptorBase<WeightedAverageValueDescriptor<T>, IWeightedAverageValue>.Assign<TValue>(TValue, Action<IWeightedAverageValue, 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 WeightedAverageValueDescriptor<T> : DescriptorBase<WeightedAverageValueDescriptor<T>, IWeightedAverageValue>, IDescriptor, IWeightedAverageValue where T : class
    Type Parameters
    Name Description
    T

    Methods

    | Edit this page View Source

    Field(Field)

    The field that values should be extracted from

    Declaration
    public WeightedAverageValueDescriptor<T> Field(Field field)
    Parameters
    Type Name Description
    Field field
    Returns
    Type Description
    WeightedAverageValueDescriptor<T>
    | Edit this page View Source

    Field<TValue>(Expression<Func<T, TValue>>)

    The field that values should be extracted from

    Declaration
    public WeightedAverageValueDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> field)
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> field
    Returns
    Type Description
    WeightedAverageValueDescriptor<T>
    Type Parameters
    Name Description
    TValue
    | Edit this page View Source

    Missing(double?)

    defines how documents that are missing a value should be treated. The default behavior is different for value and weight: By default, if the value field is missing the document is ignored and the aggregation moves on to the next document. If the weight field is missing, it is assumed to have a weight of 1 (like a normal average).

    Declaration
    public WeightedAverageValueDescriptor<T> Missing(double? missing)
    Parameters
    Type Name Description
    double? missing
    Returns
    Type Description
    WeightedAverageValueDescriptor<T>
    | Edit this page View Source

    Script(Func<ScriptDescriptor, IScript>)

    A script to derive the value and the weight from

    Declaration
    public virtual WeightedAverageValueDescriptor<T> Script(Func<ScriptDescriptor, IScript> scriptSelector)
    Parameters
    Type Name Description
    Func<ScriptDescriptor, IScript> scriptSelector
    Returns
    Type Description
    WeightedAverageValueDescriptor<T>
    | Edit this page View Source

    Script(string)

    A script to derive the value and the weight from

    Declaration
    public virtual WeightedAverageValueDescriptor<T> Script(string script)
    Parameters
    Type Name Description
    string script
    Returns
    Type Description
    WeightedAverageValueDescriptor<T>

    Implements

    IDescriptor
    IWeightedAverageValue

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Methods
      • Field(Field)
      • Field<TValue>(Expression<Func<T, TValue>>)
      • Missing(double?)
      • Script(Func<ScriptDescriptor, IScript>)
      • Script(string)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX