public class SearchSortGeoDistance extends SearchSort
Sort by a location and unit in the hits.
| Constructor and Description |
|---|
SearchSortGeoDistance(double locationLon,
double locationLat,
String field) |
| Modifier and Type | Method and 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) |
sortField, sortGeoDistance, sortId, sortScorepublic SearchSortGeoDistance(double locationLon,
double locationLat,
String field)
protected String identifier()
SearchSortThe identifier for the sort type, used in the “by” field.
identifier in class SearchSortpublic SearchSortGeoDistance descending(boolean descending)
descending in class SearchSortpublic SearchSortGeoDistance unit(String unit)
public void injectParams(JsonObject queryJson)
injectParams in class SearchSortCopyright © 2015 Couchbase, Inc.