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

SuggestionResponse

Current suggestion data

query

string

Search query

searchSettings

SearchSettings$1

Search settings

Returns:

Promise<SuggestionResponse>

Updated suggestion data with fallback products