slices
fun slices(leaves: MutableList<LeafReaderContext>, maxDocsPerSlice: Int, maxSegmentsPerSlice: Int, allowSegmentPartitions: Boolean): Array<IndexSearcher.LeafSlice>
Static method to segregate LeafReaderContexts amongst multiple slices. Creates slices according to the provided max number of documents per slice and max number of segments per slice. Splits segments into partitions when the last argument is true.
Return
the array of slices
Parameters
leaves
the leaves to slice
maxDocsPerSlice
the maximum number of documents in a single slice
maxSegmentsPerSlice
the maximum number of segments in a single slice
allowSegmentPartitions
whether segments may be split into partitions according to the provided maxDocsPerSlice argument. When true, if a segment holds more documents than the provided max docs per slice, it is split into equal size partitions that each gets its own slice assigned.