The "document addition done"

appear once the indexation is over now.
This commit is contained in:
evpeople 2022-08-27 21:50:10 +08:00
parent 47a1aa69f0
commit b774adfbf7

View File

@ -336,7 +336,6 @@ impl Index {
indexed_documents: count,
number_of_documents: count,
};
info!("document addition done: {:?}", addition);
Ok(addition)
}
Err(e) => Err(IndexError::from(e)),
@ -348,6 +347,7 @@ impl Index {
if results.iter().any(Result::is_ok) {
let _addition = builder.execute()?;
txn.commit()?;
info!("document addition done: {:?}", _addition);
}
Ok(results)