Sha256: 922f15b30e53b3822f7fd02f95b2f2c7338521dba65d8f9cec79d6a8eb9a7af7

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 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.default_index.connection.add docs
      Blacklight.default_index.connection.commit
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/test_app_templates/spotlight_test.rake