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
This commit is contained in:
Michael McCandless 2009-10-13 23:51:38 +00:00
parent 6b22b22beb
commit c4aca4bf8e
1 changed files with 1 additions and 1 deletions

View File

@ -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.