Search Results for

    Show / Hide Table of Contents

    Interface IGeoDistanceSort

    Allows you to sort based on a proximity to one or more GeoLocation

    Inherited Members
    ISort.Missing
    ISort.Mode
    ISort.NumericType
    ISort.Nested
    ISort.Order
    ISort.SortKey
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IGeoDistanceSort : ISort

    Properties

    | Edit this page View Source

    DistanceType

    How to compute the distance. Can either be arc (default), or plane (faster, but inaccurate on long distances and close to the poles).

    Declaration
    [DataMember(Name = "distance_type")]
    GeoDistanceType? DistanceType { get; set; }
    Property Value
    Type Description
    GeoDistanceType?
    | Edit this page View Source

    Field

    Declaration
    Field Field { get; set; }
    Property Value
    Type Description
    Field
    | Edit this page View Source

    IgnoreUnmapped

    Indicates if the unmapped field should be treated as a missing value. Setting it to true is equivalent to specifying an unmapped_type in the field sort. The default is false (unmapped field are causing the search to fail)

    Declaration
    [DataMember(Name = "ignore_unmapped")]
    bool? IgnoreUnmapped { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Points

    Declaration
    IEnumerable<GeoLocation> Points { get; set; }
    Property Value
    Type Description
    IEnumerable<GeoLocation>
    | Edit this page View Source

    Unit

    The unit to use when computing sort values. The default is m (meters)

    Declaration
    [DataMember(Name = "unit")]
    DistanceUnit? Unit { get; set; }
    Property Value
    Type Description
    DistanceUnit?

    Extension Methods

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