meilisearch/milli/src/update
meili-bors[bot] fc1c3f4a29
Merge #4466
4466: Implements the search cutoff r=irevoire a=irevoire

# Pull Request

## Related issue
Fixes https://github.com/meilisearch/meilisearch/issues/4488

## What does this PR do?
- Adds a cutoff to the bucket sort after 150ms has been spent
- Adds a new setting to customize the default value of 150ms
- When the time is exceeded, we exit early with what we had the time to sort
- If the cutoff has been reached, the search details are updated with a new `Skip` ranking details for the ranking rules that were skipped
- Adds analytics to measure the total number of degraded search requests
- Adds the number of degraded search requests to the Prometheus metrics and Grafana dashboard
- The cutoff **must not** skip the filters; otherwise, we would leak documents to people who don’t have the right to see them


Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
2024-03-20 13:06:53 +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 #4466 2024-03-20 13:06:53 +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