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 TypeClassDescriptionclassRepresents hits returned byIndexSearcher.search(Query,Filter,int,Sort).Fields in org.apache.lucene.search declared as TopDocsModifier and TypeFieldDescriptionprotected static final TopDocsTopDocsCollector.EMPTY_TOPDOCSThis 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 TopDocsReturns a new TopDocs, containing topN results across the provided TopDocs, sorting by the specifiedSort.protected TopDocsTopDocsCollector.newTopDocs(ScoreDoc[] results, int start) Returns aTopDocsinstance containing the given results.protected TopDocsTopFieldCollector.newTopDocs(ScoreDoc[] results, int start) protected TopDocsTopScoreDocCollector.newTopDocs(ScoreDoc[] results, int start) protected TopDocsIndexSearcher.search(List<AtomicReaderContext> leaves, Weight weight, ScoreDoc after, int nDocs) Expert: Low-level search implementation.Finds the topnhits forquery.Finds the topnhits forquery, applyingfilterif non-null.protected TopDocsExpert: Low-level search implementation.IndexSearcher.searchAfter(ScoreDoc after, Query query, int n) Finds the topnhits forquerywhere all results are after a previous result (after).IndexSearcher.searchAfter(ScoreDoc after, Query query, int n, Sort sort) Finds the topnhits forquerywhere all results are after a previous result (after).IndexSearcher.searchAfter(ScoreDoc after, Query query, Filter filter, int n) Finds the topnhits forquery, applyingfilterif 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 topnhits forquery, applyingfilterif 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 topnhits forquerywhere 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