Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class GeoDistanceSearchSort

    Sorts the search results by a field in the hits.

    Inheritance
    object
    SearchSortBase
    GeoDistanceSearchSort
    Implements
    ISearchSort
    Inherited Members
    SearchSortBase.Decending
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Search.Sort
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class GeoDistanceSearchSort : SearchSortBase, ISearchSort

    Constructors

    | Edit this page View Source

    GeoDistanceSearchSort(double, double, string, string, bool)

    Declaration
    public GeoDistanceSearchSort(double longitude, double latitude, string field, string unit = null, bool decending = false)
    Parameters
    Type Name Description
    double longitude
    double latitude
    string field
    string unit
    bool decending

    Properties

    | Edit this page View Source

    By

    Declaration
    protected override string By { get; }
    Property Value
    Type Description
    string
    Overrides
    SearchSortBase.By

    Methods

    | Edit this page View Source

    Export()

    Gets a JSON object representing this search sort.

    Declaration
    public override JObject Export()
    Returns
    Type Description
    JObject
    Overrides
    SearchSortBase.Export()
    | Edit this page View Source

    Unit(string)

    Declaration
    public GeoDistanceSearchSort Unit(string unit)
    Parameters
    Type Name Description
    string unit
    Returns
    Type Description
    GeoDistanceSearchSort

    Implements

    ISearchSort
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.