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 hits.- Since:
- 2.4.5
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description SearchSortGeoDistance(double locationLon, double locationLat, String field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchSortGeoDistance
descending(boolean descending)
protected String
identifier()
The identifier for the sort type, used in the "by" field.void
injectParams(JsonObject queryJson)
SearchSortGeoDistance
unit(String unit)
-
Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
sortField, sortGeoDistance, sortId, sortScore
-
-
-
-
Constructor Detail
-
SearchSortGeoDistance
public SearchSortGeoDistance(double locationLon, double locationLat, String field)
-
-
Method Detail
-
identifier
protected String identifier()
Description copied from class:SearchSort
The identifier for the sort type, used in the "by" field.- Specified by:
identifier
in classSearchSort
-
descending
public SearchSortGeoDistance descending(boolean descending)
- Overrides:
descending
in classSearchSort
-
unit
public SearchSortGeoDistance unit(String unit)
-
injectParams
public void injectParams(JsonObject queryJson)
- Overrides:
injectParams
in classSearchSort
-
-