Uses of Class
org.apache.lucene.search.TopDocs
Packages that use TopDocs
-
Uses of TopDocs in org.apache.lucene.search
Subclasses of TopDocs in org.apache.lucene.searchModifier and TypeClassDescriptionclass
Represents hits returned byIndexSearcher.search(Query,Filter,int,Sort)
.Fields in org.apache.lucene.search declared as TopDocsModifier and TypeFieldDescriptionprotected static final TopDocs
TopDocsCollector.EMPTY_TOPDOCS
This is used in case topDocs() is called with illegal parameters, or there simply aren't (enough) results.Methods in org.apache.lucene.search that return TopDocsModifier and TypeMethodDescriptionstatic TopDocs
Returns a new TopDocs, containing topN results across the provided TopDocs, sorting by the specifiedSort
.protected TopDocs
TopDocsCollector.newTopDocs
(ScoreDoc[] results, int start) Returns aTopDocs
instance containing the given results.protected TopDocs
TopFieldCollector.newTopDocs
(ScoreDoc[] results, int start) protected TopDocs
TopScoreDocCollector.newTopDocs
(ScoreDoc[] results, int start) protected TopDocs
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, ScoreDoc after, int nDocs) Expert: Low-level search implementation.Finds the topn
hits forquery
.Finds the topn
hits forquery
, applyingfilter
if non-null.protected TopDocs
Expert: Low-level search implementation.IndexSearcher.searchAfter
(ScoreDoc after, Query query, int n) Finds the topn
hits forquery
where all results are after a previous result (after
).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) 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) 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.TopDocsCollector.topDocs()
Returns the top docs that were collected by this collector.TopDocsCollector.topDocs
(int start) Returns the documents in the rage [start ..TopDocsCollector.topDocs
(int start, int howMany) Returns the documents in the rage [start ..Methods in org.apache.lucene.search with parameters of type TopDocs