Skip to content

Commit

Permalink
Tell Spotlight field to use for thumbnails.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Mar 17, 2016
1 parent eee9265 commit b9dfd54
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 b9dfd54

Please sign in to comment.