Rake task for indexing existing announcements

This commit is contained in:
saurabhbhatia 2013-12-23 12:47:18 +08:00
parent d89e90b8f7
commit 9a91b2ab27
1 changed files with 10 additions and 0 deletions

View File

@ -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