diff --git a/lib/tasks/search.rake b/lib/tasks/search.rake
index 42cbebf5a85fe015d41593242915e384946391fd..79b940cf1a75c56349ae5f1590ab519f94bdd12c 100644
--- a/lib/tasks/search.rake
+++ b/lib/tasks/search.rake
@@ -12,7 +12,7 @@ namespace :search do
   {% for page in site.html_pages %}"{{ forloop.index0 }}": {
     "id": "{{ forloop.index0 }}",
     "title": "{{ page.title | xml_escape }}",
-    "content": '+content+',
+    "content": "'+content+'",
     "url": "{{ page.url | xml_escape }}"
   }{% if forloop.last %}{% else %},
   {% endif %}{% endfor %}