diff --git a/lib/valkyrie/indexing/solr/indexing_adapter_decorator.rb b/lib/valkyrie/indexing/solr/indexing_adapter_decorator.rb new file mode 100644 index 000000000..387ac760d --- /dev/null +++ b/lib/valkyrie/indexing/solr/indexing_adapter_decorator.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +# Override Hyrax v5.0 to avoid incorrect default connection +# TODO: create and initialize a Hyku version of the indexing adapter +module Valkyrie + module Indexing + module Solr + module IndexingAdapterDecorator + def default_connection + ::SolrEndpoint.new.connection + end + end + end + end +end + +Valkyrie::Indexing::Solr::IndexingAdapter.prepend(Valkyrie::Indexing::Solr::IndexingAdapterDecorator)