lib/spotlight/engine.rb in blacklight-spotlight-0.12.1 vs lib/spotlight/engine.rb in blacklight-spotlight-0.13.0

- old
+ new

@@ -81,9 +81,14 @@ Spotlight::Engine.config.solr_fields.prefix = ''.freeze Spotlight::Engine.config.solr_fields.boolean_suffix = '_bsi'.freeze Spotlight::Engine.config.solr_fields.string_suffix = '_ssim'.freeze Spotlight::Engine.config.solr_fields.text_suffix = '_tesim'.freeze + # A lambda expression that filters the solr index per exhibit + config.exhibit_filter = lambda do |exhibit| + { :"#{config.solr_fields.prefix}spotlight_exhibit_slug_#{exhibit.slug}#{config.solr_fields.boolean_suffix}" => true } + end + Spotlight::Engine.config.resource_global_id_field = :"#{config.solr_fields.prefix}spotlight_resource_id#{config.solr_fields.string_suffix}" # The solr field that original (largest) images will be stored. Spotlight::Engine.config.full_image_field = :full_image_url_ssm Spotlight::Engine.config.thumbnail_field = :thumbnail_url_ssm