diff --git a/frappe/modules/full_text_search.py b/frappe/modules/full_text_search.py index 022200f3cc..03fb8d8bd6 100644 --- a/frappe/modules/full_text_search.py +++ b/frappe/modules/full_text_search.py @@ -132,5 +132,7 @@ def remove_from_index(index_name, path): # Remove the index of the particular file writer.delete_by_term('path', path) + writer.commit(optimize=True) + def get_index_path(index_name): return frappe.get_site_path("indexes", index_name)