Skip to content

Commit

Permalink
Add rake task for single dump for benchmarking
Browse files Browse the repository at this point in the history
Co-authored-by: Alicia Cozine <[email protected]>
Co-authored-by: Bess Sadler <[email protected]>
Co-authored-by: Carolyn Cole <[email protected]>
Co-authored-by: Robert-Anthony Lee-Faison <[email protected]>
  • Loading branch information
5 people committed Mar 27, 2024
1 parent 1964624 commit 70264b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/tasks/orangeindex.rake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ namespace :liberate do
IndexManager.for(solr_url).index_remaining!
end

desc "Index single incremental dump"
task index_single_dump: :environment do
solr_url = ENV['SOLR_URL'] || default_solr_url
next_dump = Dump.find(1177)
next_dump.dump_files.each do |dump_file|
Alma::Indexer::DumpFileIndexer.new(dump_file, solr_url:).index!
end
end

desc "Index a single MARC XML file against SET_URL"
task index_file: :environment do
solr_url = ENV['SET_URL'] || default_solr_url
Expand Down

0 comments on commit 70264b7

Please sign in to comment.