Condividi tramite


RangeFacetResult<T> Class

Definition

A single bucket of a range facet query result that reports the number of documents with a field value falling within a particular range.

public class RangeFacetResult<T> where T : struct
type RangeFacetResult<'T (requires 'T : struct)> = class
Public Class RangeFacetResult(Of T)

Type Parameters

T

A type that matches the type of the field to which the facet was applied. Valid types include DateTimeOffset, Double, and Int64 (long in C#, int64 in F#).

Inheritance
RangeFacetResult<T>

Constructors

RangeFacetResult<T>(Int64, Nullable<T>, Nullable<T>)

Creates a new instance of the RangeFacetResult class.

Properties

Count

Gets the approximate count of documents falling within the bucket described by this facet.

From

Gets a value indicating the inclusive lower bound of the facet's range, or null to indicate that there is no lower bound (for the first bucket).

To

Gets a value indicating the exclusive upper bound of the facet's range, or null to indicate that there is no upper bound (for the last bucket).

Applies to