diff --git a/config/vufind/config.ini b/config/vufind/config.ini index 545eb9d9b09f109b37baf46f77527582ef33b7e9..1683922793166c861baea1cf81d59f9fcb0ebc1f 100644 --- a/config/vufind/config.ini +++ b/config/vufind/config.ini @@ -442,7 +442,10 @@ ils_encryption_key = false ; until one can be reached. This is only useful for advanced fault-tolerant Solr ; installations. url = http://localhost:8080/solr +; Default bibliographic record core default_core = biblio +; Default authority record core +default_authority_core = authority ; This setting needs to match the <maxBooleanClauses> setting in your solrconfig.xml ; file; when VuFind has to look up large numbers of records using ID values, it may ; have to restrict the size of its result set based on this limitation. diff --git a/module/VuFind/src/VuFind/Search/Factory/SolrAuthBackendFactory.php b/module/VuFind/src/VuFind/Search/Factory/SolrAuthBackendFactory.php index 38fd2b99895b2c83b9970dd118057fda5c328d02..089c1606ba345ea01fe3c1453ba25fe945203212 100644 --- a/module/VuFind/src/VuFind/Search/Factory/SolrAuthBackendFactory.php +++ b/module/VuFind/src/VuFind/Search/Factory/SolrAuthBackendFactory.php @@ -48,12 +48,22 @@ class SolrAuthBackendFactory extends AbstractSolrBackendFactory public function __construct() { parent::__construct(); - $this->solrCore = 'authority'; $this->searchConfig = 'authority'; $this->searchYaml = 'authsearchspecs.yaml'; $this->facetConfig = 'authority'; } + /** + * Get the Solr core. + * + * @return string + */ + protected function getSolrCore() + { + $config = $this->config->get($this->mainConfig); + return $config->Index->default_authority_core ?? 'authority'; + } + /** * Create the SOLR backend. *