mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-23 23:08:03 +01:00
this change caused index optimization to fail.
This commit is contained in:
parent
1b0ddd6df6
commit
b97fa9e3b9
1 changed files with 1 additions and 3 deletions
|
|
@ -12,9 +12,7 @@ from documents.sanity_checker import SanityFailedError
|
|||
|
||||
|
||||
def index_optimize():
|
||||
ix = index.open_index()
|
||||
with AsyncWriter(ix) as writer:
|
||||
writer.commit(optimize=True)
|
||||
index.open_index().optimize()
|
||||
|
||||
|
||||
def index_reindex():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue