Skip to content

Conversation

@ManyTheFish
Copy link
Member

@ManyTheFish ManyTheFish commented May 15, 2023

This PR reintroduces the error message modified in meilisearch/milli#375.
However, this added double-quotes around sort in the message. I don't think another message contains double-quotes, so I have added a separate commit replacing the double-quotes with back-ticks, which seems more consistent with the other error messages, this last change can be reverted easily.

Detailed changes

v1.2-rc0

The sort ranking rule must be specified in the ranking rules settings to use the sort parameter at search time.

Reintroduce fix (previous and expected behavior)

You must specify where "sort" is listed in the rankingRules setting to use the sort parameter at search time

Replace double-quotes with back-ticks (my suggestion)

You must specify where `sort` is listed in the rankingRules setting to use the sort parameter at search time

Related

Fixes #3722

Reviewers

@ManyTheFish ManyTheFish requested review from irevoire and macraig May 15, 2023 09:22
@ManyTheFish ManyTheFish changed the base branch from main to release-v1.2.0 May 15, 2023 09:23
@ManyTheFish ManyTheFish added this to the v1.2.0 milestone May 15, 2023
@ManyTheFish ManyTheFish linked an issue May 15, 2023 that may be closed by this pull request
@ManyTheFish ManyTheFish requested a review from gmourier May 15, 2023 12:03
Copy link
Contributor

@irevoire irevoire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, this added double-quotes around sort in the message. I don't think another message contains double-quotes, so I have added a separate commit replacing the double-quotes with back-ticks, which seems more consistent with the other error messages, this last change can be reverted easily.

💯

@ManyTheFish
Copy link
Member Author

Thank you @irevoire and @gmourier,

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented May 15, 2023

@meili-bors meili-bors bot merged commit bf66e97 into release-v1.2.0 May 15, 2023
@meili-bors meili-bors bot deleted the fix-back-sort-error-code branch May 15, 2023 15:28
ManyTheFish added a commit to meilisearch/specifications that referenced this pull request May 16, 2023
@ManyTheFish ManyTheFish restored the fix-back-sort-error-code branch May 16, 2023 08:57
@ManyTheFish ManyTheFish mentioned this pull request May 16, 2023
meili-bors bot added a commit that referenced this pull request May 16, 2023
3755: Re-add final dot r=curquiza a=ManyTheFish

I removed the final dot of the error message in my last PR, this one re-adds it.

related to #3749

> Oups 😬 

Co-authored-by: ManyTheFish <[email protected]>
macraig pushed a commit to meilisearch/specifications that referenced this pull request Jun 5, 2023
macraig pushed a commit to meilisearch/specifications that referenced this pull request Jun 5, 2023
* Bump OpenAPI version

* CSV Content-Type — Add support for the boolean type in CSV (#228)

* add support for the boolean type in csv

* fix a typo

* Update text/0028-indexing-csv.md

---------

Co-authored-by: Guillaume Mourier <[email protected]>

* Filter operators - `IS NULL` and `IS EMPTY` filter operators (#232)

* Introduce the spec of the IS EMPTY filter

* Introduce the spec of the IS NULL filter

* Fix suggestions

* Uppercase the IN operator

Co-authored-by: Guillaume Mourier <[email protected]>

* Fix a title number issue

Co-authored-by: Guillaume Mourier <[email protected]>

---------

Co-authored-by: Guillaume Mourier <[email protected]>

* Search Algorithms Refactor: Relevancy Changes (#233)

* Remove old exactness-criterion specification

* Remove old asc-desc-criterion specification

* Get and delete documents by filter (#236)

* specify the new fetch documents route

* update open-api

* try to be nice with bumpsh

* specify the new analytics of the get/fetch documents route

* group the analytics behind already used groups

* fix a placeholder text

* group the get and fetch route under a common section

* rename the section to contain the name of both routes

* clarify how to send the parameter to both routes

* fix the type of the parameters

* add the new fetch route to the api keys actions

* capitalize json

Co-authored-by: cvermand <[email protected]>

* update open-api

* Specify the new route to delete documents by filter

* add the new analytics event

* improve a comment

* add the post - delete route to the api key actions

* Fix the json payload

Co-authored-by: cvermand <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guillaume Mourier <[email protected]>

* Update the details

Co-authored-by: Guillaume Mourier <[email protected]>

* delete the invalid_document_delete_filter error code and introduce the missing_document_filter

* fix the open-api thingy

---------

Co-authored-by: cvermand <[email protected]>
Co-authored-by: Guillaume Mourier <[email protected]>

* Auto deletion of tasks (#238)

* auto deletion of tasks

* Update text/0060-tasks-api.md

Co-authored-by: gui machiavelli <[email protected]>

* Update text/0060-tasks-api.md

Co-authored-by: gui machiavelli <[email protected]>

---------

Co-authored-by: gui machiavelli <[email protected]>

* Experimental reduce indexing memory usage (#239)

* Add the experimental-reduce-indexing-memory-usage option in the telemetry policies

* Add the experimental-reduce-indexing-memory-usage option in the instance options

* Update 0055-sort.md (#240)

related to meilisearch/meilisearch#3749

* Update `payload_too_large` error `message` (#241)

* Update 0061-error-format-and-definitions.md

Update error message in the specification

* Update open-api.yaml

---------

Co-authored-by: Tamo <[email protected]>
Co-authored-by: Clément Renault <[email protected]>
Co-authored-by: cvermand <[email protected]>
Co-authored-by: gui machiavelli <[email protected]>
Co-authored-by: Many the fish <[email protected]>
@meili-bot meili-bot added the v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05 label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix back the sorting message

4 participants