Class SearchSortField
java.lang.Object
com.couchbase.client.java.search.sort.SearchSort
com.couchbase.client.java.search.sort.SearchSortField
public class SearchSortField extends SearchSort
Sort by a field in the hits.
- Since:
- 2.4.5
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description SearchSortField(String field)
-
Method Summary
Modifier and Type Method Description SearchSortField
descending(boolean descending)
protected String
identifier()
The identifier for the sort type, used in the "by" field.void
injectParams(JsonObject queryJson)
SearchSortField
missing(FieldMissing missing)
SearchSortField
mode(FieldMode mode)
SearchSortField
type(FieldType type)
Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
sortField, sortGeoDistance, sortId, sortScore
-
Constructor Details
-
SearchSortField
-
-
Method Details
-
descending
- Overrides:
descending
in classSearchSort
-
type
-
mode
-
missing
-
identifier
Description copied from class:SearchSort
The identifier for the sort type, used in the "by" field.- Specified by:
identifier
in classSearchSort
-
injectParams
- Overrides:
injectParams
in classSearchSort
-