Section navigation

Public classStatic NumericAggregator

Namespace
Rowles.LeanCorpus.Search.Aggregations
Assembly
Rowles.LeanCorpus.dll

Computes numeric aggregations over matching documents using numeric doc values. Operates per-segment for cache-friendliness.

public static class NumericAggregator
Inheritance
NumericAggregator

Public method Aggregate(ReadOnlySpan<ScoreDoc>, AggregationRequest[], IReadOnlyList<SegmentReader>, int[], int)

Computes all requested aggregations directly from search result documents. Avoids the intermediate HashSet<T> and int[] allocation that the ReadOnlySpan<int> overload requires callers to build.

Public method Aggregate(ReadOnlySpan<int>, AggregationRequest[], IReadOnlyList<SegmentReader>, int[], int)

Computes all requested aggregations over the given matching document IDs.