public abstract class SearchSort extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
descending |
Modifier | Constructor and Description |
---|---|
protected |
SearchSort() |
Modifier and Type | Method and Description |
---|---|
static SearchSortField |
byField(String field)
Sort by a field in the rows.
|
static SearchSortGeoDistance |
byGeoDistance(double locationLon,
double locationLat,
String field)
Sort by distance from a geographic location.
|
static SearchSortId |
byId()
Sort by the document identifier.
|
static SearchSortScore |
byScore()
Sort by the hit score.
|
SearchSort |
desc(boolean descending) |
abstract com.couchbase.client.core.api.search.sort.CoreSearchSort |
toCore() |
@Stability.Internal public abstract com.couchbase.client.core.api.search.sort.CoreSearchSort toCore()
public SearchSort desc(boolean descending)
public static SearchSortId byId()
public static SearchSortScore byScore()
public static SearchSortField byField(String field)
field
- the field name.public static SearchSortGeoDistance byGeoDistance(double locationLon, double locationLat, String field)
locationLon
- longitude of the location.locationLat
- latitude of the location.field
- the field name.Copyright © 2024 Couchbase, Inc.. All rights reserved.