file format bug

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1407561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-11-09 17:50:25 +00:00
parent 6fd8155fb2
commit 2b2ac70f8a
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class SimpleTextSimpleDocValuesFormat extends SimpleDocValuesFormat {
* 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