@@ -759,143 +759,6 @@ filtering_guide_nested_1: |-
759759 .execute()
760760 .await
761761 .unwrap();
762- search_parameter_guide_query_1 : |-
763- let results: SearchResults<Movie> = client
764- .index("movies")
765- .search()
766- .with_query("shifu")
767- .execute()
768- .await
769- .unwrap();
770- search_parameter_guide_attributes_to_search_on_1 : |-
771- let results: SearchResults<Movie> = client
772- .index("movies")
773- .search()
774- .with_query("adventure")
775- .with_attributes_to_search_on(&["overview"])
776- .execute()
777- .await
778- .unwrap();
779- search_parameter_guide_offset_1 : |-
780- let results: SearchResults<Movie> = client
781- .index("movies")
782- .search()
783- .with_query("shifu")
784- .with_offset(1)
785- .execute()
786- .await
787- .unwrap();
788- search_parameter_guide_limit_1 : |-
789- let results: SearchResults<Movie> = client
790- .index("movies")
791- .search()
792- .with_query("shifu")
793- .with_limit(2)
794- .execute()
795- .await
796- .unwrap();
797- search_parameter_guide_retrieve_1 : |-
798- let results: SearchResults<Movie> = client
799- .index("movies")
800- .search()
801- .with_query("shifu")
802- .with_attributes_to_retrieve(Selectors::Some(&["overview", "title"]))
803- .execute()
804- .await
805- .unwrap();
806- search_parameter_guide_crop_1 : |-
807- let results: SearchResults<Movie> = client
808- .index("movies")
809- .search()
810- .with_query("shifu")
811- .with_attributes_to_crop(Selectors::Some(&[("overview", None)]))
812- .with_crop_length(5)
813- .execute()
814- .await
815- .unwrap();
816-
817- // Get the formatted results
818- let formatted_results: Vec<&Movie> = results
819- .hits
820- .iter()
821- .map(|r| r.formatted_result.as_ref().unwrap())
822- .collect();
823- search_parameter_guide_crop_marker_1 : |-
824- let results: SearchResults<Movie> = client
825- .index("movies")
826- .search()
827- .with_query("shifu")
828- .with_attributes_to_crop(Selectors::Some(&[("overview", None)]))
829- .with_crop_marker("[…]")
830- .execute()
831- .await
832- .unwrap();
833-
834- // Get the formatted results
835- let formatted_results: Vec<&Movie> = results
836- .hits
837- .iter()
838- .map(|r| r.formatted_result.as_ref().unwrap())
839- .collect();
840- search_parameter_guide_highlight_1 : |-
841- let results: SearchResults<Movie> = client
842- .index("movies")
843- .search()
844- .with_query("winter feast")
845- .with_attributes_to_highlight(Selectors::Some(&["overview"]))
846- .execute()
847- .await
848- .unwrap();
849-
850- // Get the formatted results
851- let formatted_results: Vec<&Movie> = results
852- .hits
853- .iter()
854- .map(|r| r.formatted_result.as_ref().unwrap())
855- .collect();
856- search_parameter_guide_highlight_tag_1 : |-
857- let results: SearchResults<Movie> = client
858- .index("movies")
859- .search()
860- .with_query("winter feast")
861- .with_attributes_to_highlight(Selectors::Some(&["overview"]))
862- .with_highlight_pre_tag("<span class=\"highlight\">")
863- .with_highlight_post_tag("</span>")
864- .execute()
865- .await
866- .unwrap();
867-
868- // Get the formatted results
869- let formatted_results: Vec<&Movie> = results
870- .hits
871- .iter()
872- .map(|r| r.formatted_result.as_ref().unwrap())
873- .collect();
874- search_parameter_guide_show_matches_position_1 : |-
875- let results: SearchResults<Movie> = client
876- .index("movies")
877- .search()
878- .with_query("winter feast")
879- .with_show_matches_position(true)
880- .execute()
881- .await
882- .unwrap();
883-
884- // Get the matches info
885- let matches_position: Vec<&HashMap<String, Vec<MatchRange>>> = results
886- .hits
887- .iter()
888- .map(|r| r.matches_position.as_ref().unwrap())
889- .collect();
890- search_parameter_guide_show_ranking_score_1 : |-
891- let results: SearchResults<Movie> = client
892- .index("movies")
893- .search()
894- .with_query("dragon")
895- .with_show_ranking_score(true)
896- .execute()
897- .await
898- .unwrap();
899762search_parameter_guide_show_ranking_score_details_1 : |-
900763 let results: SearchResults<Movie> = client
901764 .index("movies")
@@ -905,37 +768,6 @@ search_parameter_guide_show_ranking_score_details_1: |-
905768 .execute()
906769 .await
907770 .unwrap();
908- search_parameter_guide_matching_strategy_1 : |-
909- let results: SearchResults<Movie> = client
910- .index("movies")
911- .search()
912- .with_query("big fat liar")
913- .with_matching_strategy(MatchingStrategies::LAST)
914- .execute()
915- .await
916- .unwrap();
917- search_parameter_guide_matching_strategy_2 : |-
918- let results: SearchResults<Movie> = client
919- .index("movies")
920- .search()
921- .with_query("big fat liar")
922- .with_matching_strategy(MatchingStrategies::ALL)
923- .execute()
924- .await
925- .unwrap();
926- search_parameter_guide_matching_strategy_3 : |-
927- let results: SearchResults<Movie> = client
928- .index("movies")
929- .search()
930- .with_query("white shirt")
931- .with_matching_strategy(MatchingStrategies::FREQUENCY)
932- .execute()
933- .await
934- .unwrap();
935- search_parameter_guide_hitsperpage_1 : |-
936- client.index("movies").search().with_hits_per_page(15).execute().await?;
937- search_parameter_guide_page_1 : |-
938- client.index("movies").search().with_page(2).execute().await?;
939771typo_tolerance_guide_1 : |-
940772 let typo_tolerance = TypoToleranceSettings {
941773 enabled: Some(false),
@@ -1166,15 +998,6 @@ filtering_update_settings_1: |-
1166998 .set_filterable_attributes(["director", "genres"])
1167999 .await
11681000 .unwrap();
1169- faceted_search_walkthrough_filter_1 : |-
1170- let results: SearchResults<Movie> = client
1171- .index("movies")
1172- .search()
1173- .with_query("thriller")
1174- .with_filter("(genres = Horror AND genres = Mystery) OR director = \"Jordan Peele\"")
1175- .execute()
1176- .await
1177- .unwrap();
11781001faceted_search_update_settings_1 : |-
11791002 let task: TaskInfo = client
11801003 .index("movie_ratings")
@@ -1195,14 +1018,6 @@ post_dump_1: |-
11951018 .create_dump()
11961019 .await
11971020 .unwrap();
1198- phrase_search_1 : |-
1199- let results: SearchResults<Movie> = client
1200- .index("movies")
1201- .search()
1202- .with_query("\"african american\" horror")
1203- .execute()
1204- .await
1205- .unwrap();
12061021sorting_guide_update_sortable_attributes_1 : |-
12071022 let sortable_attributes = [
12081023 "author",
@@ -1279,15 +1094,6 @@ reset_sortable_attributes_1: |-
12791094 .reset_sortable_attributes()
12801095 .await
12811096 .unwrap();
1282- search_parameter_guide_sort_1 : |-
1283- let results: SearchResults<Books> = client
1284- .index("books")
1285- .search()
1286- .with_query("science fiction")
1287- .with_sort(&["price:asc"])
1288- .execute()
1289- .await
1290- .unwrap();
12911097geosearch_guide_filter_settings_1 : |-
12921098 let task: TaskInfo = client
12931099 .index("restaurants")
@@ -1444,14 +1250,6 @@ update_experimental_features_1: |-
14441250 .update()
14451251 .await
14461252 .unwrap();
1447- search_parameter_guide_facet_stats_1 : |-
1448- let books = client.index("movie_ratings");
1449- let results: SearchResults<Book> = SearchQuery::new(&books)
1450- .with_query("Batman")
1451- .with_facets(Selectors::Some(&["genres", "rating"))
1452- .execute()
1453- .await
1454- .unwrap();
14551253get_proximity_precision_settings_1 : |-
14561254 let proximity_precision: String = client
14571255 .index("books")
@@ -1556,15 +1354,6 @@ create_snapshot_1: |-
15561354 .create_snapshot()
15571355 .await
15581356 .unwrap();
1559- search_parameter_reference_distinct_1 : |-
1560- let res = client
1561- .index("INDEX_NAME")
1562- .search()
1563- .with_query("QUERY TERMS")
1564- .with_distinct("ATTRIBUTE_A")
1565- .execute()
1566- .await
1567- .unwrap();
15681357distinct_attribute_guide_filterable_1 : |-
15691358 let task: TaskInfo = client
15701359 .index("products")
@@ -1582,24 +1371,6 @@ distinct_attribute_guide_distinct_parameter_1: |-
15821371 .execute()
15831372 .await
15841373 .unwrap();
1585- search_parameter_reference_ranking_score_threshold_1 : |-
1586- let res = client
1587- .index("INDEX_NAME")
1588- .search()
1589- .with_query("badman")
1590- .with_ranking_score_threshold(0.2)
1591- .execute()
1592- .await
1593- .unwrap();
1594- search_parameter_reference_locales_1 : |-
1595- let res = client
1596- .index("books")
1597- .search()
1598- .with_query("進撃の巨人")
1599- .with_locales(&["jpn"])
1600- .execute()
1601- .await
1602- .unwrap();
16031374get_localized_attribute_settings_1 : |-
16041375 let localized_attributes: Option<Vec<LocalizedAttributes>> = client
16051376 .index("books")
@@ -1659,26 +1430,6 @@ index_settings_tutorial_api_put_setting_1: |-
16591430 .unwrap();
16601431index_settings_tutorial_api_task_1 : |-
16611432 let task_status = index.get_task(&task).await.unwrap();
1662- negative_search_1 : |-
1663- let results = index.search()
1664- .with_query("-escape")
1665- .execute()
1666- .await
1667- .unwrap();
1668- negative_search_2 : |-
1669- let results = index.search()
1670- .with_query("-\"escape room\"")
1671- .execute()
1672- .await
1673- .unwrap();
1674- search_parameter_guide_hybrid_1 : |-
1675- let results = index
1676- .search()
1677- .with_query("kitchen utensils")
1678- .with_hybrid("EMBEDDER_NAME", 0.9)
1679- .execute()
1680- .await
1681- .unwrap();
16821433search_parameter_guide_vector_1 : |-
16831434 let results = index
16841435 .search()
@@ -1687,15 +1438,6 @@ search_parameter_guide_vector_1: |-
16871438 .execute()
16881439 .await
16891440 .unwrap();
1690- search_parameter_reference_retrieve_vectors_1 : |-
1691- let results = index
1692- .search()
1693- .with_query("kitchen utensils")
1694- .with_retrieve_vectors(true)
1695- .with_hybrid("EMBEDDER_NAME", 0.5)
1696- .execute()
1697- .await
1698- .unwrap();
16991441update_embedders_1 : |-
17001442 let embedders = HashMap::from([(
17011443 String::from("default"),
0 commit comments