Home > widget-integration > InstantSearchService > getSuggestProducts
InstantSearchService.getSuggestProducts() method
Get suggested products for search box on-click.
**Legacy**: getSuggestProducts(context) **New**: getSuggestProducts(searchSettings) with typed return
Signature:
getSuggestProducts(searchSettings: SearchSettings$1): Promise<ProductItem[]>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
searchSettings |
Search settings |
Returns:
Promise<ProductItem[]>
Promise resolving to array of products