app/jobs/reindex_file_sets_job.rb
# reindex all file sets in a collection
reindex all file sets in a collection
reindex all file sets in a collection
def perform(collection_id)
    works = GenericWork.where(member_of_collection_ids_ssim: collection_id)
    works.each do |w|
      w.file_sets.each { |fs| fs.update_index }
    end
  end
def perform ( collection_id ) works = GenericWork . where ( member_of_collection_ids_ssim : collection_id ) works . each do | w | w . file_sets . each { | fs | fs . update_index } end end
reindex all file sets in a collection
reindex all file sets in a collection
collection_id
<not_specific>