From 91089db444098a1d26d9cd2529fc0f588553db5b Mon Sep 17 00:00:00 2001 From: tamo Date: Mon, 22 Mar 2021 18:41:33 +0100 Subject: [PATCH 1/4] 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(), From 46d7cedb1890786e1be7a5d22ea7b297d28becaf Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 23 Mar 2021 10:46:59 +0100 Subject: [PATCH 2/4] Update meilisearch-http/src/index/search.rs Co-authored-by: marin --- meilisearch-http/src/index/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 9b7739456..12c05919e 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -41,7 +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 exhaustive_nb_hits: bool, // currently this field only exist to be ISO and is always false pub query: String, pub limit: usize, pub offset: usize, From cc81aca6a47a7cc299bff5c4733e4c9c534ef46f Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 23 Mar 2021 10:47:19 +0100 Subject: [PATCH 3/4] Update meilisearch-http/src/index/search.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clémentine Urquizar --- meilisearch-http/src/index/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 12c05919e..670014cdf 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -108,7 +108,7 @@ impl Index { }; let result = SearchResult { - exhaustive_nb_hits: false, // not implemented, we use it to be ISO + exhaustive_nb_hits: false, // not implemented yet hits: documents, nb_hits, query: query.q.clone().unwrap_or_default(), From 127e94486610d1143bd7e71ab01c94a3380451e8 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 23 Mar 2021 19:13:22 +0100 Subject: [PATCH 4/4] Update meilisearch-http/src/index/search.rs Co-authored-by: marin --- meilisearch-http/src/index/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 670014cdf..2002266a1 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -41,7 +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 false + pub exhaustive_nb_hits: bool, pub query: String, pub limit: usize, pub offset: usize,