class SearchState
Properties
| protected FilterInterface[] | $activeFilters |
|
Methods
Set the default sort order for the search. This will only be applied if a sort order has not been specified in the search criteria.
The active filters that decide which list this is, leaving out those that only pick a window of it (`WindowFilterInterface`) or narrow it (`RefineFilterInterface`). With none, the request is the unfiltered list, such as the All Discussions page.
Details
at
line 57
void
setDefaultSort(array| Closure $defaultSort)
Set the default sort order for the search. This will only be applied if a sort order has not been specified in the search criteria.
at
line 62
bool
isFulltextSearch()
at
line 75
array
getActiveFilters()
Get a list of the filters that are active.
To decide whether a request is the unfiltered list, such as the All Discussions page, use `getListFilters()` instead.
at
line 88
array
getListFilters()
The active filters that decide which list this is, leaving out those that only pick a window of it (`WindowFilterInterface`) or narrow it (`RefineFilterInterface`). With none, the request is the unfiltered list, such as the All Discussions page.