diff --git a/src/query/boolean_query/block_wand.rs b/src/query/boolean_query/block_wand.rs index 6b2f2d6e3..fce4b3fe2 100644 --- a/src/query/boolean_query/block_wand.rs +++ b/src/query/boolean_query/block_wand.rs @@ -228,7 +228,7 @@ pub fn block_wand_single_scorer( loop { // We position the scorer on a block that can reach // the threshold. - while scorer.block_max_score() < threshold { + while scorer.block_max_score() <= threshold { let last_doc_in_block = scorer.last_doc_in_block(); if last_doc_in_block == TERMINATED { return;