You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/11/09 18:50:25 UTC

svn commit: r1407561 - /lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java

Author: rmuir
Date: Fri Nov  9 17:50:25 2012
New Revision: 1407561

URL: http://svn.apache.org/viewvc?rev=1407561&view=rev
Log:
file format bug

Modified:
    lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java

Modified: lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java?rev=1407561&r1=1407560&r2=1407561&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java (original)
+++ lucene/dev/branches/lucene4547/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextSimpleDocValuesFormat.java Fri Nov  9 17:50:25 2012
@@ -84,7 +84,7 @@ public class SimpleTextSimpleDocValuesFo
    *  baz[space][space][space][space][space]
    *  ...
    *  </pre>
-   *  so a document's value can be retrieved by seeking to startOffset + (9+2*pattern.length)*docid
+   *  so a document's value can be retrieved by seeking to startOffset + (9+pattern.length+maxlength)*docid
    *  the extra 9 is 2 newlines, plus "length " itself.
    *   
    *  the reader can just scan this file when it opens, skipping over the data blocks