Sha256: 3b03c5544c08fa2155d48bfcde74e15f49be55b13f6f104a1373d1a52f5b9500

Contents?: true

Size: 318 Bytes

Versions: 29

Compression:

Stored size: 318 Bytes

Contents

require 'rails/generators'

namespace :blacklight_range_limit do
  desc 'Add in additional Solr docs'
  task seed: :environment do
    solr = Blacklight.default_index.connection
    docs = Dir['spec/fixtures/solr_documents/*.yml'].map { |f| YAML.load File.read(f) }.flatten
    solr.add docs
    solr.commit
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
blacklight_range_limit-9.0.0.beta1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.5.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.4.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.3.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.0.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.2.3 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.2.2 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.2.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.2.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.1.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.0.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-8.0.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.9.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.9.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.8.2 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.8.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.8.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.7.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.6.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-7.5.0 lib/tasks/blacklight_range_limit.rake