MeiliSearch/crates/meilisearch/tests
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
..
assets add a dump test with batches and enqueued tasks 2025-02-11 11:14:49 +01:00
auth Add new permissions 2025-02-05 15:03:16 +01:00
batches fix another flaky test 2025-01-28 16:53:50 +01:00
common add a dump test with batches and enqueued tasks 2025-02-11 11:14:49 +01:00
dashboard Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
documents Update snapshots 2025-02-12 14:05:32 +01:00
dumps Convert dump test into snapshots 2025-02-12 14:14:10 +01:00
features Make the feature experimental 2025-02-10 16:11:32 +01:00
index Merge #5182 2025-01-13 15:18:55 +00:00
logs #4840 - Partial fix - Confirm task success after waiting for it. 2024-12-24 23:06:07 +11:00
network network integration tests 2025-02-05 15:03:32 +01:00
search Check the exact_word database when computing zero typo query 2025-02-13 14:02:53 +01:00
settings Fix tests 2025-01-14 13:55:34 +01:00
similar Fix tests 2025-01-14 13:55:34 +01:00
snapshot Format fixes after running: cargo +nightly fmt 2025-01-07 11:16:37 +11:00
stats Add multiple embeddings for the same embedder in tests 2025-02-12 16:13:34 +01:00
swap_indexes #4840 - Partial fix - Remove hard coded task ids to prevent flaky tests. 2024-12-24 23:05:59 +11:00
tasks Add the new tasks with most of the job done 2025-01-23 16:48:32 +01:00
upgrade Update the snapshots 2025-02-18 11:31:20 +01:00
vector Fix test 2025-02-03 10:36:34 +01:00
content_type.rs Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
integration.rs network integration tests 2025-02-05 15:03:32 +01:00