mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Fix meilisearch-http to use the new DocumentImport batch operation
This commit is contained in:
parent
07286fcc79
commit
3b343a930e
@ -285,24 +285,13 @@ async fn document_addition(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let task = match method {
|
let task = KindWithContent::DocumentImport {
|
||||||
IndexDocumentsMethod::ReplaceDocuments => KindWithContent::DocumentAddition {
|
method,
|
||||||
content_file: uuid,
|
content_file: uuid,
|
||||||
documents_count,
|
documents_count,
|
||||||
primary_key,
|
primary_key,
|
||||||
allow_index_creation,
|
allow_index_creation,
|
||||||
index_uid,
|
index_uid,
|
||||||
},
|
|
||||||
|
|
||||||
IndexDocumentsMethod::UpdateDocuments => KindWithContent::DocumentUpdate {
|
|
||||||
content_file: uuid,
|
|
||||||
documents_count,
|
|
||||||
primary_key,
|
|
||||||
allow_index_creation,
|
|
||||||
index_uid,
|
|
||||||
},
|
|
||||||
// TODO: TAMO: can I get rids of the `non_exhaustive` on the IndexDocumentsMethod enum
|
|
||||||
_ => todo!(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let scheduler = index_scheduler.clone();
|
let scheduler = index_scheduler.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user