Skip to content

Commit

Permalink
Merge pull request #2445 from samvera/ensure-solr-adapter-on-account-…
Browse files Browse the repository at this point in the history
…switch

🐛 Ensure solr adapter on account switch
  • Loading branch information
kirkkwang authored Feb 5, 2025
2 parents 82b186e + a35f08e commit 8cd04f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/solr_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def connection_options
#
# https://github.com/samvera/hyrax/blob/a5a0ae9e56df857a92fc53ae86216cbb007db47a/lib/valkyrie/indexing/solr/indexing_adapter.rb#L83-L101
base_options['core'] ||= switchable_options['collection']
# Ensure we have the solr adapter set
base_options['adapter'] ||= 'solr'

# NOTE: the switchable_options includes two keys: "collection" and "url"
# The "url" should be used to make the connection to Solr.
Expand Down

0 comments on commit 8cd04f0

Please sign in to comment.