lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r824977 - /lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java
Date Tue, 13 Oct 2009 23:51:38 GMT
Author: mikemccand
Date: Tue Oct 13 23:51:38 2009
New Revision: 824977

URL: http://svn.apache.org/viewvc?rev=824977&view=rev
Log:
LUCENE-1974: fix nasty scoring bug causing BooleanScorer to miss docs

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java?rev=824977&r1=824976&r2=824977&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java Tue Oct 13 23:51:38 2009
@@ -87,7 +87,7 @@
       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.



Mime
View raw message