diff --git a/meilidb-data/src/database.rs b/meilidb-data/src/database.rs index de48961f3..745c5a8b5 100644 --- a/meilidb-data/src/database.rs +++ b/meilidb-data/src/database.rs @@ -115,7 +115,7 @@ impl Database { occupied.get().clone() }, Entry::Vacant(vacant) => { - if !self.indexes()?.map_or(false, |x| !x.contains(name)) { + if !self.indexes()?.map_or(false, |x| x.contains(name)) { return Ok(None) }