Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
update ranking rules error message (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma authored and gmourier committed Jul 7, 2022
1 parent 240e81f commit c7506e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion text/0059-geo-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ This error is raised asynchronously when the user tries to specify an invalid ra
#### Error Definition

```json
"message": ":rankingRule ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules."
"message": ":rankingRule ranking rule is invalid. Valid ranking rules are words, typo, sort, proximity, attribute, exactness and custom ranking rules."
"code": "invalid_ranking_rule"
"type": "invalid_request"
"link": "https://docs.meilisearch.com/errors#invalid_ranking_rule"
Expand Down
4 changes: 2 additions & 2 deletions text/0061-error-format-and-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ This error occurs when the user specifies a non-existent ranking rule, a malform

```json
{
"message": "`:rankingRule` ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules.",
"message": "`:rankingRule` ranking rule is invalid. Valid ranking rules are words, typo, sort, proximity, attribute, exactness and custom ranking rules.",
"code": "invalid_ranking_rule",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#invalid_ranking_rule"
Expand Down Expand Up @@ -1334,4 +1334,4 @@ N/A
## 3. Future Possibilities

- Add a `parameter` attribute in the `error` object to indicate which request parameter caused an error.
- Add more specific error types. For example, explode internal errors into several distinct types.
- Add more specific error types. For example, explode internal errors into several distinct types.

0 comments on commit c7506e7

Please sign in to comment.