Uses of Class
org.apache.lucene.search.TopFieldDocs
-
Packages that use TopFieldDocs Package Description org.apache.lucene.search Code to search indices. -
-
Uses of TopFieldDocs in org.apache.lucene.search
Methods in org.apache.lucene.search that return TopFieldDocs Modifier and Type Method Description static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits)
Same asTopDocs.merge(Sort, int, TopFieldDocs[])
but also ignores the topstart
top docs.static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, Comparator<ScoreDoc> tieBreaker)
Pass in a custom tie breaker for ordering resultsstatic TopFieldDocs
TopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)
Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort
.TopFieldDocs
TopFieldCollectorManager. reduce(Collection<TopFieldCollector> collectors)
TopFieldDocs
IndexSearcher. search(Query query, int n, Sort sort)
Search implementation with arbitrary sorting.TopFieldDocs
IndexSearcher. search(Query query, int n, Sort sort, boolean doDocScores)
Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.TopFieldDocs
IndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores)
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.TopFieldDocs
TopFieldCollector. topDocs()
Methods in org.apache.lucene.search that return types with arguments of type TopFieldDocs Modifier and Type Method Description static CollectorManager<TopFieldCollector,TopFieldDocs>
TopFieldCollector. createSharedManager(Sort sort, int numHits, FieldDoc after, int totalHitsThreshold)
Deprecated.This method is deprecated in favor of the constructor ofTopFieldCollectorManager
due to its support for concurrency in IndexSearcherMethods in org.apache.lucene.search with parameters of type TopFieldDocs Modifier and Type Method Description static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits)
Same asTopDocs.merge(Sort, int, TopFieldDocs[])
but also ignores the topstart
top docs.static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, Comparator<ScoreDoc> tieBreaker)
Pass in a custom tie breaker for ordering resultsstatic TopFieldDocs
TopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)
Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort
.
-