Companion
object Companion
Properties
Link copied to clipboard
Expert: returns a default Similarity instance. In general, this method is only called to initialize searchers and writers. User code and query implementations should respect IndexSearcher.getSimilarity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Return the maximum number of clauses permitted, 1024 by default. Attempts to add more than the permitted number of clauses cause TooManyClauses to be thrown.
Functions
Link copied to clipboard
Expert: set the default QueryCache instance.
Link copied to clipboard
Expert: set the default QueryCachingPolicy instance.
Link copied to clipboard
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.