Sha256: a2a5bbeac4d07e8ad20eeb90edad0bb881c6b0c1a538d032a6a7c3a9f89764bd
Contents?: true
Size: 870 Bytes
Versions: 8
Compression:
Stored size: 870 Bytes
Contents
module Sufia class WorkIndexer < CurationConcerns::WorkIndexer self.thumbnail_path_service = Sufia::WorkThumbnailPathService def generate_solr_document super.tap do |solr_doc| # This enables us to return a Work when we have a FileSet that matches # the search query. While at the same time allowing us not to return Collections # when a work in the collection matches the query. solr_doc[Solrizer.solr_name('file_set_ids', :symbol)] = solr_doc[Solrizer.solr_name('member_ids', :symbol)] solr_doc[Solrizer.solr_name('resource_type', :facetable)] = object.resource_type admin_set_label = object.admin_set.to_s solr_doc[Solrizer.solr_name('admin_set', :facetable)] = admin_set_label solr_doc[Solrizer.solr_name('admin_set', :stored_searchable)] = admin_set_label end end end end
Version data entries
8 entries across 8 versions & 1 rubygems