QuerySuggestActions (Commerce Engine)
QuerySuggestActions (Commerce Engine)
This is for:
Developer
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.
See Dispatch Actions.
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
-
payload:
FetchQuerySuggestionsActionCreatorPayload
The action creator payload.
Returns AsyncThunkAction<FetchQuerySuggestionsThunkReturn, FetchQuerySuggestionsActionCreatorPayload, AsyncThunkCommerceOptions<StateNeededByQuerySuggest>>
: A dispatchable action.
Related Types
FetchQuerySuggestionsActionCreatorPayload
Properties
-
id:
string
The unique identifier of the target query suggest entity (e.g.,
b953ab2e-022b-4de4-903f-68b2c0682942
).