lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Hansen (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENENET-475) DanishStemmer doesn't work.
Date Sun, 11 Mar 2012 21:14:40 GMT
DanishStemmer doesn't work.
---------------------------

                 Key: LUCENENET-475
                 URL: https://issues.apache.org/jira/browse/LUCENENET-475
             Project: Lucene.Net
          Issue Type: Bug
          Components: Lucene.Net Contrib
    Affects Versions: Lucene.Net 2.9.4g
            Reporter: Johannes Hansen


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));

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message