meilisearch/milli/src/update
meili-bors[bot] abd954755d
Merge #4476
4476: Make the `/facet-search` route use the `sortFacetValuesBy` setting r=irevoire a=Kerollmops

This PR fixes #4423 by ensuring that the `/facet-search` route uses the `sortFacetValuesBy` setting.

Note for the documentation team (to be moved in the tracking issue): Using the new `sortFacetValuesBy` setting can slow down the facet-search requests as Meilisearch iterates over the whole list of facet values and computes the count of documents on every entry. That is hardly or even impossible to optimize correctly.

### TODO
 - [x] Create a custom HashMap wrapper for the facet `OrderBy` settings.
         This wrapper will return the `OrderBy` setting of the facet, if not defined will use the default `*` one, and if not there either (strange) will fall back on the lexicographic one.
- [x] Create a `ValuesCollection` wrapper that implements the logic for the lexicographic and count order by.
  - [x] Use it when there is no search query.
  - [x] Use it when there is a search query with and without allowed typos.
  - [x] Do not change the original logic, only use a wrapper.
- [x] Add tests

Co-authored-by: Clément Renault <clement@meilisearch.com>
2024-03-13 14:36:14 +00:00
..
facet Divide threshold by ten 2024-03-04 18:02:54 +01:00
index_documents Meilisearch: fix some wrong spans 2024-03-05 10:11:43 +01:00
available_documents_ids.rs Remove soft-deleted related methods from Index 2023-10-30 11:41:22 +01:00
clear_documents.rs Add tracing to milli 2024-02-08 15:03:31 +01:00
del_add.rs Make into_del_add_obkv parameters more human readable 2023-11-20 16:10:39 +01:00
indexer_config.rs Skip computing index budget in tests 2023-02-23 11:23:39 +01:00
mod.rs fix PR comments 2024-02-13 15:19:01 +01:00
settings.rs Merge #4476 2024-03-13 14:36:14 +00:00
update_step.rs Implement documents format 2021-09-21 16:58:33 +02:00
word_prefix_docids.rs Compute chunk size based on the input data size ant the number of indexing threads 2024-02-08 17:28:37 +01:00
words_prefix_integer_docids.rs Compute chunk size based on the input data size ant the number of indexing threads 2024-02-08 17:28:37 +01:00
words_prefixes_fst.rs Add tracing to milli 2024-02-08 15:03:31 +01:00