Uses of Class
org.apache.lucene.search.ScoreDoc
-
Uses of ScoreDoc in org.apache.lucene.search
Modifier and TypeClassDescriptionclass
TopDocsCollector<T extends ScoreDoc>
A base class for all collectors that return aTopDocs
output.Modifier and TypeClassDescriptionclass
Expert: A ScoreDoc which also contains information about how to sort the referenced document.static class
Extension of ScoreDoc to also store theFieldComparator
slot.Modifier and TypeMethodDescriptionstatic TopScoreDocCollector
Creates a newTopScoreDocCollector
given the number of hits to collect, the bottom of the previous page, and the number of hits to count accurately.TopScoreDocCollector.createSharedManager
(int numHits, ScoreDoc after, int totalHitsThreshold) Create a CollectorManager which uses a shared hit counter to maintain number of hits and a sharedMaxScoreAccumulator
to propagate the minimum score accross segmentsprotected final boolean
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 void
TopDocsCollector.populateResults
(ScoreDoc[] results, int howMany) Populates the results array with the ScoreDoc instances.protected void
TopFieldCollector.populateResults
(ScoreDoc[] results, int howMany) static void
TopFieldCollector.populateScores
(ScoreDoc[] topDocs, IndexSearcher searcher, Query query) Populatescores
of the giventopDocs
.IndexSearcher.searchAfter
(ScoreDoc after, Query query, int numHits) 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, 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.Modifier and TypeMethodDescriptionstatic TopDocs
TopDocs.merge
(int start, int topN, TopDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) Same as above, but accepts the passed in tie breakerstatic TopFieldDocs
TopDocs.merge
(Sort sort, int start, int topN, TopFieldDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) Pass in a custom tie breaker for ordering results