function apachesolr_search_spellcheck_params in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 apachesolr_search.module \apachesolr_search_spellcheck_params()
- 6.2 apachesolr_search.module \apachesolr_search_spellcheck_params()
1 call to apachesolr_search_spellcheck_params()
- apachesolr_search_execute in ./
apachesolr_search.module - Execute a search results based on keyword, filter, and sort strings.
File
- ./
apachesolr_search.module, line 278 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_spellcheck_params($query) {
$params = array();
if (variable_get('apachesolr_search_spellcheck', FALSE)) {
//Add new parameter to the search request
$params['spellcheck.q'] = $query
->get_query_basic();
$params['spellcheck'] = 'true';
}
return $params;
}