Sha256: 7ddb93b6f21a3b6a3c02f9f6e4de9c37279d023bb49d10bf29b297ac7c0194a6

Contents?: true

Size: 378 Bytes

Versions: 14

Compression:

Stored size: 378 Bytes

Contents

require 'rake'

namespace :spotlight_test do
  namespace :solr do
    desc "Index test data into solr; must be run from within an app (see spotlight:fixtures)"
    task :seed do
      docs = YAML::load(File.open(File.expand_path(File.join('..', 'fixtures', 'sample_solr_documents.yml'), Rails.root)))
      Blacklight.solr.add docs
      Blacklight.solr.commit
    end
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.3.1 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.3.0 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.3.0 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.2.0 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.2.0 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.1.0 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.1.0 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.0.3 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.0.3 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.0.2 spec/test_app_templates/spotlight_test.rake
blacklight-spotlight-0.0.2 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.0.1 spec/internal/lib/tasks/spotlight_test.rake
blacklight-spotlight-0.0.1 spec/test_app_templates/spotlight_test.rake