SearchHubActions (Recommendation Engine) (Deprecated)
SearchHubActions (Recommendation Engine) (Deprecated)
In this article
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The search hub action creators.
See Dispatch Actions.
Loader Function
loadSearchHubActions
Loads the searchHub reducer and returns possible action creators.
Parameters
-
engine:
CoreEngineThe headless engine.
Returns SearchHubActionCreators: The search hub action creators.
SearchHubActionCreators
setSearchHub
Sets the search hub.
Parameters
-
searchHub:
stringThe new search hub (may be empty).
Returns PayloadAction<string>: A dispatchable action.