interface FacetRange {
    count: number;
    from: number;
    fromStr: string;
    max: number;
    mean: number;
    min: number;
    productCount?: number;
    to: number;
    toStr: string;
    total: number;
}

Properties

count: number

Number of ProductVariants for which the values in a field fall into the specified range.

from: number

The range's lower endpoint.

`0` represents -∞.
fromStr: string

The range's lower endpoint.

An empty string represents -∞.
max: number

Maximum value within the range.

mean: number

Arithmetic mean of the values within the range.

min: number

Minimum value within the range.

productCount?: number

Number of Products for which the values in a field fall into the specified range.

Present only if the `counting products` [extension](/projects/product-projection-search#counting-products) is enabled.
to: number

The range's upper endpoint.

`0` represents +∞.
toStr: string

The range's upper endpoint.

An empty string represents +∞.
total: number

Sum of all values contained in the range.