function apachesolr_search_build_spellcheck in Apache Solr Search 5.2
Same name and namespace in other branches
- 8 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()
File
- ./
apachesolr_search.module, line 997 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_build_spellcheck($form_id, $form_values) {
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())), WATCHDOG_ERROR);
}
}