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
437: Changes related to the next Meilisearch release (v1.1.0) r=bidoubiwa a=meili-bot
Related to this issue: meilisearch/integration-guides#251
This PR:
- gathers the changes related to the next Meilisearch release (v1.1.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.1.0 is out.
⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.1.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 <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
/// # use meilisearch_sdk::{client::*, indexes::*, search::*};
87
+
///
88
+
/// #
89
+
/// # let MEILISEARCH_URL = option_env!("MEILISEARCH_URL").unwrap_or("http://localhost:7700");
90
+
/// # let MEILISEARCH_API_KEY = option_env!("MEILISEARCH_API_KEY").unwrap_or("masterKey");
91
+
/// #
92
+
/// #[derive(Serialize, Deserialize, Debug)]
93
+
/// struct Movie {
94
+
/// name: String,
95
+
/// description: String,
96
+
/// }
97
+
///
98
+
/// # futures::executor::block_on(async move {
99
+
/// let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY));
100
+
/// let mut movies = client.index("search");
101
+
///
102
+
/// // add some documents
103
+
/// # movies.add_or_replace(&[Movie{name:String::from("Interstellar"), description:String::from("Interstellar chronicles the adventures of a group of explorers who make use of a newly discovered wormhole to surpass the limitations on human space travel and conquer the vast distances involved in an interstellar voyage.")},Movie{name:String::from("Unknown"), description:String::from("Unknown")}], Some("name")).await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
104
+
///
105
+
/// let search_query_1 = SearchQuery::new(&movies)
106
+
/// .with_query("Interstellar")
107
+
/// .build();
108
+
/// let search_query_2 = SearchQuery::new(&movies)
0 commit comments