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

IndexWriter.commit() does not update the index version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4
    • None
    • core/index
    • None
    • Patch Available

    Description

      IndexWriter.commit() can update the index version and generation but the update of version is lost.
      As result added documents are not seen by IndexReader.reopen().
      (There might be other side effects that I am not aware of).
      The fix is 1 line - update also the version in SegmentsInfo.updateGeneration().
      (Finding this line involved more lines though... )

      Attachments

        Issue Links

          Activity

            People

              doronc Doron Cohen
              doronc Doron Cohen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: