function search_api_solr_update_helper_get_index_third_party_settings in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 search_api_solr.install \search_api_solr_update_helper_get_index_third_party_settings()
- 4.x search_api_solr.install \search_api_solr_update_helper_get_index_third_party_settings()
Gets all index third party settings for Solr servers.
Parameters
string $pattern:
Return value
array All backend configs for active Solr servers keyed by server name.
3 calls to search_api_solr_update_helper_get_index_third_party_settings()
- search_api_solr_update_8212 in ./
search_api_solr.install - Configure highlighter individually per index and remove global config.
- search_api_solr_update_8213 in ./
search_api_solr.install - Configure index prefixes individually per server and index.
- search_api_solr_update_8308 in ./
search_api_solr.install - Configure multilingual features individually per index.
File
- ./
search_api_solr.install, line 345 - Install, update and uninstall functions for the Search API Solr module.
Code
function search_api_solr_update_helper_get_index_third_party_settings($pattern = 'solr') {
$backend_configs = search_api_solr_update_helper_get_backend_configs($pattern);
$indexes = search_api_solr_update_helper_get_indexes($pattern);
$index_third_party_settings = [];
foreach ($indexes as $index_id => $index) {
$config_id = 'search_api.server.' . $index
->get('server');
if (isset($backend_configs[$config_id])) {
// This index belongs to a Solr server.
$index_third_party_settings[$index_id] = $index
->get('third_party_settings.search_api_solr');
}
}
return $index_third_party_settings;
}