Class: Hyrax::AdminSetIndexer

Inherits:
ActiveFedora::IndexingService
  • Object
show all
Includes:
IndexesThumbnails
Defined in:
app/indexers/hyrax/admin_set_indexer.rb

Instance Method Summary collapse

Methods included from IndexesThumbnails

#index_thumbnails, #thumbnail_path

Instance Method Details

#generate_solr_documentObject



5
6
7
8
9
10
11
# File 'app/indexers/hyrax/admin_set_indexer.rb', line 5

def generate_solr_document
  super.tap do |solr_doc|
    # Makes Admin Sets show under the "Admin Sets" tab
    Solrizer.set_field(solr_doc, 'generic_type', 'Admin Set', :facetable)
    solr_doc['thumbnail_path_ss'] = thumbnail_path
  end
end