mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
adds exhaustive number hits to search result
This commit is contained in:
parent
a6ac902bf4
commit
6e9d7f94d4
1 changed files with 4 additions and 0 deletions
|
@ -282,6 +282,8 @@ impl<'a> SearchBuilder<'a> {
|
||||||
hits,
|
hits,
|
||||||
offset: self.offset,
|
offset: self.offset,
|
||||||
limit: self.limit,
|
limit: self.limit,
|
||||||
|
nb_hits: 0,
|
||||||
|
exhaustive_nb_hits: false,
|
||||||
processing_time_ms: time_ms,
|
processing_time_ms: time_ms,
|
||||||
query: self.query.to_string(),
|
query: self.query.to_string(),
|
||||||
};
|
};
|
||||||
|
@ -364,6 +366,8 @@ pub struct SearchResult {
|
||||||
pub hits: Vec<SearchHit>,
|
pub hits: Vec<SearchHit>,
|
||||||
pub offset: usize,
|
pub offset: usize,
|
||||||
pub limit: usize,
|
pub limit: usize,
|
||||||
|
pub nb_hits: usize,
|
||||||
|
pub exhaustive_nb_hits: bool,
|
||||||
pub processing_time_ms: usize,
|
pub processing_time_ms: usize,
|
||||||
pub query: String,
|
pub query: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue