From a05074e67551f8e8a2bc9a9f12d7c8bca3b29c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 26 Apr 2023 17:19:02 +0200 Subject: [PATCH] Fix the max number of facets to be returned to 100 --- milli/src/search/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/search/mod.rs b/milli/src/search/mod.rs index 0f71fb172..211e6a0e8 100644 --- a/milli/src/search/mod.rs +++ b/milli/src/search/mod.rs @@ -22,7 +22,7 @@ static LEVDIST1: Lazy = Lazy::new(|| LevBuilder::new(1, true)); static LEVDIST2: Lazy = Lazy::new(|| LevBuilder::new(2, true)); /// The maximum number of facets returned by the facet search route. -const MAX_NUMBER_OF_FACETS: usize = 1000; +const MAX_NUMBER_OF_FACETS: usize = 100; pub mod facet; mod fst_utils;