You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2025/09/08 23:38:08 UTC

(lucene) branch main updated: Add comment on BooleanScorerSupplier#excl. (#15130)

This is an automated email from the ASF dual-hosted git repository.

jainankitk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new ce42d823dd5 Add comment on BooleanScorerSupplier#excl. (#15130)
ce42d823dd5 is described below

commit ce42d823dd588037d59cdf95a95d2c7ca4592369
Author: zhouhui <vs...@163.com>
AuthorDate: Tue Sep 9 07:38:02 2025 +0800

    Add comment on BooleanScorerSupplier#excl. (#15130)
---
 lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java b/lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java
index ff49d339159..d8c28fe32bd 100644
--- a/lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java
+++ b/lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java
@@ -511,6 +511,7 @@ final class BooleanScorerSupplier extends ScorerSupplier {
     }
   }
 
+  /** Create a new scorer for the must match scorer and exclude clauses. */
   private Scorer excl(Scorer main, Collection<ScorerSupplier> prohibited, long leadCost)
       throws IOException {
     if (prohibited.isEmpty()) {