From ee856a7a46be0ad3bfa40247956848d1dcf6f079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 7 Dec 2021 17:36:45 +0100 Subject: [PATCH] Limit the max filter depth to 2000 --- milli/src/search/facet/filter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/search/facet/filter.rs b/milli/src/search/facet/filter.rs index 2c78816fb..9d9d16de5 100644 --- a/milli/src/search/facet/filter.rs +++ b/milli/src/search/facet/filter.rs @@ -16,7 +16,7 @@ use crate::heed_codec::facet::{ use crate::{distance_between_two_points, CboRoaringBitmapCodec, FieldId, Index, Result}; /// The maximum number of filters the filter AST can process. -const MAX_FILTER_DEPTH: usize = 1000; +const MAX_FILTER_DEPTH: usize = 2000; #[derive(Debug, Clone, PartialEq, Eq)] pub struct Filter<'a> {