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

LengthFilter and other TokenFilters that skip tokens ignore relative positionIncrement

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      See for reference:
      http://www.nabble.com/WordDelimiterFilter%2BLenghtFilter-results-in-termPosition%3D%3D-1-td16306788.html
      and http://www.nabble.com/Lucene---Java-f24284.html

      It seems that LengthFilter (at least) could produce a stream in which the first Token has a positionIncrement of 0, which make CheckIndex and Luke function "Reconstruct&Edit" to generate exception.

      Should something be done to avoid this situation, or could the error be ignored (by allowing Term with a position of -1, and relaxing CheckIndex checks?)

        Attachments

        1. LUCENE-1253-3x.patch
          20 kB
          Uwe Schindler
        2. LUCENE-1253-3x.patch
          20 kB
          Uwe Schindler
        3. LUCENE-1253-trunk.patch
          18 kB
          Uwe Schindler

          Issue Links

            Activity

              People

              • Assignee:
                thetaphi Uwe Schindler
                Reporter:
                waltersbox Walter Ferrara
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: