Skip to content

Commit

Permalink
Removing Solr delete from previous PR due to syntax problem
Browse files Browse the repository at this point in the history
  • Loading branch information
randalldfloyd committed Mar 28, 2024
1 parent 3aa74b5 commit db1e735
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/tasks/delete_ead.rake
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ namespace :ngao do
solr_elapsed_time = Benchmark.realtime do
puts "Deleting document with ID #{solr_id}"
system(%Q{curl -s -X POST "#{solr_url}/update?commit=true" -H "Content-Type: text/xml" --data-binary "<delete><id>#{solr_id}</id></delete>"}, exception: true)
# Ensure related component level documents are also deleted...
system(%Q{curl -s -X POST "#{solr_url}/update?commit=true" -H "Content-Type: text/xml" --data-binary "<delete><ead_ssi>#{solr_id}</ead_ssi></delete>"}, exception: true)
end

puts "NGAO-Arclight deleted #{filename} from solr index (in #{solr_elapsed_time.round(3)} secs).\n"
Expand Down

0 comments on commit db1e735

Please sign in to comment.