fix the v1

This commit is contained in:
tamo 2021-05-06 18:47:56 +02:00
parent 40ced3ff8d
commit ef438852cd
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -51,7 +51,7 @@ impl From<Settings> for index_controller::Settings {
warn!("The criteria `words` and `wordsPosition` have been merged into a single criterion `words` so `wordsPositon` will be ignored");
Some(String::from("words"))
}
"attribute" | "exactness" => {
"exactness" => {
error!("The criterion `{}` is not implemented currently and thus will be ignored", criterion);
None
}
@ -97,13 +97,14 @@ pub fn import_index(size: usize, dump_path: &Path, index_path: &Path, primary_ke
let file = File::open(&dump_path.join("documents.jsonl"))?;
let reader = std::io::BufReader::new(file);
index.update_documents(
// TODO: TAMO: waiting for milli. We should use the result
let _ = index.update_documents(
UpdateFormat::JsonStream,
IndexDocumentsMethod::ReplaceDocuments,
Some(reader),
update_builder,
primary_key,
)?;
);
// at this point we should handle the updates, but since the update logic is not handled in
// meilisearch we are just going to ignore this part