meilisearch/milli/src
bors[bot] d3731dda48
Merge #706
706: Limit the reindexing caused by updating settings when not needed r=curquiza a=GregoryConrad

## What does this PR do?
When updating index settings using `update::Settings`, sometimes a `reindex` of `update::Settings` is triggered when it doesn't need to be. This PR aims to prevent those unnecessary `reindex` calls.

For reference, here is a snippet from the current `execute` method in `update::Settings`:
```rust
// ...
if stop_words_updated
    || faceted_updated
    || synonyms_updated
    || searchable_updated
    || exact_attributes_updated
{
    self.reindex(&progress_callback, &should_abort, old_fields_ids_map)?;
}
```

- [x] `faceted_updated` - looks good as-is 
- [x] `stop_words_updated` - looks good as-is 
- [x] `synonyms_updated` - looks good as-is 
- [x] `searchable_updated` - fixed in this PR
- [x] `exact_attributes_updated` - fixed in this PR

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Gregory Conrad <gregorysconrad@gmail.com>
2022-12-01 13:58:02 +00:00
..
documents Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
facet update milli with the new parser_filter 2021-11-04 15:02:36 +01:00
heed_codec Merge #659 2022-11-03 15:24:38 +00:00
search Don't create partial matching words for synonyms in ngrams 2022-11-28 16:32:28 +01:00
snapshots/index.rs/initial_field_distribution Refactor snapshot tests 2022-08-10 15:53:46 +02:00
update Merge #706 2022-12-01 13:58:02 +00:00
asc_desc.rs Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
criterion.rs Improves ranking rules error message 2022-05-20 21:25:43 +02:00
error.rs Introduce an indexation abortion function when indexing documents 2022-10-17 17:28:03 +02:00
external_documents_ids.rs Fasten the document deletion 2022-07-05 15:30:33 +02:00
fields_ids_map.rs Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
index.rs fix(reindex): reindex in a few more cases 2022-11-28 13:12:19 -05:00
lib.rs Merge #708 2022-11-30 17:47:34 +00:00
proximity.rs Remove limit of 1000 position per attribute 2021-10-12 10:10:50 +02:00
snapshot_tests.rs Fix cargo clippy errors 2022-10-27 01:04:23 +09:00