LUCENE-9456: revise format description of TermVectorsFormat (#129)
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90TermVectorsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90TermVectorsFormat.java
index bfd24cd..0142f54 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90TermVectorsFormat.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90TermVectorsFormat.java
@@ -50,6 +50,21 @@
* <p><b>File formats</b>
*
* <ol>
+ * <li><a id="vector_meta"></a>
+ * <p>A vector metadata file (extension <code>.tvm</code>).
+ * <ul>
+ * <li>VectorMeta (.tvm) --> <Header>, PackedIntsVersion, ChunkSize,
+ * ChunkIndexMetadata, ChunkCount, DirtyChunkCount, DirtyDocsCount, Footer
+ * <li>Header --> {@link CodecUtil#writeIndexHeader IndexHeader}
+ * <li>PackedIntsVersion --> {@link PackedInts#VERSION_CURRENT} as a {@link
+ * DataOutput#writeVInt VInt}
+ * <li>ChunkSize is the number of bytes of terms to accumulate before flushing, as a {@link
+ * DataOutput#writeVInt VInt}
+ * <li>ChunkCount is not known in advance and is the number of chunks necessary to store all
+ * document of the segment
+ * <li>DirtyChunkCount --> the number of prematurely flushed chunks in the .tvd file
+ * <li>Footer --> {@link CodecUtil#writeFooter CodecFooter}
+ * </ul>
* <li><a id="vector_data"></a>
* <p>A vector data file (extension <code>.tvd</code>). This file stores terms, frequencies,
* positions, offsets and payloads for every document. Upon writing a new segment, it
@@ -59,15 +74,8 @@
* BlockPackedWriter blocks of packed ints} for positions.
* <p>Here is a more detailed description of the field data file format:
* <ul>
- * <li>VectorData (.tvd) --> <Header>, PackedIntsVersion, ChunkSize,
- * <Chunk><sup>ChunkCount</sup>, ChunkCount, DirtyChunkCount, Footer
+ * <li>VectorData (.tvd) --> <Header>, <Chunk><sup>ChunkCount</sup>, Footer
* <li>Header --> {@link CodecUtil#writeIndexHeader IndexHeader}
- * <li>PackedIntsVersion --> {@link PackedInts#VERSION_CURRENT} as a {@link
- * DataOutput#writeVInt VInt}
- * <li>ChunkSize is the number of bytes of terms to accumulate before flushing, as a {@link
- * DataOutput#writeVInt VInt}
- * <li>ChunkCount is not known in advance and is the number of chunks necessary to store all
- * document of the segment
* <li>Chunk --> DocBase, ChunkDocs, < NumFields >, < FieldNums >, <
* FieldNumOffs >, < Flags >, < NumTerms >, < TermLengths >, <
* TermFreqs >, < Positions >, < StartOffsets >, < Lengths >, <
@@ -134,8 +142,6 @@
* <li>FieldTermsAndPayLoads --> Terms (Payloads)
* <li>Terms: term bytes
* <li>Payloads: payload bytes (if the field has payloads)
- * <li>ChunkCount --> the number of chunks in this file
- * <li>DirtyChunkCount --> the number of prematurely flushed chunks in this file
* <li>Footer --> {@link CodecUtil#writeFooter CodecFooter}
* </ul>
* <li><a id="vector_index"></a>