File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1696,7 +1696,7 @@ impl<Http: HttpClient> Index<Http> {
1696
1696
/// # let movies = client.index("similar_query");
1697
1697
/// #
1698
1698
/// let query = SimilarQuery::new(&movies, "1", "default");
1699
- /// let results = movies.similar_query ::<Movie>(&query).await.unwrap();
1699
+ /// let results = movies.execute_similar_query ::<Movie>(&query).await.unwrap();
1700
1700
///
1701
1701
/// assert!(results.hits.len() > 0);
1702
1702
/// # movies.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
@@ -1716,7 +1716,7 @@ impl<Http: HttpClient> Index<Http> {
1716
1716
. await
1717
1717
}
1718
1718
1719
- pub fn similar_search < ' a , T : ' static + DeserializeOwned + Send + Sync > (
1719
+ pub fn similar_search < ' a > (
1720
1720
& ' a self ,
1721
1721
document_id : & ' a str ,
1722
1722
index_name : & ' a str ,
You can’t perform that action at this time.
0 commit comments