Roll back facetsDistribution

This commit is contained in:
Clémentine Urquizar 2021-06-22 20:07:23 +02:00
parent d6b53c5e7a
commit 6d24a4744f
No known key found for this signature in database
GPG key ID: D8E7CC7422E77E1A
2 changed files with 11 additions and 11 deletions

View file

@ -28,7 +28,7 @@ pub struct SearchQueryGet {
filter: Option<String>,
#[serde(default = "Default::default")]
matches: bool,
facet_distributions: Option<String>,
facets_distribution: Option<String>,
}
impl From<SearchQueryGet> for SearchQuery {
@ -45,8 +45,8 @@ impl From<SearchQueryGet> for SearchQuery {
.attributes_to_highlight
.map(|attrs| attrs.split(',').map(String::from).collect::<HashSet<_>>());
let facet_distributions = other
.facet_distributions
let facets_distribution = other
.facets_distribution
.map(|attrs| attrs.split(',').map(String::from).collect::<Vec<_>>());
let filter = match other.filter {
@ -67,7 +67,7 @@ impl From<SearchQueryGet> for SearchQuery {
attributes_to_highlight,
filter,
matches: other.matches,
facet_distributions,
facets_distribution,
}
}
}