mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Check the exact_word database when computing zero typo query
This commit is contained in:
parent
025b9b79bb
commit
15788773af
2 changed files with 35 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue