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

    Interface SuggestParams

    interface SuggestParams {
        attributes?: string;
        limit?: number;
        q?: string;
        query?: string;
    }
    Index
    attributes?: string

    Which attributes to return per suggestion. Same three forms as ProductSearchParams.attributes; omitted means none.

    A typeahead row is a name, an image and a price, so the default is right for almost every caller. Name codes only if the dropdown renders a subtitle. Suggestions never carry variants.

    limit?: number
    q?: string

    Use query — kept as an alias for backward compatibility

    query?: string

    Free-text query. Empty/omitted returns popular searches + popular products.