mirror of https://github.com/apache/lucene.git
simplification of code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c96baa13a
commit
b4f4634fd6
|
@ -78,7 +78,7 @@ final class TermScorer extends Scorer {
|
|||
public boolean skipTo(int target) throws IOException {
|
||||
// first scan in cache
|
||||
for (pointer++; pointer < pointerMax; pointer++) {
|
||||
if (!(target > docs[pointer])) {
|
||||
if (docs[pointer] >= target) {
|
||||
doc = docs[pointer];
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue