We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
The following simple module captures the current search via the current request URL and the number of results:
<?php /** * @file * Testing search API stuff. */ use Drupal\search_api\Query\ResultSetInterface; /** * Implements hook_search_api_results_alter(). */ function mjtest_search_api_results_alter(ResultSetInterface &$results) { $current_uri = \Drupal::request()->getRequestUri(); devel_debug($current_uri); devel_debug($results->getResultCount()); }
Sorry, something went wrong.
WIP on #64.
dfef3cc
0312bd3
Using parse_str(), we can get arrays like this from the search query string:
parse_str()
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.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: