Skip to content

Apache Lucene open-source search software

bring segments file documentation back in sync with code changes

Erik Hatcherfd370a16776d
diff --git a/docs/fileformats.html b/docs/fileformats.html
index 1c72a7b2b69..773da8359af 100644
--- a/docs/fileformats.html
+++ b/docs/fileformats.html
@@ -1096,18 +1096,27 @@ limitations under the License.
segment.
</p>
<p>
- Segments --&gt; SegCount, &lt;SegName, SegSize&gt;<sup>SegCount</sup>
+ Segments --&gt; Format, Version, SegCount, &lt;SegName, SegSize&gt;<sup>SegCount</sup>
</p>
<p>
- SegCount, SegSize --&gt; UInt32
+ Format, SegCount, SegSize --&gt; UInt32
+ </p>
+ <p>
+ Version --&gt; UInt64
</p>
<p>
SegName --&gt; String
+ </p>
+ <p>
+ Format is -1 in Lucene 1.4.
+ </p>
+ <p>
+ Version counts how often the index has been
+ changed by adding or deleting documents.
</p>
<p>
SegName is the name of the segment, and is used as the file name prefix
- for
- all of the files that compose the segment's index.
+ for all of the files that compose the segment's index.
</p>
<p>
SegSize is the number of documents contained in the segment index.
@@ -1367,7 +1376,7 @@ limitations under the License.
term's text.
</p>
<p>TIVersion names the version of the format
- of this file and is -1 in Lucene 1.4.
+ of this file and is -2 in Lucene 1.4.
</p>
<p>Term
text prefixes are shared. The PrefixLength is the number of initial
diff --git a/xdocs/fileformats.xml b/xdocs/fileformats.xml
index f2023290b70..6cf3fadf87e 100644
--- a/xdocs/fileformats.xml
+++ b/xdocs/fileformats.xml
@@ -694,21 +694,33 @@
</p>
<p>
- Segments --&gt; SegCount, &lt;SegName, SegSize&gt;<sup>SegCount</sup>
+ Segments --&gt; Format, Version, SegCount, &lt;SegName, SegSize&gt;<sup>SegCount</sup>
</p>
<p>
- SegCount, SegSize --&gt; UInt32
+ Format, SegCount, SegSize --&gt; UInt32
+ </p>
+
+ <p>
+ Version --&gt; UInt64
</p>
<p>
SegName --&gt; String
</p>
+ <p>
+ Format is -1 in Lucene 1.4.
+ </p>
+
+ <p>
+ Version counts how often the index has been
+ changed by adding or deleting documents.
+ </p>
+
<p>
SegName is the name of the segment, and is used as the file name prefix
- for
- all of the files that compose the segment's index.
+ for all of the files that compose the segment's index.
</p>
<p>
@@ -940,7 +952,7 @@
term's text.
</p>
<p>TIVersion names the version of the format
- of this file and is -1 in Lucene 1.4.
+ of this file and is -2 in Lucene 1.4.
</p>
<p>Term
text prefixes are shared. The PrefixLength is the number of initial