@@ -1045,8 +1045,8 @@ primary_field_guide_add_document_primary_key: |-
10451045 ], Some("reference_number"))
10461046 .await
10471047 .unwrap();
1048- getting_started_add_documents_md : |-
1049- ``` toml
1048+ getting_started_add_documents : |-
1049+ // In your . toml file:
10501050 [dependencies]
10511051 meilisearch-sdk = "0.28.0"
10521052 # futures: because we want to block on futures
@@ -1057,9 +1057,9 @@ getting_started_add_documents_md: |-
10571057 serde_json = "1.0"
10581058 ```
10591059
1060- Documents in the Rust library are strongly typed.
1061-
1062- ```rust
1060+ // In your .rs file:
1061+
1062+ // Documents in the Rust library are strongly typed
10631063 #[derive(Serialize, Deserialize)]
10641064 struct Movie {
10651065 id: i64,
@@ -1069,23 +1069,17 @@ getting_started_add_documents_md: |-
10691069 release_date: i64,
10701070 genres: Vec<String>
10711071 }
1072- ```
10731072
1074- You will often need this `Movie` struct in other parts of this documentation. (you will have to change it a bit sometimes)
1075- You can also use schemaless values, by putting a `serde_json::Value` inside your own struct like this:
1076-
1077- ```rust
1073+ // You will often need this `Movie` struct in other parts of this documentation. (you will have to change it a bit sometimes)
1074+ // You can also use schemaless values, by putting a `serde_json::Value` inside your own struct like this:
10781075 #[derive(Serialize, Deserialize)]
10791076 struct Movie {
10801077 id: i64,
10811078 #[serde(flatten)]
10821079 value: serde_json::Value,
10831080 }
1084- ```
10851081
1086- Then, add documents into the index:
1087-
1088- ```rust
1082+ // Then, add documents into the index:
10891083 use meilisearch_sdk::{
10901084 indexes::*,
10911085 client::*,
@@ -1099,7 +1093,7 @@ getting_started_add_documents_md: |-
10991093 fn main() { block_on(async move {
11001094 let client = Client::new("http://localhost:7700", Some("aSampleMasterKey"));
11011095
1102- // reading and parsing the file
1096+ // Reading and parsing the file
11031097 let mut file = File::open("movies.json")
11041098 .unwrap();
11051099 let mut content = String::new();
@@ -1109,19 +1103,15 @@ getting_started_add_documents_md: |-
11091103 let movies_docs: Vec<Movie> = serde_json::from_str(&content)
11101104 .unwrap();
11111105
1112- // adding documents
1106+ // Adding documents
11131107 client
11141108 .index("movies")
11151109 .add_documents(&movies_docs, None)
11161110 .await
11171111 .unwrap();
11181112 })}
1119- ```
1120-
1121- [About this SDK](https://github.com/meilisearch/meilisearch-rust/)
1122- getting_started_search_md : |-
1123- You can build a `SearchQuery` and execute it later:
1124- ```rust
1113+ getting_started_search : |-
1114+ // You can build a `SearchQuery` and execute it later:
11251115 let query: SearchQuery = SearchQuery::new(&movies)
11261116 .with_query("botman")
11271117 .build();
@@ -1131,29 +1121,22 @@ getting_started_search_md: |-
11311121 .execute_query(&query)
11321122 .await
11331123 .unwrap();
1134- ```
11351124
1136- You can build a `SearchQuery` and execute it directly:
1137- ```rust
1125+ // You can build a `SearchQuery` and execute it directly:
11381126 let results: SearchResults<Movie> = SearchQuery::new(&movies)
11391127 .with_query("botman")
11401128 .execute()
11411129 .await
11421130 .unwrap();
1143- ```
11441131
1145- You can search in an index directly:
1146- ```rust
1132+ // You can search in an index directly:
11471133 let results: SearchResults<Movie> = client
11481134 .index("movies")
11491135 .search()
11501136 .with_query("botman")
11511137 .execute()
11521138 .await
11531139 .unwrap();
1154- ```
1155-
1156- [About this SDK](https://github.com/meilisearch/meilisearch-rust/)
11571140getting_started_update_ranking_rules : |-
11581141 let ranking_rules = [
11591142 "exactness",
0 commit comments