Companion

object Companion

Functions

Link copied to clipboard
fun create(cacheScores: Boolean, maxRAMMB: Double): CachingCollector

Creates a CachingCollector which does not wrap another collector. The cached documents and scores can later be replayed.

fun create(other: Collector, cacheScores: Boolean, maxRAMMB: Double): CachingCollector

Create a new CachingCollector that wraps the given collector and caches documents and scores up to the specified RAM threshold.

fun create(other: Collector, cacheScores: Boolean, maxDocsToCache: Int): CachingCollector

Create a new CachingCollector that wraps the given collector and caches documents and scores up to the specified max docs threshold.