Class CommonPertinenceSortDefinition
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.DefaultSortDefinition
org.ametys.web.frontoffice.search.metamodel.impl.CommonPertinenceSortDefinition
- All Implemented Interfaces:
SortDefinition
SortDefinition
implementation for a sort on pertinence (Solr pseudo-field "score").-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor with default labelConstructor with a label -
Method Summary
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.DefaultSortDefinition
getField, getId, getLabel
-
Field Details
-
__ID
The id of the sort definition- See Also:
-
-
Constructor Details
-
CommonPertinenceSortDefinition
public CommonPertinenceSortDefinition()Default constructor with default label -
CommonPertinenceSortDefinition
Constructor with a label- Parameters:
label
- The label
-
-
Method Details
-
orders
Description copied from interface:SortDefinition
Gets the orders this sort supports.
By default toSort.Order.ASC
andSort.Order.DESC
.
Override this method to restrict to only one of them, if the other is irrelevant for instance.- Returns:
- the orders this sort supports
-