mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Plug the faceting.max_values_per_facet setting
This commit is contained in:
parent
5450b5ced3
commit
b96399d24b
6 changed files with 45 additions and 20 deletions
|
@ -285,7 +285,7 @@ make_setting_route!(
|
|||
make_setting_route!(
|
||||
"/faceting",
|
||||
patch,
|
||||
meilisearch_lib::index::updates::TypoSettings,
|
||||
meilisearch_lib::index::updates::FacetingSettings,
|
||||
faceting,
|
||||
"faceting",
|
||||
analytics,
|
||||
|
@ -296,13 +296,7 @@ make_setting_route!(
|
|||
"Faceting Updated".to_string(),
|
||||
json!({
|
||||
"faceting": {
|
||||
"max_values_per_facet": setting
|
||||
.as_ref()
|
||||
.and_then(|s| s.max_values_per_facet
|
||||
.as_ref()
|
||||
.set()
|
||||
.map(|s| s.one_typo.set()))
|
||||
.flatten(),
|
||||
"max_values_per_facet": setting.as_ref().and_then(|s| s.max_values_per_facet.set()),
|
||||
},
|
||||
}),
|
||||
Some(req),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue