donnerpeter commented on a change in pull request #2397: URL: https://github.com/apache/lucene-solr/pull/2397#discussion_r578344605
########## File path: lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Hunspell.java ########## @@ -417,13 +417,17 @@ private boolean checkCompoundRules( private boolean checkLastCompoundPart( char[] wordChars, int start, int length, List<IntsRef> words) { - IntsRef forms = dictionary.lookupWord(wordChars, start, length); - if (forms == null) return false; + IntsRef ref = new IntsRef(new int[1], 0, 1); + words.add(ref); Review comment: reuse the "forms" object at the stack top, change its contents for each root candidate ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org