Skip to content

Commit

Permalink
set :post as default Solr HTTP method
Browse files Browse the repository at this point in the history
:post has a higher character limit than the default (:get)

See:
- samvera/hyrax#4728
- samvera/hyrax@e8edc51
  • Loading branch information
bkiahstroud committed Aug 28, 2024
1 parent 9762688 commit 41b31ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 41b31ce

Please sign in to comment.