Class TopScoreDocCollector
A Collector implementation that collects the top-scoring hits, returning them as a TopDocs. This is used by IndexSearcher to implement TopDocs-based search. Hits are sorted by score descending and then (when the scores are tied) docID ascending. When you create an instance of this collector you should know in advance whether documents are going to be collected in doc Id order or not.
NOTE: The values
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public abstract class TopScoreDocCollector : TopDocsCollector<ScoreDoc>
Methods
Name | Description |
---|---|
Create(Int32, Boolean) | Creates a new TopScoreDocCollector given the number of hits to collect and whether documents are scored in order by the input Scorer to SetScorer(Scorer). NOTE: The instances returned by this method
pre-allocate a full array of length
|
NewTopDocs(ScoreDoc[], Int32) | |
SetNextReader(IndexReader, Int32) | |
SetScorer(Scorer) |