Section navigation

Public struct 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

Public property TotalHits

The total number of matching documents.

Public method Collect(int, float)

Accepts a matching document with its score.