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
Copy file name to clipboardExpand all lines: src/indexes.rs
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ impl JsonIndex {
31
31
/// # use meilisearch_sdk::{client::*, indexes::*};
32
32
/// # #[tokio::main]
33
33
/// # async fn main() {
34
-
/// let client = Client::new("http://localhost:7700", "");
34
+
/// let client = Client::new("http://localhost:7700", "masterKey");
35
35
///
36
36
/// // get the index called movies or create it if it does not exist
37
37
/// let movies = client.get_or_create("movies").await.unwrap();
@@ -67,7 +67,7 @@ impl<'a> Index<'a> {
67
67
/// # use meilisearch_sdk::{client::*, indexes::*};
68
68
/// # #[tokio::main]
69
69
/// # async fn main() {
70
-
/// let client = Client::new("http://localhost:7700", "");
70
+
/// let client = Client::new("http://localhost:7700", "masterKey");
71
71
/// # client.create_index("movies", None).await;
72
72
///
73
73
/// // get the index named "movies" and delete it
@@ -107,7 +107,7 @@ impl<'a> Index<'a> {
107
107
///
108
108
/// # #[tokio::main]
109
109
/// # async fn main() {
110
-
/// let client = Client::new("http://localhost:7700", "");
110
+
/// let client = Client::new("http://localhost:7700", "masterKey");
111
111
/// let mut movies = client.get_or_create("movies").await.unwrap();
112
112
///
113
113
/// // add some documents
@@ -163,7 +163,7 @@ impl<'a> Index<'a> {
163
163
///
164
164
/// # #[tokio::main]
165
165
/// # async fn main() {
166
-
/// let client = Client::new("http://localhost:7700", "");
166
+
/// let client = Client::new("http://localhost:7700", "masterKey");
167
167
/// # client.create_index("movies", None).await;
168
168
/// let movies = client.get_index("movies").await.unwrap();
169
169
/// # let mut movies = client.get_index("movies").await.unwrap();
@@ -222,7 +222,7 @@ impl<'a> Index<'a> {
222
222
///
223
223
/// # #[tokio::main]
224
224
/// # async fn main() {
225
-
/// let client = Client::new("http://localhost:7700", "");
225
+
/// let client = Client::new("http://localhost:7700", "masterKey");
226
226
/// # client.create_index("movies", None).await;
227
227
/// let movie_index = client.get_index("movies").await.unwrap();
228
228
/// # let mut movie_index = client.get_index("movies").await.unwrap();
@@ -297,7 +297,7 @@ impl<'a> Index<'a> {
297
297
///
298
298
/// # #[tokio::main]
299
299
/// # async fn main() {
300
-
/// let client = Client::new("http://localhost:7700", "");
300
+
/// let client = Client::new("http://localhost:7700", "masterKey");
301
301
/// let mut movie_index = client.get_or_create("movies").await.unwrap();
302
302
///
303
303
/// movie_index.add_or_replace(&[
@@ -385,7 +385,7 @@ impl<'a> Index<'a> {
385
385
///
386
386
/// # #[tokio::main]
387
387
/// # async fn main() {
388
-
/// let client = Client::new("http://localhost:7700", "");
388
+
/// let client = Client::new("http://localhost:7700", "masterKey");
389
389
/// let mut movie_index = client.get_or_create("movies").await.unwrap();
390
390
///
391
391
/// movie_index.add_or_update(&[
@@ -454,7 +454,7 @@ impl<'a> Index<'a> {
454
454
/// # #[tokio::main]
455
455
/// # async fn main() {
456
456
/// #
457
-
/// let client = Client::new("http://localhost:7700", "");
457
+
/// let client = Client::new("http://localhost:7700", "masterKey");
458
458
/// let mut movie_index = client.get_or_create("movies").await.unwrap();
459
459
///
460
460
/// // add some documents
@@ -499,7 +499,7 @@ impl<'a> Index<'a> {
499
499
/// # #[tokio::main]
500
500
/// # async fn main() {
501
501
/// #
502
-
/// let client = Client::new("http://localhost:7700", "");
502
+
/// let client = Client::new("http://localhost:7700", "masterKey");
503
503
/// let mut movies = client.get_or_create("movies").await.unwrap();
504
504
///
505
505
/// # 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.")}], Some("name")).await.unwrap();
@@ -547,7 +547,7 @@ impl<'a> Index<'a> {
547
547
/// # #[tokio::main]
548
548
/// # async fn main() {
549
549
/// #
550
-
/// let client = Client::new("http://localhost:7700", "");
550
+
/// let client = Client::new("http://localhost:7700", "masterKey");
551
551
/// let mut movies = client.get_or_create("movies").await.unwrap();
552
552
///
553
553
/// // add some documents
@@ -588,7 +588,7 @@ impl<'a> Index<'a> {
588
588
/// #
589
589
/// # #[tokio::main]
590
590
/// # async fn main() {
591
-
/// let client = Client::new("http://localhost:7700", "");
591
+
/// let client = Client::new("http://localhost:7700", "masterKey");
592
592
/// let movies = client.get_or_create("movies").await.unwrap();
593
593
///
594
594
/// let stats = movies.get_stats().await.unwrap();
0 commit comments