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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchSortFielddescending(boolean descending)protected Stringidentifier()The identifier for the sort type, used in the "by" field.voidinjectParams(JsonObject queryJson)SearchSortFieldmissing(FieldMissing missing)SearchSortFieldmode(FieldMode mode)SearchSortFieldtype(FieldType type)-
Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
sortField, sortGeoDistance, sortId, sortScore
-
-
-
-
Constructor Detail
-
SearchSortField
public SearchSortField(String field)
-
-
Method Detail
-
descending
public SearchSortField descending(boolean descending)
- Overrides:
descendingin classSearchSort
-
type
public SearchSortField type(FieldType type)
-
mode
public SearchSortField mode(FieldMode mode)
-
missing
public SearchSortField missing(FieldMissing missing)
-
identifier
protected String identifier()
Description copied from class:SearchSortThe identifier for the sort type, used in the "by" field.- Specified by:
identifierin classSearchSort
-
injectParams
public void injectParams(JsonObject queryJson)
- Overrides:
injectParamsin classSearchSort
-
-