fix update system

This commit is contained in:
qdequele
2020-01-22 14:29:39 +01:00
parent 58fe87067b
commit f77f38dfa0
6 changed files with 50 additions and 40 deletions

View File

@ -275,7 +275,7 @@ mod tests {
let mut final_indexes = Vec::new();
for index in indexes {
let name = index.attribute.to_string();
schema.get_or_create(&name).unwrap();
schema.get_or_create_empty(&name).unwrap();
let indexed_pos = schema.set_indexed(&name).unwrap().1;
let index = DocIndex {
attribute: indexed_pos.0,