From c4aca4bf8e4d6288a1a24b3b799406a323071c88 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 13 Oct 2009 23:51:38 +0000 Subject: [PATCH] LUCENE-1974: fix nasty scoring bug causing BooleanScorer to miss docs git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@824977 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/Scorer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/search/Scorer.java b/src/java/org/apache/lucene/search/Scorer.java index 207ee3b7098..d84342dc7a8 100644 --- a/src/java/org/apache/lucene/search/Scorer.java +++ b/src/java/org/apache/lucene/search/Scorer.java @@ -87,7 +87,7 @@ public abstract class Scorer extends DocIdSetIterator { collector.collect(doc); doc = nextDoc(); } - return doc == NO_MORE_DOCS; + return doc != NO_MORE_DOCS; } /** Returns the score of the current document matching the query.