Class GeoDistanceSearchSort
Sorts the search results by a field in the hits.
Inheritance
GeoDistanceSearchSort
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
Properties
|
Edit this page
View Source
By
Declaration
protected override string By { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Export()
Gets a JSON object representing this search sort.
Declaration
public override JObject Export()
Returns
Overrides
|
Edit this page
View Source
Unit(string)
Declaration
public GeoDistanceSearchSort Unit(string unit)
Parameters
Type |
Name |
Description |
string |
unit |
|
Returns
Implements