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

document with no term vector fields after documents with term vector fields corrupts the index

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If a document with no term-vector-enabled fields is added after
      document(s) that did have term vectors, as part of a single set of
      buffered docs, then the term-vector documents file is corrupted
      because we fail to write a "0" vInt.

      Thanks to Grant for spotting this!

      Spinoff from this thread:

      http://www.gossamer-threads.com/lists/lucene/java-dev/53306

        Activity

        Hide
        mikemccand Michael McCandless added a comment -

        Andi could you test with this fix? But, if this fixes your problem we need to understand why.... ie, are you also adding docs with no term vector fields?

        Show
        mikemccand Michael McCandless added a comment - Andi could you test with this fix? But, if this fixes your problem we need to understand why.... ie, are you also adding docs with no term vector fields?

          People

          • Assignee:
            mikemccand Michael McCandless
            Reporter:
            mikemccand Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development