mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix: index fresh document data after update archive file (#7057)
This commit is contained in:
		| @@ -285,6 +285,10 @@ def update_document_archive_file(document_id): | ||||
|                     shutil.move(parser.get_archive_path(), document.archive_path) | ||||
|                     shutil.move(thumbnail, document.thumbnail_path) | ||||
|  | ||||
|             document.refresh_from_db() | ||||
|             logger.info( | ||||
|                 f"Updating index for document {document_id} ({document.archive_checksum})", | ||||
|             ) | ||||
|             with index.open_index_writer() as writer: | ||||
|                 index.update_document(writer, document) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon