Use add_or_update

This commit is contained in:
2023-03-30 23:43:46 +02:00
parent 7272ab81d5
commit 591ab5e9be
2 changed files with 161 additions and 92 deletions

View File

@@ -63,7 +63,7 @@ where
})
.collect();
if let Err(err) = index.add_or_replace(&items, Some("id")).await {
if let Err(err) = index.add_or_update(&items, Some("id")).await {
return Err(Box::new(err));
};
}