Interface LuceneSearchSortFactory
- All Superinterfaces:
ExtendedSearchSortFactory<LuceneSearchSortFactory,,LuceneSearchPredicateFactory> SearchSortFactory
- All Known Implementing Classes:
LuceneSearchSortFactoryImpl
public interface LuceneSearchSortFactory
extends ExtendedSearchSortFactory<LuceneSearchSortFactory,LuceneSearchPredicateFactory>
A factory for search sorts with some Lucene-specific methods.
-
Method Summary
Modifier and TypeMethodDescriptionfromLuceneSort(org.apache.lucene.search.Sort luceneSort) Order elements by a given LuceneSort.fromLuceneSortField(org.apache.lucene.search.SortField luceneSortField) Order elements by a given LuceneSortField.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory
distance, distance, field, withRootMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory
composite, composite, extension, extension, indexOrder, score, toAbsolutePath, 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.
-