Home > widget-integration > DefaultSuggestionData

DefaultSuggestionData interface

Default suggestion data built on initialization.

**Legacy**: Built in buildDefaultDataSuggestion() function **New**: Typed interface for the default data structure

Signature:

export interface DefaultSuggestionData 

Properties

Property

Modifiers

Type

Description

all_empty

boolean

Whether all results are empty

collections

SuggestionCollection[]

Collections

isLoading

boolean

Loading state

money_format_with_currency

string

Money format with currency

money_format

string

Money format string

pages

SuggestionPage[]

Pages

products

ProductItem[]

Products

query

string

Current query

recentSearches

RecentSearchItem[]

Recent searches

redirects

Record<string, string>

Redirect mappings

searchTermNoResultLabel

string

No result search terms label

searchTermNoResultList

string[]

No result search terms list

searchTermNoResultStatus

boolean

No result search terms status

searchTermSuggestionLabel

string

Search term suggestion label

searchTermSuggestionList

string[]

Search term suggestion list

searchTermSuggestionStatus

boolean

Search term suggestion status

suggestionBlocksList

SuggestionBlock$1[]

Suggestion blocks configuration

suggestionMobileProductItemType

"grid" | "list"

Mobile product item type

suggestionMobileStyle

"style1" | "style2"

Mobile suggestion style

suggestions

string[]

Search suggestions

total_product

number

Total product count