mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Add specific routes for the pagination and faceting settings
This commit is contained in:
parent
49d509936b
commit
22e1ac969a
@ -349,7 +349,9 @@ generate_configure!(
|
|||||||
stop_words,
|
stop_words,
|
||||||
synonyms,
|
synonyms,
|
||||||
ranking_rules,
|
ranking_rules,
|
||||||
typo_tolerance
|
typo_tolerance,
|
||||||
|
pagination,
|
||||||
|
faceting
|
||||||
);
|
);
|
||||||
|
|
||||||
pub async fn update_all(
|
pub async fn update_all(
|
||||||
@ -409,6 +411,18 @@ pub async fn update_all(
|
|||||||
.map(|s| s.two_typos.set()))
|
.map(|s| s.two_typos.set()))
|
||||||
.flatten(),
|
.flatten(),
|
||||||
},
|
},
|
||||||
|
"faceting": {
|
||||||
|
"max_values_per_facet": settings.faceting
|
||||||
|
.as_ref()
|
||||||
|
.set()
|
||||||
|
.and_then(|s| s.max_values_per_facet.as_ref().set()),
|
||||||
|
},
|
||||||
|
"pagination": {
|
||||||
|
"limited_to": settings.pagination
|
||||||
|
.as_ref()
|
||||||
|
.set()
|
||||||
|
.and_then(|s| s.limited_to.as_ref().set()),
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
Some(&req),
|
Some(&req),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user