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

Refactor segmentInfos from IndexReader into its subclasses

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      References to segmentInfos in IndexReader cause different kinds of problems
      for subclasses of IndexReader, like e. g. MultiReader.

      Only subclasses of IndexReader that own the index directory, namely
      SegmentReader and MultiSegmentReader, should have a SegmentInfos object
      and be able to access it.

      Further information:
      http://www.gossamer-threads.com/lists/lucene/java-dev/51808
      http://www.gossamer-threads.com/lists/lucene/java-user/52460

      A part of the refactoring work was already done in LUCENE-781

        Attachments

        1. lucene-986.patch
          40 kB
          Michael Busch
        2. lucene-986.patch
          42 kB
          Hoss Man
        3. lucene-986.patch
          48 kB
          Michael Busch

          Issue Links

            Activity

              People

              • Assignee:
                michaelbusch Michael Busch
                Reporter:
                michaelbusch Michael Busch
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: