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

DV update are broken for updates on new field

Details

    • Bug
    • Status: Reopened
    • Blocker
    • Resolution: Fixed
    • 8.0
    • 8.0
    • None
    • None
    • New

    Description

      A segmemnt written with Lucene70Codec failes if it ties to update
      a DV field that didn't exist in the index before it was upgraded to
      Lucene80Codec. We bake the DV format into the FieldInfo when it's used
      the first time and therefor never go to the codec if we need to update.
      yet on a field that didn't exist before and was added during an indexing
      operation we have to consult the coded and get an exception.
      This change fixes this issue and adds the relevant bwc tests.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simonw Simon Willnauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m