Interface LuceneSearchSortFactory
- All Superinterfaces:
ExtendedSearchSortFactory<LuceneSearchSortFactory,
,LuceneSearchPredicateFactory> SearchSortFactory
public interface LuceneSearchSortFactory
extends ExtendedSearchSortFactory<LuceneSearchSortFactory,LuceneSearchPredicateFactory>
A factory for search sorts with some Lucene-specific methods.
-
Method Summary
Modifier and TypeMethodDescriptionfromLuceneSort
(Sort luceneSort) Order elements by a given LuceneSort
.fromLuceneSortField
(SortField luceneSortField) Order elements by a given LuceneSortField
.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory
distance, distance, field, withRoot
Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory
composite, composite, extension, extension, indexOrder, score, toAbsolutePath
-
Method Details
-
fromLuceneSortField
Order elements by a given LuceneSortField
.- Parameters:
luceneSortField
- A Lucene sort field.- Returns:
- A
SortThenStep
allowing the retrieval of the sort or the chaining of other sorts.
-
fromLuceneSort
Order elements by a given LuceneSort
.- Parameters:
luceneSort
- A Lucene sort.- Returns:
- A
SortThenStep
allowing the retrieval of the sort or the chaining of other sorts.
-