fix numm facets in response

This commit is contained in:
mpostma 2020-05-26 16:27:09 +02:00
parent 0883e345d0
commit fac35e34e9

View File

@ -333,6 +333,7 @@ pub struct SearchResult {
pub exhaustive_nb_hits: bool, pub exhaustive_nb_hits: bool,
pub processing_time_ms: usize, pub processing_time_ms: usize,
pub query: String, pub query: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub facets: Option<HashMap<String, HashMap<String, usize>>>, pub facets: Option<HashMap<String, HashMap<String, usize>>>,
} }