diff --git a/frappe/search/full_text_search.py b/frappe/search/full_text_search.py index 4dc405a5d2..dd6e69111d 100644 --- a/frappe/search/full_text_search.py +++ b/frappe/search/full_text_search.py @@ -55,6 +55,9 @@ class FullTextSearch: self (object): FullTextSearch Instance doc_name (str): name of the document to be removed """ + if not doc_name: + return + ix = self.get_index() with ix.searcher(): writer = ix.writer()