Sha256: f9cd3027e1f9955e3c4c53320fce6cdd0cfb4f83c19e13dbd2e9987a86ef4336

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

require "csv"

namespace :geoblacklight_admin do
  namespace :solr do
    desc "Delete orphans from Solr"
    task delete_orphans: :environment do
      deleted_orphans = GeoblacklightAdmin::SolrUtils.delete_solr_orphans(batch_size: 1000)
      puts "Deleted: #{deleted_orphans.inspect}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight_admin-0.5.1 lib/geoblacklight_admin/tasks/solr.rake
geoblacklight_admin-0.5.0 lib/geoblacklight_admin/tasks/solr.rake
geoblacklight_admin-0.4.2 lib/geoblacklight_admin/tasks/solr.rake