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.
Performs a search operation using the provided query and options.