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

bogus positions create a corrumpt index

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6, 4.0-ALPHA
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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.patch
          2 kB
          Robert Muir
        2. LUCENE-3874_test.patch
          1 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: