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

GermanStemFilter setting wrong values for startoffset/endoffset of stemmed tokens

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/analysis
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

    • Bugzilla Id:
      7412

      Description

      The GermanStemFilter sets wrong values to the new Token object created when the
      stemmer succeeds in stemming the termText() string. Bug found in 1.2-RC5-dev

      -----------------
      Example, for the processing of the string "this is a simple test":
      token : thi (0,3)
      token : is (5,7)
      token : a (8,9)
      token : simpl (0,5)
      token : test (17,21)

      (all the stemmed tokens have wrong start/end offsets).

        Activity

        Hide
        reyes@charabia.net Rodrigo Reyes added a comment -

        Created an attachment (id=1414)
        Patch file that fixes bug #7412

        Show
        reyes@charabia.net Rodrigo Reyes added a comment - Created an attachment (id=1414) Patch file that fixes bug #7412
        Hide
        otis@apache.org Otis Gospodnetic added a comment -

        This should be fixed now.
        Thanks for the patch.

        Show
        otis@apache.org Otis Gospodnetic added a comment - This should be fixed now. Thanks for the patch.

          People

          • Assignee:
            java-dev@lucene.apache.org Lucene Developers
            Reporter:
            reyes@charabia.net Rodrigo Reyes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development