Skip to content
Snippets Groups Projects
Commit 8448d0fe authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Configurable authority core name.

parent 463ce1f4
No related merge requests found
...@@ -442,7 +442,10 @@ ils_encryption_key = false ...@@ -442,7 +442,10 @@ ils_encryption_key = false
; until one can be reached. This is only useful for advanced fault-tolerant Solr ; until one can be reached. This is only useful for advanced fault-tolerant Solr
; installations. ; installations.
url = http://localhost:8080/solr url = http://localhost:8080/solr
; Default bibliographic record core
default_core = biblio default_core = biblio
; Default authority record core
default_authority_core = authority
; This setting needs to match the <maxBooleanClauses> setting in your solrconfig.xml ; 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 ; 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. ; have to restrict the size of its result set based on this limitation.
......
...@@ -48,12 +48,22 @@ class SolrAuthBackendFactory extends AbstractSolrBackendFactory ...@@ -48,12 +48,22 @@ class SolrAuthBackendFactory extends AbstractSolrBackendFactory
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->solrCore = 'authority';
$this->searchConfig = 'authority'; $this->searchConfig = 'authority';
$this->searchYaml = 'authsearchspecs.yaml'; $this->searchYaml = 'authsearchspecs.yaml';
$this->facetConfig = 'authority'; $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. * Create the SOLR backend.
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment