Go to file
bors[bot] 25af262e79
Merge #210
210: Error handling r=MarinPostma a=MarinPostma

This pr implements the error handling for meilisearch.

Rather than grouping errors by types, this implementation groups them by scope, each scope enclosing errors from a scope further down, or new errors within this scope. This makes the tracking of the origins of errors easier , and error handling easier at the module level.

All errors that are eventually returned to the user implement the `Into<ResponseError>` trait. `ReponseError` in turn implements the `ErrorCode` trait from `meilisearch-error`.

Some new errors have been introduced with the new engine for which we haven't defined error codes yet. It has been decided with @gmourier that those would return the `internal-error` code until the correct error code is specified.


Co-authored-by: marin postma <postma.marin@protonmail.com>
2021-06-22 13:21:33 +00:00
.github run cargo flaky only 100 times 2021-06-21 17:36:54 +02:00
meilisearch-error serve static site 2021-04-22 10:26:54 +02:00
meilisearch-http Merge #210 2021-06-22 13:21:33 +00:00
.dockerignore add docker recipe 2021-03-01 14:41:57 +01:00
.gitignore put mini-dashboard in out-dir 2021-04-27 09:32:17 +02:00
bors.toml Update CI 2021-04-27 12:43:00 +02:00
Cargo.lock bump milli 2021-06-21 12:11:09 +02:00
Cargo.toml create workspace with meilisearch-error 2021-03-01 14:41:55 +01:00
Dockerfile review fixes 2021-04-26 10:20:46 +02:00
LICENSE add license 2021-02-28 10:08:36 +01:00
README.md Update README.md 2021-04-27 16:33:22 +02:00

Transplant

Transplant makes communication between the users and Milli using HTTP. The final purpose of Transplant is to be merged into the current MeiliSearch repository so that users will enjoy the new search engine performance provided by Milli.

Run the alpha releases

Currently only alpha versions are available.

You can:

  • Run it with Docker, for instance:
docker run -p 7700:7700 getmeili/meilisearch:v0.21.0-alpha.4 ./meilisearch
cargo run --release

Run the tests

cargo test

If you encounter any Too many open files error when running the tests, please upgrade the maximum number of open file descriptors with this command:

ulimit -Sn 3000