function apachesolr_search_build_spellcheck in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.module \apachesolr_search_build_spellcheck()
- 5.2 apachesolr_search.module \apachesolr_search_build_spellcheck()
- 6.3 apachesolr_search.module \apachesolr_search_build_spellcheck()
- 6 apachesolr_search.module \apachesolr_search_build_spellcheck()
- 6.2 apachesolr_search.module \apachesolr_search_build_spellcheck()
submit function for the delete_index form.
1 string reference to 'apachesolr_search_build_spellcheck'
- apachesolr_search_form_apachesolr_index_action_form_delete_confirm_alter in ./
apachesolr_search.module - Implements hook_form_[form_id]_alter().
File
- ./
apachesolr_search.module, line 1624 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_build_spellcheck($form, &$form_state) {
$env_id = $form_state['build_info']['args'][0]['env_id'];
try {
$solr = apachesolr_get_solr($env_id);
$params = array(
'spellcheck' => 'true',
'spellcheck.build' => 'true',
);
$response = $solr
->search('solr', $params);
} catch (Exception $e) {
apachesolr_log_exception($env_id, $e);
}
}