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

IndexWriter.commit() does not update the index version

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: