Check the exact_word database when computing zero typo query

This commit is contained in:
ManyTheFish 2025-02-13 14:02:53 +01:00
parent 5e7803632d
commit 96ba62da36
2 changed files with 35 additions and 1 deletions

View file

@ -215,7 +215,7 @@ pub fn partially_initialized_term_from_word(
let mut zero_typo = None;
let mut prefix_of = BTreeSet::new();
if fst.contains(word) {
if fst.contains(word) || ctx.index.exact_word_docids.get(ctx.txn, word)?.is_some() {
zero_typo = Some(word_interned);
}