From 3f5116914efa739e589317c382479a0df3c637fc Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 8 Feb 2024 14:53:38 -0600 Subject: [PATCH] Update upgrade_version_4_0.md Add section on the new `Geoblacklight::SuppressedRecordsSearchBehavior` search concern. Fixes #239 --- docs/docs/upgrade_version_4_0.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/docs/upgrade_version_4_0.md b/docs/docs/upgrade_version_4_0.md index 0afd6ed7..863a81fb 100644 --- a/docs/docs/upgrade_version_4_0.md +++ b/docs/docs/upgrade_version_4_0.md @@ -424,6 +424,20 @@ GBL installer now includes a `before_action` method to permit GBL application pa end ``` +### SearchBuilder + +`app/models/search_builder.rb` + +GBL's default search builder concerns have changed. We've added `Geoblacklight::SuppressedRecordsSearchBehavior`. You'll need this code in your application's `search_builder.rb` class: + +```ruby +# frozen_string_literal: true +class SearchBuilder < Blacklight::SearchBuilder + include Blacklight::Solr::SearchBuilderBehavior + include Geoblacklight::SuppressedRecordsSearchBehavior + +``` + ### Stylesheets `app/assets/stylesheets/application.scss`