public class CommonPertinenceSortDefinition extends DefaultSortDefinition
SortDefinition
implementation for a sort on pertinence (Solr pseudo-field "score").Modifier and Type | Field and Description |
---|---|
protected static String |
__ID
The id of the sort definition
|
_id, _label, _searchField, _searchFieldStr
Constructor and Description |
---|
CommonPertinenceSortDefinition()
Default constructor with default label
|
CommonPertinenceSortDefinition(I18nizableText label)
Constructor with a label
|
Modifier and Type | Method and Description |
---|---|
Sort.Order[] |
orders()
Gets the orders this sort supports.
|
getField, getId, getLabel
protected static final String __ID
public CommonPertinenceSortDefinition()
public CommonPertinenceSortDefinition(I18nizableText label)
label
- The labelpublic Sort.Order[] orders()
SortDefinition
Sort.Order.ASC
and Sort.Order.DESC
.