mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Roll back facetsDistribution
This commit is contained in:
parent
d6b53c5e7a
commit
6d24a4744f
2 changed files with 11 additions and 11 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue