diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake new file mode 100644 index 000000000..c6058ae8f --- /dev/null +++ b/lib/tasks/index.rake @@ -0,0 +1,11 @@ +# encoding: utf-8 + +namespace :index do + task :rebuild => :environment do + Sunspot.remove_all! + Sunspot.commit + Sunspot.index NewsBulletin.all + Sunspot.index Bulletin.all + Sunspot.commit + end +end \ No newline at end of file