ReaderUtil

object ReaderUtil

Common util methods for dealing with IndexReaders and IndexReaderContexts.

Functions

Link copied to clipboard

Walks up the reader tree and return the given context's top level reader context, or in other words the reader tree's root context.

Link copied to clipboard
fun subIndex(n: Int, docStarts: IntArray): Int

Returns index of the searcher/reader for document n in the array used to construct this searcher/reader.