diff --git a/frappe/migrate.py b/frappe/migrate.py index 544e0f6b6f..40c9bd4068 100644 --- a/frappe/migrate.py +++ b/frappe/migrate.py @@ -83,8 +83,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: - global_search.update_global_search_for_all_web_pages() - full_text_search.build_index_for_all_routes() + # global_search.update_global_search_for_all_web_pages() + full_text_search.build_index_for_all_routes("web_routes") # updating installed applications data frappe.get_single('Installed Applications').update_versions() diff --git a/frappe/modules/full_text_search.py b/frappe/modules/full_text_search.py index f626ea8490..b1003ecc97 100644 --- a/frappe/modules/full_text_search.py +++ b/frappe/modules/full_text_search.py @@ -222,3 +222,7 @@ def update_index_for_path(index_name, path): def remove_document_from_index(index_name, path): fts = FullTextSearch(index_name) return fts.remove_document_from_index(path) + +def build_index_for_all_routes(index_name): + fts = FullTextSearch(index_name) + return fts.build() \ No newline at end of file