@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface SearchFacets

    interface SearchFacets {
        attributes?: {
            attributeId: string;
            filterType: string;
            name: string;
            options: { count: number; label: string; value: string }[];
            type: string;
        }[];
        availability?: { inStock: number; outOfStock: number };
        campaign?: { withCampaign: number; withoutCampaign: number };
        categories?: {
            count: number;
            id: string;
            name: string;
            parentId?: string;
            parentName?: string;
        }[];
        discount?: { onSale: number; regularPrice: number };
        price_ranges?: {
            doc_count?: number;
            from?: number;
            key?: string;
            to?: number;
        }[];
        price_stats?: { max: number; min: number };
    }
    Index
    attributes?: {
        attributeId: string;
        filterType: string;
        name: string;
        options: { count: number; label: string; value: string }[];
        type: string;
    }[]
    availability?: { inStock: number; outOfStock: number }
    campaign?: { withCampaign: number; withoutCampaign: number }
    categories?: {
        count: number;
        id: string;
        name: string;
        parentId?: string;
        parentName?: string;
    }[]
    discount?: { onSale: number; regularPrice: number }
    price_ranges?: { doc_count?: number; from?: number; key?: string; to?: number }[]

    Preset price buckets. Absent when prices are hidden.

    price_stats?: { max: number; min: number }

    Absent (along with price_ranges and discount) when prices are hidden from this visitor.