From 9a91b2ab27098f4c2bbfea6a905f354c07bddd03 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Mon, 23 Dec 2013 12:47:18 +0800 Subject: [PATCH] Rake task for indexing existing announcements --- lib/tasks/search_index.rake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/tasks/search_index.rake diff --git a/lib/tasks/search_index.rake b/lib/tasks/search_index.rake new file mode 100644 index 00000000..28bb021e --- /dev/null +++ b/lib/tasks/search_index.rake @@ -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 \ No newline at end of file