Uses of Class
org.apache.lucene.search.ScoreDoc
Packages that use ScoreDoc
Package
Description
Utilities for evaluation, data preparation, etc.
Code to search indices.
Grouping.
Support for document suggestion
-
Uses of ScoreDoc in org.apache.lucene.classification.utils
Methods in org.apache.lucene.classification.utils with parameters of type ScoreDocModifier and TypeMethodDescriptionprivate DocumentDatasetSplitter.createNewDoc(IndexReader originalIndex, FieldType ft, ScoreDoc scoreDoc, String[] fieldNames) -
Uses of ScoreDoc in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type ScoreDocModifier and TypeClassDescriptionclassTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.Subclasses of ScoreDoc in org.apache.lucene.searchModifier and TypeClassDescriptionstatic classAn extension to ScoreDoc that includes a key used for grouping purposesclassExpert: A ScoreDoc which also contains information about how to sort the referenced document.static classExtension of ScoreDoc to also store theFieldComparatorslot.Fields in org.apache.lucene.search declared as ScoreDocModifier and TypeFieldDescriptionprivate final ScoreDocTopScoreDocCollector.PagingTopScoreDocCollector.afterprivate static final ScoreDoc[]TopFieldCollector.EMPTY_SCOREDOCS(package private) ScoreDocLargeNumHitsTopDocsCollector.pqTop(package private) ScoreDocTopScoreDocCollector.pqTopScoreDoc[]TopDocs.scoreDocsThe top hits for the query.(package private) final ScoreDoc[][]TopDocs.MergeSortQueue.shardHits(package private) final ScoreDoc[][]TopDocs.ScoreMergeSortQueue.shardHitsFields in org.apache.lucene.search with type parameters of type ScoreDocMethods in org.apache.lucene.search with parameters of type ScoreDocModifier and TypeMethodDescriptionstatic TopScoreDocCollectorCreates a newTopScoreDocCollectorgiven the number of hits to collect, the bottom of the previous page, and the number of hits to count accurately.(package private) static TopScoreDocCollectorTopScoreDocCollector.create(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc) (package private) intTopDocs.ShardRef.getShardIndex(ScoreDoc scoreDoc) protected final booleanprotected TopDocsDiversifiedTopDocsCollector.newTopDocs(ScoreDoc[] results, int start) protected TopDocsLargeNumHitsTopDocsCollector.newTopDocs(ScoreDoc[] results) Returns aTopDocsinstance containing the given results.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 TopDocsTopScoreDocCollector.PagingTopScoreDocCollector.newTopDocs(ScoreDoc[] results, int start) protected voidLargeNumHitsTopDocsCollector.populateResults(ScoreDoc[] results, int howMany) Populates the results array with the ScoreDoc instances.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.IndexSearcher.searchAfter(ScoreDoc after, Query query, int numHits) 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, 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.(package private) static booleanTopDocs.tieBreakLessThan(TopDocs.ShardRef first, ScoreDoc firstDoc, TopDocs.ShardRef second, ScoreDoc secondDoc) if we need to tie-break since score / sort value are the same we first compare shard index (lower shard wins) and then iff shard index is the same we use the hit index.Constructors in org.apache.lucene.search with parameters of type ScoreDocModifierConstructorDescription(package private)PagingTopScoreDocCollector(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc) Constructs a TopDocs.TopFieldDocs(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields) Creates one of these objects. -
Uses of ScoreDoc in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as ScoreDocModifier and TypeFieldDescriptionfinal ScoreDoc[]GroupDocs.scoreDocsHits; this may beFieldDocinstances if the withinGroupSort sorted by fields.Constructors in org.apache.lucene.search.grouping with parameters of type ScoreDoc -
Uses of ScoreDoc in org.apache.lucene.search.suggest.document
Subclasses of ScoreDoc in org.apache.lucene.search.suggest.document