fix: import for build_index_for_all_routes

This commit is contained in:
Shivam Mishra 2020-07-27 14:01:03 +05:30
parent 156ca5baf1
commit 6f0c4a4bf1

View file

@ -91,7 +91,8 @@ Otherwise, check the server logs and ensure that all the required services are r
# add static pages to global search
if not skip_search_index:
# Run this last as it updates the current session
full_text_search.build_index_for_all_routes()
print('Building search index for {}'.format(frappe.local.site))
build_index_for_all_routes()
frappe.db.commit()