Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alicia Cozine <[email protected]>
Co-authored-by: Max Kadel <[email protected]>
Co-authored-by: Robert-Anthony Lee-Faison <[email protected]>
Co-authored-by: Kat King <[email protected]>
  • Loading branch information
5 people authored Apr 3, 2024
1 parent 70264b7 commit d18aa96
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/tasks/orangeindex.rake
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ namespace :liberate do
IndexManager.for(solr_url).index_remaining!
end

desc "Index single incremental dump"
desc "Index single incremental dump uses ENV['DUMP_ID'] (default 1177)"
task index_single_dump: :environment do
solr_url = ENV['SOLR_URL'] || default_solr_url
next_dump = Dump.find(1177)
solr_url = ENV['SOLR_URL'] || "http://lib-solr8d-staging.princeton.edu:8983/solr/catalog-performance"
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
Expand Down

0 comments on commit d18aa96

Please sign in to comment.