mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-03 05:25:37 +00:00
this change caused index optimization to fail.
This commit is contained in:
1 parent
1b0ddd6df6
commit
b97fa9e3b9
1 file changed
+1
-3
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user