Uses of Class
org.apache.lucene.search.ScoreDoc
-
Packages that use ScoreDoc Package Description org.apache.lucene.search Code to search indices. -
-
Uses of ScoreDoc in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type ScoreDoc Modifier and Type Class Description classTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.Subclasses of ScoreDoc in org.apache.lucene.search Modifier and Type Class Description classFieldDocExpert: A ScoreDoc which also contains information about how to sort the referenced document.static classFieldValueHitQueue.EntryExtension of ScoreDoc to also store theFieldComparatorslot.Fields in org.apache.lucene.search declared as ScoreDoc Modifier and Type Field Description ScoreDoc[]TopDocs. scoreDocsThe top hits for the query.Methods in org.apache.lucene.search with parameters of type ScoreDoc Modifier and Type Method Description static TopScoreDocCollectorTopScoreDocCollector. create(int numHits, ScoreDoc after, int totalHitsThreshold)Deprecated.This method is deprecated in favor of the constructor ofTopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcherstatic CollectorManager<TopScoreDocCollector,TopDocs>TopScoreDocCollector. createSharedManager(int numHits, ScoreDoc after, int totalHitsThreshold)Deprecated.This method is deprecated in favor of the constructor ofTopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcherprotected booleanHitQueue. lessThan(ScoreDoc hitA, ScoreDoc hitB)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 voidTopDocsCollector. populateResults(ScoreDoc[] results, int howMany)Populates the results array with the ScoreDoc instances.protected voidTopFieldCollector. populateResults(ScoreDoc[] results, int howMany)static voidTopFieldCollector. populateScores(ScoreDoc[] topDocs, IndexSearcher searcher, Query query)Populatescoresof the giventopDocs.TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits)Finds the topnhits forquerywhere all results are after a previous result (after).TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int n, Sort sort)Finds the topnhits forquerywhere all results are after a previous result (after).TopFieldDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores)Finds the topnhits forquerywhere 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 ScoreDoc Modifier and Type Method Description static TopDocsTopDocs. merge(int start, int topN, TopDocs[] shardHits, Comparator<ScoreDoc> tieBreaker)Same as above, but accepts the passed in tie breakerstatic TopFieldDocsTopDocs. 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 ScoreDoc Constructor Description TopDocs(TotalHits totalHits, ScoreDoc[] scoreDocs)Constructs a TopDocs.TopFieldDocs(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields)Creates one of these objects.TopScoreDocCollectorManager(int numHits, ScoreDoc after, int totalHitsThreshold)Creates a newTopScoreDocCollectorManagergiven 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 newTopScoreDocCollectorManagergiven the number of hits to collect and the number of hits to count accurately.
-