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