Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Fix transform to use all_documents and ignore soft_deleted documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Nov 8, 2022
1 parent 1b1ad19 commit 37b3c5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions milli/src/update/index_documents/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,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);
Expand Down

0 comments on commit 37b3c5c

Please sign in to comment.