function apachesolr_search_build_spellcheck in Apache Solr Search 8
Same name and namespace in other branches
- 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()
- 7 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_delete_index_confirm_alter in ./
apachesolr_search.module - Implements hook_form_[form_id]_alter().
File
- ./
apachesolr_search.module, line 1572 - 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) {
try {
$solr = apachesolr_get_solr();
$params['spellcheck'] = 'true';
$params['spellcheck.build'] = 'true';
$response = $solr
->search('solr', 0, 0, $params);
} catch (Exception $e) {
watchdog('Apache Solr', nl2br(check_plain($e
->getMessage())), NULL, WATCHDOG_ERROR);
}
}