Class SearchSortGeoDistance
java.lang.Object
com.couchbase.client.java.search.sort.SearchSort
com.couchbase.client.java.search.sort.SearchSortGeoDistance
public class SearchSortGeoDistance extends SearchSort
Sort by a location and unit in the rows.
- Since:
- 2.4.5
- Author:
- Michael Nitschinger
-
Method Summary
Modifier and Type Method Description SearchSortGeoDistance
desc(boolean descending)
protected String
identifier()
The identifier for the sort type, used in the "by" field.void
injectParams(JsonObject queryJson)
SearchSortGeoDistance
unit(SearchGeoDistanceUnits unit)
Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
byField, byGeoDistance, byId, byScore
-
Method Details
-
identifier
Description copied from class:SearchSort
The identifier for the sort type, used in the "by" field.- Specified by:
identifier
in classSearchSort
-
desc
- Overrides:
desc
in classSearchSort
-
unit
-
injectParams
- Overrides:
injectParams
in classSearchSort
-