You are here

function search_api_solr_update_8205 in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 search_api_solr.install \search_api_solr_update_8205()
  2. 8.2 search_api_solr.install \search_api_solr_update_8205()

Drop never implemented word suggestions support.

File

./search_api_solr.install, line 631
Install, update and uninstall functions for the Search API Solr module.

Code

function search_api_solr_update_8205() {
  foreach (search_api_solr_update_helper_get_backend_configs() as $server_name => $backend_config) {
    if (isset($backend_config['suggest_words'])) {
      unset($backend_config['suggest_words']);
      search_api_solr_update_helper_save_backend_config($server_name, $backend_config);
    }
  }
}