mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
Merge pull request #714 from MarinPostma/fix-null-facet-response
fix null facets in response
This commit is contained in:
commit
166a301c7f
@ -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>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user