Sha256: f065cfd011e7b443e4b8579ab1228bf7dbf42cc5fbdc9bcc21b51eaf448eb895

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 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)]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-7.0.0.beta1 app/indexers/sufia/work_indexer.rb