diff --git a/.solr_wrapper.yml b/.solr_wrapper.yml index 31fa2306..5c4aefde 100644 --- a/.solr_wrapper.yml +++ b/.solr_wrapper.yml @@ -1,6 +1,7 @@ # Place any default configuration for solr_wrapper here port: 8983 verbose: true +version: 8.9.0 collection: dir: solr/conf/ name: blacklight-core diff --git a/lib/blacklight_range_limit/engine.rb b/lib/blacklight_range_limit/engine.rb index e9b8649a..6e25d867 100644 --- a/lib/blacklight_range_limit/engine.rb +++ b/lib/blacklight_range_limit/engine.rb @@ -15,9 +15,10 @@ class Engine < Rails::Engine config.action_dispatch.rescue_responses.merge!( "BlacklightRangeLimit::InvalidRange" => :not_acceptable ) - - config.before_configuration do - Blacklight::Configuration::FacetField.prepend BlacklightRangeLimit::FacetFieldConfigOverride + config.before_eager_load do + ActiveSupport::Reloader.to_prepare do + Blacklight::Configuration::FacetField.prepend BlacklightRangeLimit::FacetFieldConfigOverride + end end end end