mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
fixes to the search index
This commit is contained in:
parent
a1f5ddede8
commit
52b3057640
2 changed files with 7 additions and 4 deletions
|
|
@ -12,7 +12,9 @@ from documents.sanity_checker import SanityFailedError
|
|||
|
||||
|
||||
def index_optimize():
|
||||
index.open_index().optimize()
|
||||
ix = index.open_index()
|
||||
with AsyncWriter(ix) as writer:
|
||||
writer.commit(optimize=True)
|
||||
|
||||
|
||||
def index_reindex():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue