From 625e207268f899c7fc66eeaac727c6adb26291d5 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 8 Nov 2022 14:01:28 +0100 Subject: [PATCH] Fix transform to use all_documents and ignore soft_deleted documents --- milli/src/update/index_documents/transform.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/milli/src/update/index_documents/transform.rs b/milli/src/update/index_documents/transform.rs index 8818909a3..fa990ebb6 100644 --- a/milli/src/update/index_documents/transform.rs +++ b/milli/src/update/index_documents/transform.rs @@ -571,9 +571,8 @@ impl<'a, 'i> Transform<'a, 'i> { ); let mut obkv_buffer = Vec::new(); - for result in self.index.documents.iter(wtxn)? { + for result in self.index.all_documents(wtxn)? { let (docid, obkv) = result?; - let docid = docid.get(); obkv_buffer.clear(); let mut obkv_writer = obkv::KvWriter::<_, FieldId>::new(&mut obkv_buffer);