lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emir Arnautovic (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3670) HunspellStemmer dedup not fully functional
Date Tue, 03 Jan 2012 14:17:39 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message