diff --git a/milli/src/search/new/ranking_rules.rs b/milli/src/search/new/ranking_rules.rs index 1f5f4b366..9dc6018e6 100644 --- a/milli/src/search/new/ranking_rules.rs +++ b/milli/src/search/new/ranking_rules.rs @@ -206,7 +206,9 @@ pub fn bucket_sort<'ctx, Q: RankingRuleQueryTrait>( &next_bucket.candidates, ); - assert!(ranking_rule_universes[cur_ranking_rule_index].is_superset(&next_bucket.candidates)); + debug_assert!( + ranking_rule_universes[cur_ranking_rule_index].is_superset(&next_bucket.candidates) + ); ranking_rule_universes[cur_ranking_rule_index] -= &next_bucket.candidates; if cur_ranking_rule_index == ranking_rules_len - 1