From 41b31ce87f2ded02398e47d8216e08eed6ea2022 Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:15:41 -0700 Subject: [PATCH] set :post as default Solr HTTP method :post has a higher character limit than the default (:get) See: - https://github.com/samvera/hyrax/pull/4728 - https://github.com/samvera/hyrax/commit/e8edc51d7c41fb23b5e8316624a5fa164d07574b --- app/controllers/catalog_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 89e47e29d..263850c95 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -26,6 +26,9 @@ def self.modified_field include BlacklightIiifSearch::Controller configure_blacklight do |config| + # TODO: Replace with Hyrax.config.solr_default_method when upgrading to >= Hyrax v4.0.0 + config.http_method = :post + # IiifPrint index fields config.add_index_field 'all_text_tsimv', highlight: true, helper_method: :render_ocr_snippets