Search Results for

    Show / Hide Table of Contents

    Enum SortMode

    OpenSearch supports sorting by array or multi-valued fields. The mode option controls what array value is picked for sorting the document it belongs to.

    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public enum SortMode

    Fields

    Name Description
    Average

    Use the average of all values as sort value. Only applicable for number based array fields.

    Max

    Pick the highest value.

    Median

    Use the median of all values as sort value. Only applicable for number based array fields.

    Min

    Pick the lowest value.

    Sum

    Use the sum of all values as sort value. Only applicable for number based array fields.

    Extension Methods

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