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

Refactor segmentInfos from IndexReader into its subclasses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3
    • core/index
    • None
    • 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
          Chris M. Hostetter
        3. lucene-986.patch
          48 kB
          Michael Busch

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: