You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
467: Changes related to the next Meilisearch release (v1.2.0) r=bidoubiwa a=meili-bot
Related to this issue: meilisearch/integration-guides#261
This PR:
- gathers the changes related to the next Meilisearch release (v1.2.0) so that this package is ready when the official release is out.
- should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases).
- might eventually contain test failures until the Meilisearch v1.2.0 is out.
⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.2.0) is out.
_This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/main/resources/pre-release-week.md) purpose._
Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Charlotte Vermandel <[email protected]>
let url = option_env!("MEILISEARCH_URL").unwrap_or("http://localhost:7700");
536
+
let client = Client::new(format!("{}/hello", url),Some("masterKey"));
537
+
let index = client.index("test_get_documents_with_filter_wrong_ms_version");
538
+
539
+
let documents = DocumentsQuery::new(&index)
540
+
.with_filter("id = 1")
541
+
.execute::<MyObject>()
542
+
.await;
543
+
544
+
let error = documents.unwrap_err();
545
+
546
+
let message = Some("Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.".to_string());
547
+
let url = "http://localhost:7700/hello/indexes/test_get_documents_with_filter_wrong_ms_version/documents/fetch".to_string();
548
+
let status_code = 404;
549
+
let displayed_error = "MeilisearchCommunicationError: The server responded with a 404. Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.\nurl: http://localhost:7700/hello/indexes/test_get_documents_with_filter_wrong_ms_version/documents/fetch";
550
+
551
+
match&error {
552
+
Error::MeilisearchCommunication(error) => {
553
+
assert_eq!(error.status_code, status_code);
554
+
assert_eq!(error.message, message);
555
+
assert_eq!(error.url, url);
556
+
}
557
+
_ => panic!("The error was expected to be a MeilisearchCommunicationError error, but it was not."),
let message = "Attribute `id` is not filterable. This index does not have configured filterable attributes.
578
+
1:3 id = 1
579
+
Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.".to_string();
580
+
let displayed_error = "Meilisearch invalid_request: invalid_document_filter: Attribute `id` is not filterable. This index does not have configured filterable attributes.
581
+
1:3 id = 1
582
+
Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.. https://docs.meilisearch.com/errors#invalid_document_filter";
583
+
584
+
match&error {
585
+
Error::Meilisearch(error) => {
586
+
assert_eq!(error.error_message, message);
587
+
}
588
+
_ => panic!("The error was expected to be a MeilisearchCommunicationError error, but it was not."),
pubconstMEILISEARCH_VERSION_HINT:&str = "Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method";
0 commit comments