Skip to content

Commit c1c8dce

Browse files
committed
Fix doc tests
1 parent 8052a79 commit c1c8dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/indexes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)