Section navigation

Public class AggregationResult

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

Result of a numeric aggregation over matching documents.

public class AggregationResult
Inheritance
AggregationResult
Derived

Remarks

Count counts every observed numeric value, including non-finite IEEE-754 values. For Stats aggregations, a NaN value propagates to the extrema, sum and average; positive and negative infinity are retained using normal IEEE-754 arithmetic.

Public property Avg

Gets the average of all observed numeric values included in the aggregation.

Public property Buckets

Histogram buckets (non-null only for Histogram aggregations).

Public property Count

Gets the number of observed numeric values included in the aggregation.

Public property Field

Gets the numeric field that was aggregated.

Public property Max

Gets the maximum observed numeric value included in the aggregation.

Public property Min

Gets the minimum observed numeric value included in the aggregation.

Public property Name

Gets the caller-assigned name of this aggregation result.

Public property Sum

Gets the sum of all observed numeric values included in the aggregation.

Public method Empty(string, string)

An empty/no-data result.