function search_api_solr_update_8006 in Search API Solr 8
Same name and namespace in other branches
- 8.3 search_api_solr.install \search_api_solr_update_8006()
- 8.2 search_api_solr.install \search_api_solr_update_8006()
- 4.x search_api_solr.install \search_api_solr_update_8006()
Add autocomplete settings to existing configs.
File
- ./
search_api_solr.install, line 238
Code
function search_api_solr_update_8006() {
foreach (search_api_solr_update_helper_get_backend_configs() as $server_name => $backend_config) {
$backend_config['suggest_suffix'] = TRUE;
$backend_config['suggest_corrections'] = TRUE;
$backend_config['suggest_words'] = FALSE;
search_api_solr_update_helper_save_backend_config($server_name, $backend_config);
}
}