lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r824979 - /lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java
Date Wed, 14 Oct 2009 00:09:23 GMT
Author: mikemccand
Date: Wed Oct 14 00:09:23 2009
New Revision: 824979

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

Modified:
    lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java

Modified: lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java?rev=824979&r1=824978&r2=824979&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java (original)
+++ lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/search/Scorer.java Wed Oct
14 00:09:23 2009
@@ -110,7 +110,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