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 14, 2022
1 parent a636704 commit 625e207
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 @@ -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);
Expand Down

0 comments on commit 625e207

Please sign in to comment.