From eed9176e0cfab2d3025e112a00779785e1b693ff Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 26 Jun 2023 13:10:36 +0200 Subject: [PATCH] Also reset the sortFacetValuesBy when reseting the faceting settings --- meilisearch-types/src/settings.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meilisearch-types/src/settings.rs b/meilisearch-types/src/settings.rs index fa47a3dd7..14a337678 100644 --- a/meilisearch-types/src/settings.rs +++ b/meilisearch-types/src/settings.rs @@ -417,7 +417,10 @@ pub fn apply_settings_to_builder( Setting::NotSet => (), } } - Setting::Reset => builder.reset_max_values_per_facet(), + Setting::Reset => { + builder.reset_max_values_per_facet(); + builder.reset_sort_facet_values_by(); + } Setting::NotSet => (), }