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

Term vectors missing after addIndexes + optimize

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.3
    • 3.4, 4.0-ALPHA
    • core/index
    • None
    • New, Patch Available

    Description

      I encountered a problem with addIndexes where term vectors disappeared following optimize(). I wrote a simple test case which demonstrates the problem. The bug appears with both addIndexes() versions, but does not appear if addDocument is called twice, committing changes in between.

      I think I tracked the problem down to IndexWriter.mergeMiddle() – it sets term vectors before merger.merge() was called. In the addDocs case, merger.fieldInfos is already populated, while in the addIndexes case it is empty, hence fieldInfos.hasVectors returns false.

      will post a patch shortly.

      Attachments

        1. LUCENE-3403.patch
          5 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: