Rake task for indexing existing announcements
This commit is contained in:
parent
d89e90b8f7
commit
9a91b2ab27
|
@ -0,0 +1,10 @@
|
|||
# encoding: utf-8
|
||||
|
||||
namespace :search_index do
|
||||
task :once => :environment do
|
||||
Bulletin.import
|
||||
ArchiveFileCategory.import
|
||||
ArchiveFile.import
|
||||
puts "Done Indexing"
|
||||
end
|
||||
end
|
Reference in New Issue