diff options
Diffstat (limited to 'lib/tasks/kkuleomi.rake')
-rw-r--r-- | lib/tasks/kkuleomi.rake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/kkuleomi.rake b/lib/tasks/kkuleomi.rake index 9362b7a..45d9283 100644 --- a/lib/tasks/kkuleomi.rake +++ b/lib/tasks/kkuleomi.rake @@ -2,6 +2,10 @@ namespace :kkuleomi do namespace :index do desc '(Re-)Initializes the ElasticSearch index' task init: :environment do + Kkuleomi::Store.create_index false + end + + task recreate: :environment do Kkuleomi::Store.create_index true end end |