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> {
16961696 /// # let movies = client.index("similar_query");
16971697 /// #
16981698 /// 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();
17001700 ///
17011701 /// assert!(results.hits.len() > 0);
17021702 /// # movies.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
@@ -1716,7 +1716,7 @@ impl<Http: HttpClient> Index<Http> {
17161716 . await
17171717 }
17181718
1719- pub fn similar_search < ' a , T : ' static + DeserializeOwned + Send + Sync > (
1719+ pub fn similar_search < ' a > (
17201720 & ' a self ,
17211721 document_id : & ' a str ,
17221722 index_name : & ' a str ,
You can’t perform that action at this time.
0 commit comments