diff --git a/lib/tasks/orangeindex.rake b/lib/tasks/orangeindex.rake index 3f5e0183..7ecda1a3 100644 --- a/lib/tasks/orangeindex.rake +++ b/lib/tasks/orangeindex.rake @@ -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