You are here

function hook_apachesolr_suggestions_alter in Apache Solr Search 7

Modify the returned spellings suggestions. The environment is available as an argument so the search query can be retrieved if necessary

Parameters

array $suggestions:

string $env_id:

1 invocation of hook_apachesolr_suggestions_alter()
apachesolr_search_get_search_suggestions in ./apachesolr_search.module
Retrieve all of the suggestions that were given after a certain search

File

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

Code

function hook_apachesolr_suggestions_alter(&$suggestions, $env_id) {

  // Modify the suggestions here
}