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
/// # 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, 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