The constructor gets called after SmartSearch receives search results from the backend.
The FetchClient used to send API calls against the prepared search.
The response JSON that may or may not have been filtered.
An array containing the facets for the search results.
The pagination options that are used for this page.
An array containing all the search results for this page.
Returns alternative search queries if the numberOfResults value is beneath the threshold configured at the prepared search in the cockpit.
The total number of search results matching the search term.
Adds or updates all facet parameters in the given list and returns a new list containing the selected values of all facets on this page.
The list to be updated
The name of the facet as it is displayed in the SmartSearch cockpit under Prepared Search > Facet
the facet matching the given name if it exists on this prepared search.
This function doesn't work with DynamicPaginationParams.
The first page with the defined pagination options.
This function doesn't work with DynamicPaginationParams.
The last page with the defined pagination options.
The total number of pages.
This function doesn't work with DynamicPaginationParams.
The specified page with the defined pagination options.
Checks whether the page with the given page number exists.
This function is used internally by the getPage function.
Resets all facets on this page
An optional list of facet names to reset. If you pass this parameter only the facets that match the names in this list will be resetted. If you pass no parameter, all facets will be resetted.
The first page of the new and unfiltered resultset.
Generated using TypeDoc
This class represents a search engine results page (SERP).