From 32fbab7d183929efc6d4e711233da8779a098699 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 17 Jun 2020 20:46:54 +0530 Subject: [PATCH] feat: remove re_index by path * get_document_to_index sets user to administrator, this is not desirable when running desk, keeping this API available is not wise --- frappe/modules/full_text_search.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frappe/modules/full_text_search.py b/frappe/modules/full_text_search.py index 5355546c36..7ccc68f877 100644 --- a/frappe/modules/full_text_search.py +++ b/frappe/modules/full_text_search.py @@ -100,11 +100,7 @@ def search(index_name, text, scope=None, limit=20): ) return out - -def reindex_path(index_name, path): - document = get_document_to_index(path) - reindex(index_name, document) - + def reindex(index_name, document): # open index index_dir = get_index_path(index_name)