Class AbstractAllGroupHeadsCollector
LUCENENET specific class used to reference an AbstractAllGroupHeadsCollector<GH> subclass without refering to its generic closing type.
Inheritance
Assembly: Lucene.Net.Grouping.dll
Syntax
public abstract class AbstractAllGroupHeadsCollector : object, ICollector
Properties
Name | Description |
---|---|
AcceptsDocsOutOfOrder | Return Most Lucene Query implementations will visit matching docIDs in order. However, some queries (currently limited to certain cases of BooleanQuery) can achieve faster searching if the ICollector allows them to deliver the docIDs out of order. Many collectors don't mind getting docIDs out of
order, so it's important to return |
GroupHeadsCount | The number of group heads found for a query. LUCENENET NOTE: This was groupHeadsSize() in Lucene |
Methods
Name | Description |
---|---|
Collect(Int32) | Called once for every document matching a query, with the unbased document number. Note: The collection of the current segment can be terminated by throwing a CollectionTerminatedException. In this case, the last docs of the current AtomicReaderContext will be skipped and IndexSearcher will swallow the exception and continue collection with the next leaf. Note: this is called in an inner search loop. For good search performance, implementations of this method should not call Lucene.Net.Search.IndexSearcher.Doc(System.Int32) or Lucene.Net.Index.IndexReader.Document(System.Int32) on every hit. Doing so can slow searches by an order of magnitude or more. |
RetrieveGroupHeadAndAddIfNotExist(Int32) | Returns the group head and puts it into AbstractAllGroupHeadsCollector<GH>.TemporalResult. If the group head wasn't encountered before then it will be added to the collected group heads.
The Stop property will be |
RetrieveGroupHeads() | |
RetrieveGroupHeads(Int32) | |
SetNextReader(AtomicReaderContext) | Called before collecting from each AtomicReaderContext. All doc ids in Collect(Int32) will correspond to Reader. Add DocBase to the current Reader's internal document id to re-base ids in Collect(Int32). |
SetScorer(Scorer) | Called before successive calls to Collect(Int32). Implementations
that need the score of the current document (passed-in to
|