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

Record the version that was used at index creation time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 7.0
    • None
    • None
    • New

    Description

      SegmentInfos already records the version that was used to write a commit and the version that was used to write the oldest segment in the index. In addition to those, I think it could be useful to record the Lucene version that was used to create the index. I think it could help with:

      • Debugging: there are things that change based on Lucene versions, for instance we will reject broken offsets in term vectors as of 7.0. Knowing the version that was used to create the index can be very useful to know what assumptions we can make about an index.
      • Backward compatibility. The codec API helped simplify backward compatibility of the index files a lot. However for everything that is done on top of the codec API like analysis or the computation of length norm factors, backward compatibility needs to be handled on top of Lucene. Maybe we could simplify this?

      Attachments

        1. LUCENE-7703.patch
          24 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: