MeiliSearch/meilisearch/src
meili-bors[bot] 6376c342c1
Merge #4223
4223: Update to heed 0.20 r=dureuill a=Kerollmops

This PR brings the v0.20-alpha.9 version of heed into Meilisearch 🎉 The main goal is to test it in a real environment to make the necessary changes if needed. We also want to merge it as soon as possible during the pre-release phase to ensure we catch bugs before the release.

Most of the calls to heed are the same as before, except:
 - The `PolyDatabase` has been replaced with a `Database<Unspecified, Unspecified>`. We replaced the `get<T, U>()` by a `remap<T, U>().get()` calls.
 - The `Database` `append(...)` method has been replaced with a `put_with_flags(PutFlags::APPEND, ...)`.
 - The `RwTxn<'e, 'p>` has been simplified into a `RwTxn<'e>`.
 - The `BytesEncode/Decode` traits return a `Result<_, BoxedError>` instead of an `Option<_>`.
 - We no longer need to wrap and unwrap the `BEU32` integer when storing/getting them from heed.

### TODO
 - [x] Create actual, simple error types instead of using strings in the codecs.

### Follow-up work
 - Move the codecs into another member crate (we depend on the uuid one in the meilitool crate).
 - Display the internal decoding error in the `SerializationError` internal error variant.

Co-authored-by: Clément Renault <clement@meilisearch.com>
2023-11-28 13:39:44 +00:00
..
analytics Remove the experimental CLI flag 2023-10-13 13:11:29 +02:00
extractors fix test name 2023-05-16 09:24:49 +02:00
routes Move the clippy attribute on the problematic part of the code 2023-11-28 14:37:58 +01:00
error.rs get rid of the invalid document delete filter in favor of the invalid document filter 2023-05-24 11:53:16 +02:00
lib.rs Fixed payload limit setting being ignored for delete documents by batch route 2023-11-25 18:41:16 +00:00
main.rs Remove the experimental CLI flag 2023-10-13 13:11:29 +02:00
metrics.rs Merge #3851 2023-07-03 13:41:04 +00:00
middleware.rs index_scheduler.features() is no longer fallible 2023-10-23 10:38:56 +02:00
option.rs Remove the experimental CLI flag 2023-10-13 13:11:29 +02:00
search.rs Move to the v0.20.0-alpha.9 of heed 2023-11-27 11:52:22 +01:00