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
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
View Source
By
Declaration
protected override string By { get; }
Property Value
Overrides
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
Overrides
View Source
Unit(string)
Declaration
public GeoDistanceSearchSort Unit(string unit)
Parameters
| Type |
Name |
Description |
| string |
unit |
|
Returns
Implements