Sha256: 78f5a6551bab0a3253b43d1cb7fb0b2261ff913ddaff493641580f2ef33379ee
Contents?: true
Size: 426 Bytes
Versions: 83
Compression:
Stored size: 426 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('..', 'spec', 'fixtures', 'sample_solr_documents.yml'), Rails.root))) Blacklight.default_index.connection.add docs Blacklight.default_index.connection.commit end end end
Version data entries
83 entries across 83 versions & 1 rubygems