Companion

object Companion

Functions

Link copied to clipboard
fun build(indexSearcher: IndexSearcher, term: Term, needsStats: Boolean): TermStates

Creates a TermStates from a top-level IndexReaderContext and the given [ ]. This method will lookup the given term in all context's leaf readers and register each of the readers containing the term in the returned TermStates using the leaf reader's ordinal.