@@ -78,32 +78,21 @@ pub struct SimilarQuery<'a, Http: HttpClient> {
7878 #[ serde( skip_serializing) ]
7979 index : & ' a Index < Http > ,
8080
81- /// Document id
81+ /// Identifier of the target document
8282 pub id : & ' a str ,
8383
84- /// embedder name
84+ /// Embedder to use when computing recommendations
8585 pub embedder : & ' a str ,
8686
87- /// The number of documents to skip.
88- /// If the value of the parameter `offset` is `n`, the `n` first documents (ordered by relevance) will not be returned.
89- /// This is helpful for pagination.
90- ///
91- /// Example: If you want to skip the first document, set offset to `1`.
87+ /// Number of documents to skip
9288 #[ serde( skip_serializing_if = "Option::is_none" ) ]
9389 pub offset : Option < usize > ,
9490
95- /// The maximum number of documents returned.
96- ///
97- /// If the value of the parameter `limit` is `n`, there will never be more than `n` documents in the response.
98- /// This is helpful for pagination.
99- ///
100- /// Example: If you don't want to get more than two documents, set limit to `2`.
101- ///
102- /// **Default: `20`**
91+ /// Maximum number of documents returned
10392 #[ serde( skip_serializing_if = "Option::is_none" ) ]
10493 pub limit : Option < usize > ,
10594
106- /// Filter applied to documents.
95+ /// Filter queries by an attribute’s value
10796 ///
10897 /// Read the [dedicated guide](https://www.meilisearch.com/docs/learn/filtering_and_sorting) to learn the syntax.
10998 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -118,22 +107,26 @@ pub struct SimilarQuery<'a, Http: HttpClient> {
118107 #[ serde( serialize_with = "serialize_with_wildcard" ) ]
119108 pub attributes_to_retrieve : Option < Selectors < & ' a [ & ' a str ] > > ,
120109
121- /// Defines whether to show the relevancy score of the match.
110+ /// Defines whether to display the global ranking score of a document
122111 ///
123112 /// **Default: `false`**
124113 #[ serde( skip_serializing_if = "Option::is_none" ) ]
125114 pub show_ranking_score : Option < bool > ,
126115
127- ///Adds a detailed global ranking score field to each document.
116+ /// Defines whether to display the detailed ranking score information
128117 ///
129118 /// **Default: `false`**
130119 #[ serde( skip_serializing_if = "Option::is_none" ) ]
131120 pub show_ranking_score_details : Option < bool > ,
132121
133- ///Excludes results below the specified ranking score.
122+ /// Defines whether to exclude results with low ranking scores
123+ ///
124+ /// **Default: `None`**
134125 #[ serde( skip_serializing_if = "Option::is_none" ) ]
135126 pub ranking_score_threshold : Option < f64 > ,
136127
128+ /// Defines whether to return document vector data
129+ ///
137130 /// **Default: `false`**
138131 #[ serde( skip_serializing_if = "Option::is_none" ) ]
139132 pub retrieve_vectors : Option < bool > ,
0 commit comments