Companion

object Companion

Functions

Link copied to clipboard
fun applyDeletes(infos: SegmentInfos, numDeletes: Int): SegmentInfos

Apply numDeletes uniformly across all segments of infos.

Link copied to clipboard

Apply a merge to a SegmentInfos instance, accumulating the number of written bytes into stats.

Link copied to clipboard
fun makeSegmentCommitInfo(name: String, maxDoc: Int, numDeletedDocs: Int, sizeMB: Double, source: String): SegmentCommitInfo

Make a new SegmentCommitInfo with the given maxDoc, numDeletedDocs and sizeInBytes, which are usually the numbers that merge policies care about.