Couchbase .NET SDK __CB_SDK_VERSION__

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.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Search.Sort
Assembly: Couchbase.NetClient.dll
Syntax
public class GeoDistanceSearchSort : SearchSortBase, ISearchSort

Constructors

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

View Source

By

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

Methods

View Source

Export()

Gets a JSON object representing this search sort.

Declaration
[RequiresUnreferencedCode("Couchbase FTS might require types that cannot be statically analyzed. Make sure all required types are preserved.")]
[RequiresDynamicCode("Couchbase FTS might require types that cannot be statically analyzed and might need runtime code generation. Do not use for native AOT applications.")]
public override JObject Export()
Returns
Type Description
JObject
Overrides
SearchSortBase.Export()
View Source

Unit(string)

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

Implements

ISearchSort
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.