From 91089db444098a1d26d9cd2529fc0f588553db5b Mon Sep 17 00:00:00 2001 From: tamo Date: Mon, 22 Mar 2021 18:41:33 +0100 Subject: [PATCH] add the exhaustive nb hits to be ISO, currently it's always set to false --- meilisearch-http/src/index/search.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index a0de632be..9b7739456 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -41,6 +41,7 @@ pub struct SearchQuery { pub struct SearchResult { pub hits: Vec>, 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 limit: usize, pub offset: usize, @@ -107,6 +108,7 @@ impl Index { }; let result = SearchResult { + exhaustive_nb_hits: false, // not implemented, we use it to be ISO hits: documents, nb_hits, query: query.q.clone().unwrap_or_default(),