Class TopScoreDocCollector
A ICollector 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
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class TopScoreDocCollector : TopDocsCollector<ScoreDoc>, ITopDocsCollector, ICollector
Methods
Name | Description |
---|---|
Create(Int32, ScoreDoc, Boolean) | Creates a new TopScoreDocCollector given the number of hits to collect, the bottom of the previous page, 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
|
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(AtomicReaderContext) | |
SetScorer(Scorer) |