THIS IS ARCHIVED DOCUMENTATION

(Deprecated) SearchActions

The search action creators.

Loader Function

loadSearchActions

Parameters

  • engine:

The headless engine.

Returns SearchActionCreators: The search action creators.

SearchActionCreators

executeSearch

Creates an action that executes a search query.

Parameters

  • analyticsSearchAction: SearchAction

    The analytics action to log after a successful query. See loadSearchAnalyticsActions for possible values.

Returns AsyncThunkAction<ExecuteSearchThunkReturn, SearchAction, AsyncThunkSearchOptions<StateNeededByExecuteSearch>>: A dispatchable action.

fetchMoreResults

Creates an action that fetches more results.

Returns AsyncThunkAction<ExecuteSearchThunkReturn, void, AsyncThunkSearchOptions<StateNeededByExecuteSearch>>: A dispatchable action.