Apache Lucene open-source search software
document the counter used to generate new segment names in the segments file
Yonik Seeleyc2065b4a3fa9
diff --git a/docs/fileformats.html b/docs/fileformats.htmlindex 8f36120d730..368aafe0bdf 100644--- a/docs/fileformats.html+++ b/docs/fileformats.html@@ -1077,10 +1077,10 @@ limitations under the License.segment.</p><p>- Segments --> Format, Version, SegCount, <SegName, SegSize><sup>SegCount</sup>+ Segments --> Format, Version, NameCounter, SegCount, <SegName, SegSize><sup>SegCount</sup></p><p>- Format, SegCount, SegSize --> UInt32+ Format, NameCounter, SegCount, SegSize --> UInt32</p><p>Version --> UInt64@@ -1094,6 +1094,9 @@ limitations under the License.<p>Version counts how often the index has beenchanged by adding or deleting documents.+ </p>+ <p>+ NameCounter is used to generate names for new segment files.</p><p>SegName is the name of the segment, and is used as the file name prefixdiff --git a/xdocs/fileformats.xml b/xdocs/fileformats.xmlindex 8654c399094..ce035178d44 100644--- a/xdocs/fileformats.xml+++ b/xdocs/fileformats.xml@@ -698,11 +698,11 @@</p><p>- Segments --> Format, Version, SegCount, <SegName, SegSize><sup>SegCount</sup>+ Segments --> Format, Version, NameCounter, SegCount, <SegName, SegSize><sup>SegCount</sup></p><p>- Format, SegCount, SegSize --> UInt32+ Format, NameCounter, SegCount, SegSize --> UInt32</p><p>@@ -722,6 +722,10 @@changed by adding or deleting documents.</p>+ <p>+ NameCounter is used to generate names for new segment files.+ </p>+<p>SegName is the name of the segment, and is used as the file name prefixfor all of the files that compose the segment's index.