Home > widget-integration > SuggestionResponse

SuggestionResponse interface

Response from the suggestion search API.

**Legacy**: Untyped object returned from getSuggestionSearch() **New**: Fully typed interface with JSDoc comments

Signature:

export interface SuggestionResponse 

Properties

Property

Modifiers

Type

Description

all_empty

boolean

Whether all result categories are empty

bundles?

SuggestionBundle[]

(Optional) Bundle data (if any)

collections

SuggestionCollection[]

Matching collections

correct_query

string

Corrected query (spell correction)

did_you_mean

string[]

"Did you mean" suggestions

meta

{ rid: string; }

Response metadata

pages

SuggestionPage[]

Matching pages

products

ProductItem[]

Matching products

query

string

Original search query

suggestions

string[]

Search term suggestions

total_product

number

Total product count