Check the exact_word database when computing zero typo query

This commit is contained in:
ManyTheFish 2025-02-13 14:02:53 +01:00 committed by Kerollmops
parent 025b9b79bb
commit 15788773af
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
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);
}