Introduce the searchable parameter settings to the Settings update

This commit is contained in:
Clément Renault 2020-11-03 13:20:11 +01:00
parent 68d783145b
commit e48630da72
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 243 additions and 22 deletions

View file

@ -308,7 +308,17 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
}
}
match builder.execute() {
let result = builder.execute(|count, total| {
let _ = update_status_sender_cloned.send(UpdateStatus::Progressing {
update_id,
meta: UpdateMetaProgress::DocumentsAddition {
processed_number_of_documents: count,
total_number_of_documents: Some(total),
}
});
});
match result {
Ok(_count) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e.into())
}