lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emir Arnautovic (Created) (JIRA)" <>
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
             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 {

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message