You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2011/01/20 10:22:37 UTC

svn commit: r1061172 - /lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java

Author: simonw
Date: Thu Jan 20 09:22:37 2011
New Revision: 1061172

URL: http://svn.apache.org/viewvc?rev=1061172&view=rev
Log:
LUCENE-2723: LineCountReader did not reset position delta when moving to next doc

Modified:
    lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java

Modified: lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java?rev=1061172&r1=1061171&r2=1061172&view=diff
==============================================================================
--- lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java (original)
+++ lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java Thu Jan 20 09:22:37 2011
@@ -527,6 +527,8 @@ class SimpleTextFieldsReader extends Fie
             final int value = Integer.parseInt(new String(scratch.bytes, scratch.offset+prefix.length, scratch.length-prefix.length));            
             buffer[upto++] = value - lastValue;
             lastValue = value;
+          } else if (scratch.startsWith(DOC)) { 
+            lastValue = 0;
           }
         }
         return limit = upto;