File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -1545,6 +1545,8 @@ tenant_token_guide_search_sdk_1: |-
1545
1545
.unwrap();
1546
1546
multi_search_1 : |-
1547
1547
let movie = client.index("movie");
1548
+ let movie_ratings = client.index("movie_ratings");
1549
+
1548
1550
let search_query_1 = SearchQuery::new(&movie)
1549
1551
.with_query("pooh")
1550
1552
.with_limit(5)
@@ -1553,26 +1555,18 @@ multi_search_1: |-
1553
1555
.with_query("nemo")
1554
1556
.with_limit(5)
1555
1557
.build();
1558
+ let search_query_3 = SearchQuery::new(&movie_ratings)
1559
+ .with_query("us")
1560
+ .build();
1556
1561
1557
- let movie_response = client
1562
+ let response = client
1558
1563
.multi_search()
1559
1564
.with_search_query(search_query_1)
1560
1565
.with_search_query(search_query_2)
1561
- .execute::<Movie>()
1566
+ .with_search_query(search_query_3)
1567
+ .execute::<Document>()
1562
1568
.await
1563
1569
.unwrap();
1564
-
1565
- let movie_ratings = client.index("movie_ratings");
1566
- let search_query_3 = SearchQuery::new(&movie_ratings)
1567
- .with_query("us")
1568
- .build();
1569
-
1570
- let movie_ratings_response = client
1571
- .multi_search()
1572
- .with_search_query(search_query_3)
1573
- .execute::<MovieRatings>()
1574
- .await
1575
- .unwrap();
1576
1570
get_experimental_features_1 : |-
1577
1571
let client = Client::new("http://localhost:7700", Some("apiKey"));
1578
1572
let features = ExperimentalFeatures::new(&client);
You can’t perform that action at this time.
0 commit comments