mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Do file renaming first, since this is the important step, and indexing takes a while.
This commit is contained in:
		| @@ -94,7 +94,10 @@ def bulk_update_documents(document_ids): | ||||
|     documents = Document.objects.filter(id__in=document_ids) | ||||
|  | ||||
|     ix = index.open_index() | ||||
|  | ||||
|     for doc in documents: | ||||
|         post_save.send(Document, instance=doc, created=False) | ||||
|  | ||||
|     with AsyncWriter(ix) as writer: | ||||
|         for doc in documents: | ||||
|             index.update_document(writer, doc) | ||||
|             post_save.send(Document, instance=doc, created=False) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler