Open
Description
We recently found a crash in the search due to the words stored in the search cache when computing the terms with one typo.
This was fixed in: #5551
However, we may have a similar issue in the below function:
meilisearch/crates/milli/src/search/new/query_term/compute_derivations.rs
Lines 132 to 163 in c893994
Originally posted by @ManyTheFish in #5551 (comment)
Technical approach
Based on the fix made in the previous PR, amend the linked function to store the words only if it's necessary (before calling the visit
closure).