You are here

function hook_apachesolr_search_result_alter in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.api.php \hook_apachesolr_search_result_alter()
  2. 6.3 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()
apachesolr_search_process_response in ./apachesolr_search.module

File

./apachesolr.api.php, line 339
Exposed Hooks in 7.x:

Code

function hook_apachesolr_search_result_alter(ApacheSolrDocument $document, array &$extra, DrupalSolrQueryInterface $query) {
}