Open mjordan opened 3 years ago
Using parse_str()
, we can get arrays like this from the search query string:
Array
(
[/solr-search/content?search_api_fulltext] => thesis
[f] => Array
(
[0] => sfu_department_program:Applied Science: School of Engineering Science
)
)
Array
(
[/solr-search/content?search_api_fulltext] => analysis defect seeing
)
Array
(
[/solr-search/content?search_api_fulltext] => thesis
[page] => 2
)
So reports on the search terms, facets used, and pagination could be created. Another useful report is searches that resulted in 0 hits.
The following simple module captures the current search via the current request URL and the number of results: