Lucene90LiveDocsFormat

Lucene 9.0 live docs format

The .liv file is optional, and only exists when a segment contains deletions.

Although per-segment, this file is maintained exterior to compound segment files.

Deletions (.liv) --> IndexHeader,Generation,Bits

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun files(info: SegmentCommitInfo, files: MutableCollection<String>)

Records all files in use by this SegmentCommitInfo into the files argument.

Link copied to clipboard
open override fun readLiveDocs(dir: Directory, info: SegmentCommitInfo, context: IOContext): Bits

Read live docs bits.

Link copied to clipboard
open override fun writeLiveDocs(bits: Bits, dir: Directory, info: SegmentCommitInfo, newDelCount: Int, context: IOContext)

Persist live docs bits. Use SegmentCommitInfo.getNextDelGen to determine the generation of the deletes file you should write to.