diff --git a/milli/src/search/criteria/proximity.rs b/milli/src/search/criteria/proximity.rs
index 2a46cf5d0..aab46a6a2 100644
--- a/milli/src/search/criteria/proximity.rs
+++ b/milli/src/search/criteria/proximity.rs
@@ -2,6 +2,7 @@ use std::collections::HashMap;
use std::mem::take;
use roaring::RoaringBitmap;
+use log::debug;
use crate::search::query_tree::{maximum_proximity, Operation, Query};
use super::{Candidates, Criterion, CriterionResult, Context, query_docids, query_pair_proximity_docids};
@@ -55,6 +56,12 @@ impl<'t> Criterion for Proximity<'t> {
fn next(&mut self) -> anyhow::Result