diff --git a/assets/js/search-data.json b/assets/js/search-data.json
index 1eca96c166e66133aaeedbb1742269c35df4807d..fd1037de19f98c71a9479f3cd78c412958a768fd 100644
--- a/assets/js/search-data.json
+++ b/assets/js/search-data.json
@@ -1,7 +1,7 @@
 ---
 ---
 {
-  {% for page in site.html_pages %}{% if page.exclude_search != true %}"{{ forloop.index0 }}": {
+  {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
     "id": "{{ forloop.index0 }}",
     "title": "{{ page.title | xml_escape }}",
     "content": "{{ page.content | markdownify | strip_html | json_escape | xml_escape | remove: 'Table of contents' | strip_newlines | replace: '\', ' ' | replace: '```', '' | replace: '    ', ' ' }}",