Several TermDict operation now returns an io::Result

This commit is contained in:
Paul Masurel
2020-12-03 12:46:52 +09:00
parent 4b1c770e5e
commit 80a99539ce
14 changed files with 65 additions and 122 deletions

View File

@@ -61,7 +61,7 @@ fn main() -> tantivy::Result<()> {
let query_ords: HashSet<u64> = facets
.iter()
.filter_map(|key| facet_dict.term_ord(key.encoded_str()))
.filter_map(|key| facet_dict.term_ord(key.encoded_str()).unwrap())
.collect();
let mut facet_ords_buffer: Vec<u64> = Vec::with_capacity(20);