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
Modifier and Type Method Description SearchSortGeoDistancedescending(boolean descending)protected Stringidentifier()The identifier for the sort type, used in the "by" field.voidinjectParams(JsonObject queryJson)SearchSortGeoDistanceunit(String unit)Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
sortField, sortGeoDistance, sortId, sortScore
-
Constructor Details
-
SearchSortGeoDistance
-
-
Method Details
-
identifier
Description copied from class:SearchSortThe identifier for the sort type, used in the "by" field.- Specified by:
identifierin classSearchSort
-
descending
- Overrides:
descendingin classSearchSort
-
unit
-
injectParams
- Overrides:
injectParamsin classSearchSort
-