mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fix: improve error messages for filterable attributes and fix formatting
This commit is contained in:
parent
1f67f373d1
commit
3acf036526
9 changed files with 138 additions and 70 deletions
|
@ -3692,7 +3692,7 @@ async fn federation_non_faceted_for_an_index() {
|
|||
snapshot!(code, @"400 Bad Request");
|
||||
insta::assert_json_snapshot!(response, { ".processingTimeMs" => "[time]" }, @r#"
|
||||
{
|
||||
"message": "Inside `.federation.facetsByIndex.fruits-no-facets`: Invalid facet distribution: Attributes `BOOST, id` are not filterable. This index does not have configured filterable attributes.\n - Note: index `fruits-no-facets` is not used in queries",
|
||||
"message": "Inside `.federation.facetsByIndex.fruits-no-facets`: Invalid facet distribution: Attributes `BOOST, id` are not filterable. This index does not have configured filterable attributes.\n - Note: index `fruits-no-facets` is not used in queries",
|
||||
"code": "invalid_multi_search_facets",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_multi_search_facets"
|
||||
|
|
|
@ -1413,11 +1413,11 @@ async fn error_remote_does_not_answer() {
|
|||
"offset": 0,
|
||||
"estimatedTotalHits": 3,
|
||||
"remoteErrors": {
|
||||
"ms2": {
|
||||
"message": "error sending request",
|
||||
"code": "remote_could_not_send_request",
|
||||
"type": "system",
|
||||
"link": "https://docs.meilisearch.com/errors#remote_could_not_send_request"
|
||||
"ms2": {
|
||||
"message": "error sending request",
|
||||
"code": "remote_could_not_send_request",
|
||||
"type": "system",
|
||||
"link": "https://docs.meilisearch.com/errors#remote_could_not_send_request"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue