diff --git a/milli/src/index.rs b/milli/src/index.rs index 5c5fc9895..7b83d69fc 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -356,11 +356,8 @@ impl Index { /// Returns the number of documents ids associated with the given word, /// it is much faster than deserializing the bitmap and getting the length of it. - pub fn word_documents_count(&self, rtxn: &RoTxn, word: &str) -> anyhow::Result> { - self.word_docids - .remap_data_type::() - .get(rtxn, word) - .map_err(Into::into) + pub fn word_documents_count(&self, rtxn: &RoTxn, word: &str) -> heed::Result> { + self.word_docids.remap_data_type::().get(rtxn, word) } /* documents */