meilisearch/milli
bors[bot] 720becb5e8
Merge #341
341: Throw a query time error when a sort parameter is used but the sort ranking rule is missing r=Kerollmops a=Kerollmops

This PR makes the engine throw an error for when the ranking rules don't contain the `sort` rule, the `sortable_fields` are correctly set but the user tries to use the `sort` query parameter. Doing so will have no effect on the returned documents so we preferred returning an error to help debug this.

That's breaking on the MeiliSearch side as we added a new variant to the `UserError` enum.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2021-09-07 14:45:05 +00:00
..
src Throw a query time error when a sort param is used but sort ranking rule is missing 2021-09-07 11:02:00 +02:00
tests Add a test to make sure we throw the right error message 2021-09-07 11:02:00 +02:00
Cargo.toml remove unused grenad default features 2021-09-07 16:21:46 +02:00