diff --git a/lib/tasks/search.rake b/lib/tasks/search.rake
index 4b4b2286d65ea6c7cf229710252afefa8d04275d..a4735dd282d2316bb4c526696d7342f8f7e138b9 100644
--- a/lib/tasks/search.rake
+++ b/lib/tasks/search.rake
@@ -2,7 +2,7 @@ namespace :search do
   desc 'Generate the files needed for search functionality'
   task :init do
     puts 'Creating search data json file...'
-    touch search-data.json
+    touch 'search-data.json'
 
     File.open('search-data.json', 'w') do |f|
       f.puts '