Section navigation

Public classSealed FacetResult

Namespace
Rowles.LeanCorpus.Search.Scoring
Assembly
Rowles.LeanCorpus.dll

The facet result for one field: the field name and its value-count buckets.

public sealed class FacetResult
Inheritance
FacetResult

Public constructor FacetResult(string, IReadOnlyList<FacetBucket>)

Initialises a new FacetResult with the given field name and buckets.

Public constructor FacetResult(string, IReadOnlyList<FacetBucket>, int, int?, IReadOnlyList<DateHistogramBucket>?)

Initialises a new FacetResult with result metadata.

Public property Buckets

Gets the returned value-count buckets in the requested order.

Public property DateHistogramBuckets

Gets typed UTC boundaries for date histogram buckets, when this result is a date histogram.

Public property FieldName

Gets the name of the field these facet counts are for.

Public property MissingCount

Gets the count of matching documents without a value, when requested.

Public property Name

Gets the logical request name for this result.

Public property TotalBucketCount

Gets the number of buckets before offset and limit are applied.