Lucene99SegmentInfoFormat

Lucene 9.9 Segment info format.

Files:

  • .si: Header, SegVersion, SegSize, IsCompoundFile, Diagnostics, Files, Attributes, IndexSort, Footer

Data types:

Field Descriptions:

  • SegVersion is the code version that created the segment.

  • SegMinVersion is the minimum code version that contributed documents to the segment.

  • SegSize is the number of documents contained in the segment index.

  • IsCompoundFile records whether the segment is written as a compound file or not. If this is -1, the segment is not a compound file. If it is 1, the segment is a compound file.

  • HasBlocks records whether the segment contains documents written as a block and guarantees consecutive document ids for all documents in the block

  • The Diagnostics Map is privately written by IndexWriter, as a debugging aid, for each segment it creates. It includes metadata like the current Lucene version, OS, Java version, why the segment was created (merge, flush, addIndexes), etc.

  • Files is a list of files referred to by this segment.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun read(dir: Directory, segment: String, segmentID: ByteArray, context: IOContext): SegmentInfo

Read SegmentInfo data from a directory.

Link copied to clipboard
open override fun write(dir: Directory, si: SegmentInfo, ioContext: IOContext)

Write SegmentInfo data. The codec must add its SegmentInfo filename(s) to info before doing i/o.