Variable: intelligentSearchFetcher
constintelligentSearchFetcher:ProductFetcher<Product>
Defined in: hydration/intelligentSearch/fetcher.ts:58
Fetches products from Intelligent Search (IS) based on provided SKUs and sellers.
Implements ProductFetcher interface to fetch products.
Searches by product ID the offers that have one, and by SKU the others (as the Stories' products, which come without a product ID). Sends one request per MAX_PRODUCTS_PER_SEARCH ids, in parallel, and rejects if any of them fails.
It changes the IS response to ensure the products to include only those that match the specified SKUs and sellers.
Param
Array of offers containing SKU and seller information
Param
Identity object containing account name
Param
Request options, such as a signal to cancel it
Returns
Promise resolving to array of products that match the offers