Apache Lucene open-source search software
adjust .tvf file format to match actual implementation
Erik Hatcher72efb4afbf25
diff --git a/docs/fileformats.html b/docs/fileformats.htmlindex 35834a5b20a..1c72a7b2b69 100644--- a/docs/fileformats.html+++ b/docs/fileformats.html@@ -1667,9 +1667,17 @@ limitations under the License.<p>NumTerms --> VInt</p><p>NumDistinct --> VInt -- Future Use</p><p>TermFreqs --> <TermText, TermFreq><sup>NumTerms</sup></p>- <p>TermText --> String</p>+ <p>TermText --> <PrefixLength, Suffix></p>+ <p>PrefixLength --> VInt</p>+ <p>Suffix --> String</p><p>TermFreq --> VInt</p>- <p />+ <p>Term+ text prefixes are shared. The PrefixLength is the number of initial+ characters from the previous term which must be pre-pended to a+ term's suffix in order to form the term's text. Thus, if the+ previous term's text was "bone" and the term is "boy",+ the PrefixLength is two and the suffix is "y".+ </p></li></ol></blockquote>diff --git a/xdocs/fileformats.xml b/xdocs/fileformats.xmlindex 25608a3fd00..f2023290b70 100644--- a/xdocs/fileformats.xml+++ b/xdocs/fileformats.xml@@ -1207,9 +1207,17 @@<p>NumTerms --> VInt</p><p>NumDistinct --> VInt -- Future Use</p><p>TermFreqs --> <TermText, TermFreq><sup>NumTerms</sup></p>- <p>TermText --> String</p>+ <p>TermText --> <PrefixLength, Suffix></p>+ <p>PrefixLength --> VInt</p>+ <p>Suffix --> String</p><p>TermFreq --> VInt</p>- <p></p>+ <p>Term+ text prefixes are shared. The PrefixLength is the number of initial+ characters from the previous term which must be pre-pended to a+ term's suffix in order to form the term's text. Thus, if the+ previous term's text was "bone" and the term is "boy",+ the PrefixLength is two and the suffix is "y".+ </p></li></ol></subsection>