handle the array of array form of filter in the dumps

This commit is contained in:
Tamo 2023-05-02 22:36:56 +02:00 committed by Louis Dureuil
parent fc8c1d118d
commit 0f0cd2d929
No known key found for this signature in database
3 changed files with 3 additions and 9 deletions

View file

@ -1210,8 +1210,7 @@ impl<'a> Dump<'a> {
},
KindDump::DocumentDeletionByFilter { filter } => {
KindWithContent::DocumentDeletionByFilter {
filter_expr: serde_json::from_str(&filter)
.map_err(|_| Error::CorruptedDump)?,
filter_expr: filter,
index_uid: task.index_uid.ok_or(Error::CorruptedDump)?,
}
}