function hook_apachesolr_search_result_alter in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.api.php \hook_apachesolr_search_result_alter()
- 7 apachesolr.api.php \hook_apachesolr_search_result_alter()
This is invoked by apachesolr_search.module for each document returned in a search. This has been introduced in 6.x-beta7 as a replacement for the call to HOOK_nodeapi().
Parameters
ApacheSolrDocument $document: The ApacheSolrDocument instance.
array $extra:
DrupalSolrQueryInterface $query:
1 invocation of hook_apachesolr_search_result_alter()
File
- ./
apachesolr.api.php, line 319 - Exposed Hooks in 7.x:
Code
function hook_apachesolr_search_result_alter(ApacheSolrDocument $document, array &$extra, DrupalSolrQueryInterface $query) {
}