mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix the indexation tests
This commit is contained in:
parent
fcfc4caf8c
commit
399eec5c01
15 changed files with 288 additions and 194 deletions
|
@ -255,7 +255,7 @@ impl Performer for DocumentAddition {
|
|||
let bar = progesses.add(bar);
|
||||
bars.push(bar);
|
||||
}
|
||||
let mut addition = milli::update::IndexDocuments::new(
|
||||
let addition = milli::update::IndexDocuments::new(
|
||||
&mut txn,
|
||||
&index,
|
||||
&config,
|
||||
|
@ -263,7 +263,10 @@ impl Performer for DocumentAddition {
|
|||
|step| indexing_callback(step, &bars),
|
||||
)
|
||||
.unwrap();
|
||||
addition.add_documents(reader)?;
|
||||
let (addition, user_error) = addition.add_documents(reader)?;
|
||||
if let Err(error) = user_error {
|
||||
return Err(error.into());
|
||||
}
|
||||
|
||||
std::thread::spawn(move || {
|
||||
progesses.join().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue