mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-02 01:55:03 +08:00
Merge #115
115: Add the exhaustiveNbHits in search response body (returns always false) r=curquiza a=irevoire closes #103 Co-authored-by: tamo <irevoire@protonmail.ch> Co-authored-by: Irevoire <irevoire@protonmail.ch>
This commit is contained in:
commit
fe87477238
@ -41,6 +41,7 @@ pub struct SearchQuery {
|
|||||||
pub struct SearchResult {
|
pub struct SearchResult {
|
||||||
pub hits: Vec<Map<String, Value>>,
|
pub hits: Vec<Map<String, Value>>,
|
||||||
pub nb_hits: u64,
|
pub nb_hits: u64,
|
||||||
|
pub exhaustive_nb_hits: bool,
|
||||||
pub query: String,
|
pub query: String,
|
||||||
pub limit: usize,
|
pub limit: usize,
|
||||||
pub offset: usize,
|
pub offset: usize,
|
||||||
@ -107,6 +108,7 @@ impl Index {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let result = SearchResult {
|
let result = SearchResult {
|
||||||
|
exhaustive_nb_hits: false, // not implemented yet
|
||||||
hits: documents,
|
hits: documents,
|
||||||
nb_hits,
|
nb_hits,
|
||||||
query: query.q.clone().unwrap_or_default(),
|
query: query.q.clone().unwrap_or_default(),
|
||||||
|
Loading…
Reference in New Issue
Block a user