mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
add the exhaustive nb hits to be ISO, currently it's always set to false
This commit is contained in:
parent
1640d9ea91
commit
91089db444
@ -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, // currently this field only exist to be ISO and is always alse
|
||||||
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, we use it to be ISO
|
||||||
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