Fix transform to use all_documents and ignore soft_deleted documents

This commit is contained in:
Kerollmops 2022-11-08 14:01:28 +01:00
parent 1b1ad1923b
commit 37b3c5c323
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -578,9 +578,8 @@ impl<'a, 'i> Transform<'a, 'i> {
); );
let mut obkv_buffer = Vec::new(); 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, obkv) = result?;
let docid = docid.get();
obkv_buffer.clear(); obkv_buffer.clear();
let mut obkv_writer = obkv::KvWriter::<_, FieldId>::new(&mut obkv_buffer); let mut obkv_writer = obkv::KvWriter::<_, FieldId>::new(&mut obkv_buffer);