Limit the max filter depth to 2000

This commit is contained in:
Clément Renault 2021-12-07 17:36:45 +01:00
parent 32bd9f091f
commit ee856a7a46
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -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> {