QuerySuggestActions (Commerce Engine)

This is for:

Developer
Important

The Headless commerce engine, controllers, and actions are in open beta and therefore under active development. Reach out to your Coveo team for support in adopting them.

The query suggest action creators for commerce.

Loader Function

loadQuerySuggestActions

Loads the querySuggest reducer and returns possible action creators.

Parameters

  • engine: CommerceEngine

    The headless engine.

Returns CommerceQuerySuggestActionCreators: The query suggest action creators for commerce.

CommerceQuerySuggestActionCreators

fetchQuerySuggestions

Fetches a list of query suggestions for a specific query suggest entity according to the current headless state.

Parameters

Returns AsyncThunkAction<FetchQuerySuggestionsThunkReturn, FetchQuerySuggestionsActionCreatorPayload, AsyncThunkCommerceOptions<StateNeededByQuerySuggest>>: A dispatchable action.

FetchQuerySuggestionsActionCreatorPayload

Properties

  • id: string

    The unique identifier of the target query suggest entity (e.g., b953ab2e-022b-4de4-903f-68b2c0682942).