• Performs a search operation using the provided query and options.

    Type Parameters

    Parameters

    • query: SearchQuery

      The search query to be executed.

    • options: Options<HD> = {}

      An object containing optional parameters for the search.

    Returns Promise<
        {
            abTests?: ABTest[];
            autocorrect?: SearchAutocorrect;
            explain?: SearchExplain;
            keywords?: SearchKeywords;
            products: {
                categoryId?: string;
                categoryPath?: string;
                collapse?: string;
                facets?: SearchFacet[];
                from?: number;
                fuzzy?: boolean;
                hits: ToIntersection<ReturnType<HD[number]>>[];
                size?: number;
                total: number;
            };
            query?: string;
            redirect?: string;
        },
    >

    A promise that resolves to the search result.

MMNEPVFCICPMFPCPTTAAATR