Skip to content

Commit

Permalink
Only reindex one dump file
Browse files Browse the repository at this point in the history
  • Loading branch information
bess committed Apr 10, 2024
1 parent c9a4402 commit 8771842
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tasks/orangeindex.rake
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ namespace :liberate do
dump_id_str = ENV['DUMP_ID'] || '1177'
dump_id = dump_id_str.to_i
next_dump = Dump.find(dump_id)
next_dump.dump_files.each do |dump_file|
Alma::Indexer::DumpFileIndexer.new(dump_file, solr_url:).index!
end
dump_file = next_dump.dump_files.first
Alma::Indexer::DumpFileIndexer.new(dump_file, solr_url:).index!
end

desc "Index a single MARC XML file against SET_URL"
Expand Down

0 comments on commit 8771842

Please sign in to comment.