Companion

object Companion

Properties

Link copied to clipboard

Default maximum segment size. A segment of this size or larger will never be merged. @see setMaxMergeDocs

Link copied to clipboard
const val DEFAULT_MERGE_FACTOR: Int = 10

Default merge factor, which is how many segments are merged at a time

Link copied to clipboard
const val DEFAULT_NO_CFS_RATIO: Double = 0.1

Default noCFSRatio. If a merge's size is >= 10% of the index, then we disable compound file for it.

Link copied to clipboard
const val LEVEL_LOG_SPAN: Double = 0.75

Defines the allowed range of log(size) for each level. A level is computed by taking the max segment log size, minus LEVEL_LOG_SPAN, and finding all segments falling within that range.