lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gol...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search TermScorer.java
Date Sun, 25 Jul 2004 15:10:36 GMT
goller      2004/07/25 08:10:36

  Modified:    src/java/org/apache/lucene/search TermScorer.java
  Log:
  simplification of code
  
  Revision  Changes    Path
  1.10      +1 -1      jakarta-lucene/src/java/org/apache/lucene/search/TermScorer.java
  
  Index: TermScorer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/TermScorer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TermScorer.java	29 Mar 2004 22:48:04 -0000	1.9
  +++ TermScorer.java	25 Jul 2004 15:10:36 -0000	1.10
  @@ -78,7 +78,7 @@
     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;
         }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message