MeiliSearch/crates/meilisearch
meili-bors[bot] e937ba90c2
Merge #5346
5346: Hotfix typo tolerance bug r=Kerollmops a=ManyTheFish

# Pull Request

## Related issue
Fixes #5240

## What does this PR do?
- Add a test reproducing the bug
- fix the bug by relying on the exact_word database

## Explanation

The new indexer introduced in V1.12 does not put the exact attributes words in the word FST, but the old indexer was doing it.
So 2 fixes were possible:
1) Add the word from the exact-words database in the FST knowing that they should never be retrieved with a typo
2) Make the search check in the exact-word database in addition to the word FST to know if the word exists

This PR implements the second fix

## Impact of the bug

A word can't be retrieved if it only appears in attributes listed in the `typoTolerance.disableOnAttributes` setting.


Co-authored-by: ManyTheFish <many@meilisearch.com>
2025-02-20 08:42:46 +00:00
..
src Add embedders stats 2025-02-12 11:37:47 +01:00
tests Merge #5346 2025-02-20 08:42:46 +00:00
build.rs Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
Cargo.toml Update version for the next release (v1.12.6) in Cargo.toml 2025-01-22 15:51:20 +01:00