Skip to content

Commit 11f2a1b

Browse files
committed
Update doc
1 parent 0a90ba3 commit 11f2a1b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/similar.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ use either::Either;
88
use serde::{de::DeserializeOwned, Deserialize, Serialize};
99
use serde_json::{Map, Value};
1010

11-
/// A single result.
1211
#[derive(Deserialize, Debug, Clone)]
1312
pub struct SimilarResult<T> {
14-
/// The full result.
1513
#[serde(flatten)]
1614
pub result: T,
17-
/// The relevancy score of the match.
1815
#[serde(rename = "_rankingScore")]
1916
pub ranking_score: Option<f64>,
2017
#[serde(rename = "_rankingScoreDetails")]
@@ -23,19 +20,18 @@ pub struct SimilarResult<T> {
2320

2421
#[derive(Deserialize, Debug, Clone)]
2522
#[serde(rename_all = "camelCase")]
26-
/// A struct containing search results and other information about the search.
2723
pub struct SimilarResults<T> {
28-
/// Results of the query.
24+
/// Results of the query
2925
pub hits: Vec<SimilarResult<T>>,
30-
/// Number of documents skipped.
26+
/// Number of documents skipped
3127
pub offset: Option<usize>,
32-
/// Number of results returned.
28+
/// Number of results returned
3329
pub limit: Option<usize>,
34-
/// Estimated total number of matches.
30+
/// Estimated total number of matches
3531
pub estimated_total_hits: Option<usize>,
36-
/// Processing time of the query.
32+
/// Processing time of the query
3733
pub processing_time_ms: usize,
38-
/// Search Doc ID
34+
/// Identifier of the target document
3935
pub id: String,
4036
}
4137

0 commit comments

Comments
 (0)