@@ -167,7 +167,7 @@ get_attributes_for_faceting_1: |-
167167 let attributes_for_faceting: Vec<String> = movies.get_attributes_for_faceting().await.unwrap();
168168update_attributes_for_faceting_1 : |-
169169 let attributes_for_faceting = &[
170- "genre ",
170+ "genres ",
171171 "director"
172172 ];
173173
@@ -287,7 +287,7 @@ search_parameter_guide_crop_1: |-
287287 .execute()
288288 .await
289289 .unwrap();
290-
290+
291291 // Get the formatted results
292292 let formatted_results: Vec<&Movie> = results.hits.iter().map(|r| r.formatted_result.as_ref().unwrap()).collect();
293293search_parameter_guide_highlight_1 : |-
@@ -297,7 +297,7 @@ search_parameter_guide_highlight_1: |-
297297 .execute()
298298 .await
299299 .unwrap();
300-
300+
301301 // Get the formatted results
302302 let formatted_results: Vec<&Movie> = results.hits.iter().map(|r| r.formatted_result.as_ref().unwrap()).collect();
303303search_parameter_guide_filter_1 : |-
@@ -323,7 +323,7 @@ search_parameter_guide_matches_1: |-
323323 .execute()
324324 .await
325325 .unwrap();
326-
326+
327327 // Get the matches info
328328 let matched_info: Vec<&HashMap<String, Vec<MatchRange>>> = results.hits.iter().map(|r| r.matches_info.as_ref().unwrap()).collect();
329329settings_guide_synonyms_1 : |-
@@ -426,7 +426,7 @@ getting_started_create_index_md: |-
426426 async fn main() {
427427 let client = Client::new("http://localhost:7700", "masterKey");
428428 // create an index if the index does not exist
429- let movies = client.get_or_create("movies").await.unwrap();
429+ let movies = client.get_or_create("movies").await.unwrap();
430430
431431 // some code
432432 }
@@ -445,14 +445,14 @@ getting_started_add_documents_md: |-
445445 poster: String,
446446 overview: String,
447447 release_date: i64,
448- genre : Vec<String>
448+ genres : Vec<String>
449449 }
450450 impl Document for Movie {
451451 type UIDType = String;
452452 fn get_uid(&self) -> &Self::UIDType { &self.id }
453453 }
454454 ```
455-
455+
456456 You will often need this `Movie` struct in other parts of this documentation. (you will have to change it a bit sometimes)
457457 You can also use schemaless values, by putting a `serde_json::Value` inside your own struct like this:
458458
@@ -479,7 +479,7 @@ getting_started_add_documents_md: |-
479479 let mut content = String::new();
480480 file.read_to_string(&mut content).unwrap();
481481 let movies_docs: Vec<Movie> = serde_json::from_str(&content).unwrap();
482-
482+
483483 // adding documents
484484 movies.add_documents(&movies_docs, None).await.unwrap();
485485 ```
@@ -489,10 +489,10 @@ getting_started_search_md: |-
489489 let query: Query = Query::new(&movies)
490490 .with_query("botman")
491491 .build();
492-
492+
493493 let results: SearchResults<Movie> = movies.execute_query(&query).await.unwrap();
494494 ```
495-
495+
496496 You can build a Query and execute it directly:
497497 ```rust
498498 let results: SearchResults<Movie> = Query::new(&movies)
@@ -511,7 +511,7 @@ getting_started_search_md: |-
511511 .unwrap();
512512 ```
513513faceted_search_update_settings_1 : |-
514- let progress: Progress = movies.set_attributes_for_faceting(&["director", "genre "]).await.unwrap();
514+ let progress: Progress = movies.set_attributes_for_faceting(&["director", "genres "]).await.unwrap();
515515faceted_search_facet_filters_1 : |-
516516 let results: SearchResults<Movie> = movies.search()
517517 .with_query("thriller")
0 commit comments