Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4307

rename IR.getTopReaderContext to IR.getContext

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0, 6.0
    • None
    • None
    • New

    Description

      IR/IS.getTopReaderContext is supposed to read as "get the ReaderContext, with this reader treated as the top".

      But every time I look at it, it reads as "get context of the top-level reader".

      This makes sense for IndexSearcher, but is confusing for IndexReader.

      I think it should simply be IR.getContext() for IndexReader.

      Attachments

        1. LUCENE-4307.patch
          26 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: