Merge pull request #714 from MarinPostma/fix-null-facet-response

fix null facets in response
This commit is contained in:
Clément Renault 2020-05-26 17:02:23 +02:00 committed by GitHub
commit 166a301c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<HashMap<String, HashMap<String, usize>>>,
}