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
This commit is contained in:
Shivam Mishra 2020-06-17 20:46:54 +05:30
parent ac88787593
commit 32fbab7d18

View file

@ -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)