## Uses of Class
org.apache.lucene.index.IndexReaderContext

- Packages that use IndexReaderContext
  Package | Description
  --- | ---
  org.apache.lucene.index | Code to maintain and access indices.
  org.apache.lucene.search | Code to search indices.

- - ### Uses of IndexReaderContext in org.apache.lucene.index

    Subclasses of IndexReaderContext in org.apache.lucene.index
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CompositeReaderContext` `IndexReaderContext` for `CompositeReader` instance.
    `class` | `LeafReaderContext` `IndexReaderContext` for `LeafReader` instances.

    Methods in org.apache.lucene.index that return IndexReaderContext
    Modifier and Type | Method and Description
    --- | ---
    `abstract IndexReaderContext` | IndexReader.`getContext()` Expert: Returns the root `IndexReaderContext` for this `IndexReader`'s sub-reader tree.
    `static IndexReaderContext` | ReaderUtil.`getTopLevelContext(IndexReaderContext context)` 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.

    Methods in org.apache.lucene.index that return types with arguments of type IndexReaderContext
    Modifier and Type | Method and Description
    --- | ---
    `List<IndexReaderContext>` | CompositeReaderContext.`children()`
    `abstract List<IndexReaderContext>` | IndexReaderContext.`children()` Returns the context's children iff this context is a composite context otherwise `null`.
    `List<IndexReaderContext>` | LeafReaderContext.`children()`

    Methods in org.apache.lucene.index with parameters of type IndexReaderContext
    Modifier and Type | Method and Description
    --- | ---
    `static TermContext` | TermContext.`build(IndexReaderContext context, Term term)` Creates a `TermContext` from a top-level `IndexReaderContext` and the given `Term`.
    `static IndexReaderContext` | ReaderUtil.`getTopLevelContext(IndexReaderContext context)` 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.
    `boolean` | TermContext.`wasBuiltFor(IndexReaderContext context)` Expert: Return whether this `TermContext` was built for the given `IndexReaderContext`.

    Constructors in org.apache.lucene.index with parameters of type IndexReaderContext
    Constructor and Description
    `TermContext(IndexReaderContext context)` Creates an empty `TermContext` from a `IndexReaderContext`
    `TermContext(IndexReaderContext context, TermState state, int ord, int docFreq, long totalTermFreq)` Creates a `TermContext` with an initial `TermState`, `IndexReader` pair.

  - ### Uses of IndexReaderContext in org.apache.lucene.search

    Fields in org.apache.lucene.search declared as IndexReaderContext
    Modifier and Type | Field and Description
    --- | ---
    `protected IndexReaderContext` | IndexSearcher.`readerContext`

    Methods in org.apache.lucene.search that return IndexReaderContext
    Modifier and Type | Method and Description
    --- | ---
    `IndexReaderContext` | IndexSearcher.`getTopReaderContext()` Returns this searchers the top-level `IndexReaderContext`.

    Constructors in org.apache.lucene.search with parameters of type IndexReaderContext
    Constructor and Description
    `IndexSearcher(IndexReaderContext context)` Creates a searcher searching the provided top-level `IndexReaderContext`.
    `IndexSearcher(IndexReaderContext context, ExecutorService executor)` Creates a searcher searching the provided top-level `IndexReaderContext`.

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.