Uses of Class
org.apache.lucene.search.ScoreDoc
Packages that use ScoreDoc
-
Uses of ScoreDoc in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type ScoreDocModifier and TypeClassDescriptionclass
TopDocsCollector<T extends ScoreDoc>
A base class for all collectors that return aTopDocs
output.Subclasses of ScoreDoc in org.apache.lucene.searchModifier 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.Fields in org.apache.lucene.search declared as ScoreDocMethods in org.apache.lucene.search with parameters of type ScoreDocModifier and TypeMethodDescriptionstatic TopScoreDocCollector
Deprecated.TopScoreDocCollector.createSharedManager
(int numHits, ScoreDoc after, int totalHitsThreshold) Deprecated.This method is deprecated in favor of the constructor ofTopScoreDocCollectorManager
due to its support for concurrency in IndexSearcherprotected 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.Method parameters in org.apache.lucene.search with type arguments of type ScoreDocModifier 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 resultsConstructors in org.apache.lucene.search with parameters of type ScoreDocModifierConstructorDescriptionConstructs a TopDocs.TopFieldDocs
(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields) Creates one of these objects.TopScoreDocCollectorManager
(int numHits, ScoreDoc after, int totalHitsThreshold) Creates a newTopScoreDocCollectorManager
given the number of hits to collect and the number of hits to count accurately, with thread-safe internal states.TopScoreDocCollectorManager
(int numHits, ScoreDoc after, int totalHitsThreshold, boolean supportsConcurrency) Creates a newTopScoreDocCollectorManager
given the number of hits to collect and the number of hits to count accurately.
TopScoreDocCollectorManager
due to its support for concurrency in IndexSearcher