Open elrayle opened 2 years ago
This addresses the issue in nurax-pg to use the correct core when ActiveFedora::SolrService
is used. Long term, this should be using Hyrax:SolrService
.
Leaving this open to track the transition to Hyrax::SolrService
.
TODO: Create a Hyrax issue to track this work.
Observed Issues:
Exploration
Confirmed consistent configuration of solr urls in:
_NOTE: The values of
SOLR_URL
andVALKYRIE_SOLR_HOST/PORT/CORE
are defined as environment variables in.env
for development._See PR #21 which was used to help diagnose which config was defining the observed solr core.
Temporary Solution
It turned out that if
config/fedora.yml
is not present (and it is not in nurax-pg), then ActiveFedora uses its defaultsolr.yml
. To avoid this, added the following configuration to the end ofconfig/initializers/hyrax.rb
in nurax-pg to define the path to thesolr.yml
config that sets up the correct solr core.