CountCollector
- Namespace
- Rowles.LeanCorpus.Search.Scoring
- Assembly
- Rowles.LeanCorpus.dll
A simple count-only collector that tracks hit count without storing results. Useful for count queries where actual documents are not needed.
public struct CountCollector : ICollector
- Implements
TotalHits
The total number of matching documents.
Collect(int, float)
Accepts a matching document with its score.