Add stop words on query

This commit is contained in:
qdequele 2020-02-10 16:50:55 +01:00
parent dc6907e748
commit 559c2f8907
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
3 changed files with 11 additions and 0 deletions

View file

@ -171,6 +171,9 @@ pub fn apply_stop_words_update(
)?;
return Ok(true)
}
let stop_words_fst = fst::Set::from_iter(stop_words)?;
index.main.put_words_fst(writer, &stop_words_fst)?;
Ok(false)
}