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:
parent
ac88787593
commit
32fbab7d18
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue