mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-02 09:35:45 +01:00
Limit the max filter depth to 2000
This commit is contained in:
parent
32bd9f091f
commit
ee856a7a46
@ -16,7 +16,7 @@ use crate::heed_codec::facet::{
|
|||||||
use crate::{distance_between_two_points, CboRoaringBitmapCodec, FieldId, Index, Result};
|
use crate::{distance_between_two_points, CboRoaringBitmapCodec, FieldId, Index, Result};
|
||||||
|
|
||||||
/// The maximum number of filters the filter AST can process.
|
/// 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)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Filter<'a> {
|
pub struct Filter<'a> {
|
||||||
|
Loading…
Reference in New Issue
Block a user