Class ReaderUtil
Common util methods for dealing with IndexReaders and IndexReaderContexts.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Assembly: Lucene.Net.dll
Syntax
public sealed class ReaderUtil
Methods
GetTopLevelContext(IndexReaderContext)
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.
Declaration
public static IndexReaderContext GetTopLevelContext(IndexReaderContext context)
Parameters
Returns
SubIndex(int, IList<AtomicReaderContext>)
Returns index of the searcher/reader for document n
in the
array used to construct this searcher/reader.
Declaration
public static int SubIndex(int n, IList<AtomicReaderContext> leaves)
Parameters
Returns
SubIndex(int, int[])
Returns index of the searcher/reader for document n
in the
array used to construct this searcher/reader.
Declaration
public static int SubIndex(int n, int[] docStarts)
Parameters
Type |
Name |
Description |
int |
n |
|
int[] |
docStarts |
|
Returns