Package version:

A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval.

interface FacetResult {
    count?: number;
    facets?: {
        [propertyName: string]: FacetResult[];
    };
    [property: string]: any;
}

Indexable

  • [property: string]: any

    Describes unknown properties. The value of an unknown property can be of "any" type.

Properties

Properties

count?: number

The approximate count of documents falling within the bucket described by this facet. NOTE: This property will not be serialized. It can only be populated by the server.

facets?: {
    [propertyName: string]: FacetResult[];
}

The nested facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not contain any nested facets. NOTE: This property will not be serialized. It can only be populated by the server.