useSearchResults
Use search results query hook to request and retrieve data for search results widgets.
Request parameters
Request parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
number |
The current page. |
|
|
string |
String to search for. |
|
|
Record<string,<Array<string>> |
The IDs of the facets selected. |
|
|
number |
The number of results per page. |
|
|
string |
The value for sorting results. |
|
|
string |
The currently sorting model, ascending or descending. asc or desc |
Generic response
Generic response
Import
Import
Example
Example
Note
Convert a UI component into a widget component before adding it to pages.
To convert a component into a widget component, pass the UI component to the widget or setWidget function.