Uses of Class
org.apache.lucene.search.Sort
Packages that use Sort
-
Uses of Sort in org.apache.lucene.search
Fields in org.apache.lucene.search declared as SortModifier and TypeFieldDescriptionstatic final Sort
Sort.INDEXORDER
Represents sorting by index order.static final Sort
Sort.RELEVANCE
Represents sorting by computed relevance.Methods in org.apache.lucene.search that return SortModifier and TypeMethodDescriptionSort.rewrite
(IndexSearcher searcher) Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.Methods in org.apache.lucene.search with parameters of type SortModifier and TypeMethodDescriptionstatic TopFieldCollector
TopFieldCollector.create
(Sort sort, int numHits, boolean fillFields, boolean trackDocScores, boolean trackMaxScore, boolean docsScoredInOrder) Creates a newTopFieldCollector
from the given arguments.static TopFieldCollector
TopFieldCollector.create
(Sort sort, int numHits, FieldDoc after, boolean fillFields, boolean trackDocScores, boolean trackMaxScore, boolean docsScoredInOrder) Creates a newTopFieldCollector
from the given arguments.static TopDocs
Returns a new TopDocs, containing topN results across the provided TopDocs, sorting by the specifiedSort
.protected TopFieldDocs
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore) Just likeIndexSearcher.search(Weight, int, Sort, boolean, boolean)
, but you choose whether or not the fields in the returnedFieldDoc
instances should be set by specifying fillFields.Search implementation with arbitrary sorting and no filter.Search implementation with arbitrary sorting.IndexSearcher.search
(Query query, Filter filter, int n, Sort sort, boolean doDocScores, boolean doMaxScore) Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.protected TopFieldDocs
Expert: Low-level search implementation with arbitrary sorting and control over whether hit scores and max score should be computed.protected TopFieldDocs
IndexSearcher.search
(Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore) Just likeIndexSearcher.search(Weight, int, Sort, boolean, boolean)
, but you choose whether or not the fields in the returnedFieldDoc
instances should be set by specifying fillFields.IndexSearcher.searchAfter
(ScoreDoc after, Query query, int n, Sort sort) Finds the topn
hits forquery
where all results are after a previous result (after
).IndexSearcher.searchAfter
(ScoreDoc after, Query query, Filter filter, int n, Sort sort) Finds the topn
hits forquery
, applyingfilter
if non-null, where all results are after a previous result (after
).IndexSearcher.searchAfter
(ScoreDoc after, Query query, Filter filter, int n, Sort sort, boolean doDocScores, boolean doMaxScore) Finds the topn
hits forquery
where all results are after a previous result (after
), allowing control over whether hit scores and max score should be computed.