MeiliSearch/milli/src/update
meili-bors[bot] be72be7c0d
Merge #3942
3942: Normalize for the search the facets values r=ManyTheFish a=Kerollmops

This PR improves and fixes the search for facet values feature. Searching for _bre_ wasn't returning facet values like _brévent_ or _brô_.

The issue was related to the fact that facets are normalized but not in the same way as the `searchableAttributes` are. We decided to normalize them further and add another intermediate database where the key is the normalized facet value, and the value is a set of the non-normalized facets. We then use these non-normalized ones to get the correct counts by fetching the associated databases.

### What's missing in this PR?
 - [x] Apply the change to the whole set of `SearchForFacetValue::execute` conditions.
 - [x] Factorize the code that does an intermediate normalized value fetch in a function.
 - [x] Add or modify the search for facet value test.

Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Kerollmops <clement@meilisearch.com>
2023-07-25 14:37:17 +00:00
..
facet Normalize for the search the facets values 2023-07-20 17:57:07 +02:00
index_documents Merge #3942 2023-07-25 14:37:17 +00:00
prefix_word_pairs Avoid a prefix-related worst-case scenario in the proximity criterion 2022-12-22 12:08:00 +01:00
snapshots/delete_documents.rs Update test 2023-06-29 15:56:36 +02:00
available_documents_ids.rs Fix cargo clippy errors 2022-10-27 01:04:23 +09:00
clear_documents.rs Normalize for the search the facets values 2023-07-20 17:57:07 +02:00
delete_documents.rs Merge #3942 2023-07-25 14:37:17 +00:00
indexer_config.rs Skip computing index budget in tests 2023-02-23 11:23:39 +01:00
mod.rs Normalize for the search the facets values 2023-07-20 17:57:07 +02:00
settings.rs Sort by lexicographic order after normalization 2023-07-10 09:26:59 +02:00
update_step.rs Implement documents format 2021-09-21 16:58:33 +02:00
word_prefix_docids.rs Fixing piles of clippy errors. 2022-10-13 22:02:54 +02:00
words_prefix_integer_docids.rs Fix indexing of word_prefix_fid_docids 2023-04-29 10:56:48 +02:00
words_prefixes_fst.rs Fix clippy errors 2022-11-04 09:27:46 +09:00