Skip to content

Commit

Permalink
Merge pull request #53 from pulibrary/widget_thumbnails
Browse files Browse the repository at this point in the history
Tell Spotlight field to use for thumbnails.
  • Loading branch information
escowles committed Mar 17, 2016
2 parents eee9265 + b9dfd54 commit be01d89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CatalogController < ApplicationController
config.add_search_field 'all_fields', label: 'Everything'

config.add_sort_field 'relevance', sort: 'score desc', label: 'Relevance'
config.index.thumbnail_field = 'thumbnail_ssim'

config.add_field_configuration_to_solr_request!
end
Expand Down
1 change: 1 addition & 0 deletions config/initializers/spotlight_config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Spotlight::Engine.config.thumbnail_field = :thumbnail_ssim

0 comments on commit be01d89

Please sign in to comment.