From 702a6f103abbc0fa4150787de645944c7b983fd1 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 17 Jun 2020 21:02:42 +0530 Subject: [PATCH] fix: commit after removing index --- frappe/modules/full_text_search.py | 2 ++ 1 file changed, 2 insertions(+) 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)