diff --git a/Gemfile.lock b/Gemfile.lock index d1a16cd77..e1d907a20 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -125,7 +125,7 @@ GIT GIT remote: https://github.com/samvera/hyrax.git - revision: 8f0bcdbf56743e4b8da36eb4ec657f37f30582a2 + revision: f25c6f8960ec85fc460ba48f9a0ec4802d5751f7 branch: double_combo specs: hyrax (5.0.0.rc2) diff --git a/lib/hyrax/solr_service_decorator.rb b/lib/hyrax/solr_service_decorator.rb index 4397e280d..c12586eca 100644 --- a/lib/hyrax/solr_service_decorator.rb +++ b/lib/hyrax/solr_service_decorator.rb @@ -19,10 +19,7 @@ def count(query, args = {}) def reset! @old_service.reset! if @old_service - # The proprietor page runs through this as well but valkyrie_index is not defined - if defined?(valkyrie_index) - valkyrie_index.connection = valkyrie_index.default_connection - end + Hyrax.index_adapter&.reset! end end end