Home > widget-integration > InstantSearchService > handleNoResults
InstantSearchService.handleNoResults() method
Handle no-results scenario by fetching fallback products.
Signature:
protected handleNoResults(data: SuggestionResponse, query: string, searchSettings: SearchSettings$1): Promise<SuggestionResponse>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Current suggestion data | |
|
query |
string |
Search query |
|
searchSettings |
Search settings |
Returns:
Promise<SuggestionResponse>
Updated suggestion data with fallback products