function search_api_solr_update_8406 in Search API Solr 4.x
Make term modifiers configurable.
File
- ./
search_api_solr.install, line 1997 - Install, update and uninstall functions for the Search API Solr module.
Code
function search_api_solr_update_8406() {
foreach (search_api_solr_update_helper_get_index_third_party_settings() as $index_id => $third_party_settings) {
if (!isset($third_party_settings['term_modifiers'])) {
$third_party_settings['term_modifiers'] = [
// BC.
'slop' => 10000000,
'fuzzy' => 2,
];
search_api_solr_update_helper_save_index_third_party_settings($index_id, $third_party_settings);
}
}
}