Home > widget-integration > InstantSearchService > getDefaultSuggestionData
InstantSearchService.getDefaultSuggestionData() method
Build default suggestion data for initial state.
**Legacy**: buildDefaultDataSuggestion(context) **New**: getDefaultSuggestionData(searchSettings) with typed return
Signature:
getDefaultSuggestionData(searchSettings: SearchSettings$1): Promise<DefaultSuggestionData>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
searchSettings |
Search settings |
Returns:
Promise<DefaultSuggestionData>
Promise resolving to default suggestion data