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

bogus positions create a corrumpt index

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6, 4.0-ALPHA
    • 3.6, 4.0-ALPHA
    • None
    • None
    • New

    Description

      Its pretty common that positionIncrement can overflow, this happens really easily
      if people write analyzers that don't clearAttributes().

      It used to be the case that if this happened (and perhaps still is in 3.x, i didnt check),
      that IW would throw an exception.

      But i couldnt find the code checking this, I wrote a test and it makes a corrumpt index...

      Attachments

        1. LUCENE-3874_test.patch
          1 kB
          Robert Muir
        2. LUCENE-3874.patch
          2 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: