Details

      Description

      The following code fails with a ArgumentOutOfRangeException in line 467 of "\src\contrib\Snowball\SF\Snowball\SnowballProgram.cs":

      var stemmer = new DanishStemmer();
      stemmer.SetCurrent("heste");
      stemmer.Stem();
      Console.WriteLine(stemmer.GetCurrent());

      Expected: Output "hest" to console.

      Possible fix: Seems like the line should have been

      s.Append(current.ToString(bra, len));

      instead of:

      s.Append(current.ToString(bra, ket));

        Issue Links

          Activity

          Johannes Hansen created issue -
          Johannes Hansen made changes -
          Field Original Value New Value
          Description The following code fails with a ArgumentOutOfRangeException in line 467 of "\src\contrib\Snowball\SF\Snowball\SnowballProgram.cs":

          var stemmer = new DanishStemmer();
          stemmer.SetCurrent("hest");
          stemmer.Stem();
          Console.WriteLine(stemmer.GetCurrent());

          Expected: Output "hest" to console.

          Possible fix: Seems like the line should have been

          s.Append(current.ToString(bra, len));

          instead of:

          s.Append(current.ToString(bra, ket));
          The following code fails with a ArgumentOutOfRangeException in line 467 of "\src\contrib\Snowball\SF\Snowball\SnowballProgram.cs":

          var stemmer = new DanishStemmer();
          stemmer.SetCurrent("heste");
          stemmer.Stem();
          Console.WriteLine(stemmer.GetCurrent());

          Expected: Output "hest" to console.

          Possible fix: Seems like the line should have been

          s.Append(current.ToString(bra, len));

          instead of:

          s.Append(current.ToString(bra, ket));
          Simon Svensson made changes -
          Link This issue duplicates LUCENENET-54 [ LUCENENET-54 ]
          Christopher Currens made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s Lucene.Net 3.0.3 [ 12316215 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Johannes Hansen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development