Uses of Class
org.apache.lucene.search.ScoreDoc
Packages that use ScoreDoc
Package
Description
Utilities for evaluation, data preparation, etc.
Misc search implementations.
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Grouping.
Support for document suggestion
Provides quantization methods for scaling vector values to smaller data types and possibly fewer
dimensions
-
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(StoredFields originalFields, FieldType ft, ScoreDoc scoreDoc, String[] fieldNames) -
Uses of ScoreDoc in org.apache.lucene.misc.search
Subclasses of ScoreDoc in org.apache.lucene.misc.searchModifier and TypeClassDescriptionstatic classAn extension to ScoreDoc that includes a key used for grouping purposesMethods in org.apache.lucene.misc.search with parameters of type ScoreDocModifier and TypeMethodDescriptionprotected TopDocsDiversifiedTopDocsCollector.newTopDocs(ScoreDoc[] results, int start) -
Uses of ScoreDoc in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as ScoreDocFields in org.apache.lucene.sandbox.search with type parameters of type ScoreDocMethods in org.apache.lucene.sandbox.search with parameters of type ScoreDocModifier and TypeMethodDescriptionprotected TopDocsLargeNumHitsTopDocsCollector.newTopDocs(ScoreDoc[] results) Returns aTopDocsinstance containing the given results.protected voidLargeNumHitsTopDocsCollector.populateResults(ScoreDoc[] results, int howMany) Populates the results array with the ScoreDoc instances. -
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 TypeClassDescriptionclassExpert: 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 final ScoreDocTopScoreDocCollectorManager.afterprivate static final ScoreDoc[]TopFieldCollector.EMPTY_SCOREDOCS(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 ScoreDocModifier and TypeFieldDescriptionprivate static final Comparator<ScoreDoc> TopDocs.DEFAULT_TIE_BREAKERDefault comparatorprivate static final Comparator<ScoreDoc> TopDocs.DOC_ID_TIE_BREAKERInternal comparator with docIDVectorSimilarityCollector.scoreDocListprivate static final Comparator<ScoreDoc> TopDocs.SHARD_INDEX_TIE_BREAKERInternal comparator with shardIndex(package private) final Comparator<ScoreDoc> TopDocs.MergeSortQueue.tieBreaker(package private) final Comparator<ScoreDoc> TopDocs.ScoreMergeSortQueue.tieBreakerComparatorMethods in org.apache.lucene.search with parameters of type ScoreDocModifier and TypeMethodDescriptionstatic TopScoreDocCollectorDeprecated.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 IndexSearcher(package private) static AbstractVectorSimilarityQuery.VectorSimilarityScorerAbstractVectorSimilarityQuery.VectorSimilarityScorer.fromScoreDocs(Weight weight, float boost, ScoreDoc[] scoreDocs) protected final booleanprotected 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 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, Comparator<ScoreDoc> tieBreaker) Use the tie breaker if provided.Method parameters in org.apache.lucene.search with type arguments of type ScoreDocModifier and TypeMethodDescriptionstatic 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 resultsprivate static TopDocsTopDocs.mergeAux(Sort sort, int start, int size, TopDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) Auxiliary method used by theTopDocs.merge(int, org.apache.lucene.search.TopDocs[])impls.(package private) static booleanTopDocs.tieBreakLessThan(TopDocs.ShardRef first, ScoreDoc firstDoc, TopDocs.ShardRef second, ScoreDoc secondDoc, Comparator<ScoreDoc> tieBreaker) Use the tie breaker if provided.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.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.Constructor parameters in org.apache.lucene.search with type arguments of type ScoreDocModifierConstructorDescriptionMergeSortQueue(Sort sort, TopDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) ScoreMergeSortQueue(TopDocs[] shardHits, Comparator<ScoreDoc> tieBreakerComparator) -
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 -
Uses of ScoreDoc in org.apache.lucene.util.quantization
Fields in org.apache.lucene.util.quantization declared as ScoreDocModifier and TypeFieldDescriptionprivate final ScoreDoc[]ScalarQuantizer.ScoreDocsAndScoreVariance.scoreDocsMethods in org.apache.lucene.util.quantization that return ScoreDocModifier and TypeMethodDescriptionScoreDoc[]ScalarQuantizer.ScoreDocsAndScoreVariance.getScoreDocs()Constructors in org.apache.lucene.util.quantization with parameters of type ScoreDocModifierConstructorDescriptionScoreDocsAndScoreVariance(ScoreDoc[] scoreDocs, float scoreVariance)
TopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcher