From fac35e34e95565808891640f35ba59525116091c Mon Sep 17 00:00:00 2001 From: mpostma Date: Tue, 26 May 2020 16:27:09 +0200 Subject: [PATCH] fix numm facets in response --- meilisearch-http/src/helpers/meilisearch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch-http/src/helpers/meilisearch.rs b/meilisearch-http/src/helpers/meilisearch.rs index ccd6a1977..3ef83ba1e 100644 --- a/meilisearch-http/src/helpers/meilisearch.rs +++ b/meilisearch-http/src/helpers/meilisearch.rs @@ -333,6 +333,7 @@ pub struct SearchResult { pub exhaustive_nb_hits: bool, pub processing_time_ms: usize, pub query: String, + #[serde(skip_serializing_if = "Option::is_none")] pub facets: Option>>, }