Skip to content

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.html
index 35834a5b20a..1c72a7b2b69 100644
--- a/docs/fileformats.html
+++ b/docs/fileformats.html
@@ -1667,9 +1667,17 @@ limitations under the License.
<p>NumTerms --&gt; VInt</p>
<p>NumDistinct --&gt; VInt -- Future Use</p>
<p>TermFreqs --&gt; &lt;TermText, TermFreq&gt;<sup>NumTerms</sup></p>
- <p>TermText --&gt; String</p>
+ <p>TermText --&gt; &lt;PrefixLength, Suffix&gt;</p>
+ <p>PrefixLength --&gt; VInt</p>
+ <p>Suffix --&gt; String</p>
<p>TermFreq --&gt; 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.xml
index 25608a3fd00..f2023290b70 100644
--- a/xdocs/fileformats.xml
+++ b/xdocs/fileformats.xml
@@ -1207,9 +1207,17 @@
<p>NumTerms --&gt; VInt</p>
<p>NumDistinct --&gt; VInt -- Future Use</p>
<p>TermFreqs --&gt; &lt;TermText, TermFreq&gt;<sup>NumTerms</sup></p>
- <p>TermText --&gt; String</p>
+ <p>TermText --&gt; &lt;PrefixLength, Suffix&gt;</p>
+ <p>PrefixLength --&gt; VInt</p>
+ <p>Suffix --&gt; String</p>
<p>TermFreq --&gt; 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>