HunspellStemmer dedup not fully functional
------------------------------------------

                 Key: LUCENE-3670
                 URL: https://issues.apache.org/jira/browse/LUCENE-3670
             Project: Lucene - Java
          Issue Type: Bug
          Components: modules/analysis
    Affects Versions: 3.5
            Reporter: Emir Arnautovic
            Priority: Minor


public List<Stem> uniqueStems(char word[], int length) assumes that word.length 
is always same as length and in cases where it is not, duplicate stems are 
returned.
Quick patch may be applied to trim extra characters:

if (word.length > length) {
  terms.add(Arrays.copyOf(word, length));
} else {
  terms.add(word);
}



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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to