Interface LuceneSearchSortFactory<SR>
- All Superinterfaces:
ExtendedSearchSortFactory<SR,,LuceneSearchSortFactory<SR>, LuceneSearchPredicateFactory<SR>> SearchSortFactory,TypedSearchSortFactory<SR>
public interface LuceneSearchSortFactory<SR>
extends ExtendedSearchSortFactory<SR,LuceneSearchSortFactory<SR>,LuceneSearchPredicateFactory<SR>>
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, distance, distance, field, withRootMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory
extension, toAbsolutePathMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.TypedSearchSortFactory
composite, composite, extension, field, indexOrder, score, withParameters
-
Method Details
-
fromLuceneSortField
Order elements by a given LuceneSortField.- Parameters:
luceneSortField- A Lucene sort field.- Returns:
- A
SortThenStepallowing 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
SortThenStepallowing the retrieval of the sort or the chaining of other sorts.
-