Retrieve the previous version of the words prefixes FST

This commit is contained in:
Clément Renault
2022-01-18 14:02:24 +01:00
committed by Kerollmops
parent 38d23546a5
commit d28f18658e
2 changed files with 5 additions and 2 deletions

View File

@ -61,7 +61,7 @@ impl<'t, 'u, 'i> WordPrefixPairProximityDocids<'t, 'u, 'i> {
}
#[logging_timer::time("WordPrefixPairProximityDocids::{}")]
pub fn execute(self) -> Result<()> {
pub fn execute<A: AsRef<[u8]>>(self, old_prefix_fst: &fst::Set<A>) -> Result<()> {
debug!("Computing and writing the word prefix pair proximity docids into LMDB on disk...");
self.index.word_prefix_pair_proximity_docids.clear(self.wtxn)?;