LUCENE-3590: unbreak directspellchecker string handling

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1206186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-11-25 14:20:00 +00:00
parent 7f766cf603
commit 6870592252
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ public class DirectSpellChecker {
UnicodeUtil.UTF8toUTF16(s.term, spare); UnicodeUtil.UTF8toUTF16(s.term, spare);
s.termAsString = spare.toString(); s.termAsString = spare.toString();
} }
suggestion.string = s.termAsString;
suggestion.score = s.score; suggestion.score = s.score;
suggestion.freq = s.docfreq; suggestion.freq = s.docfreq;
suggestions[index--] = suggestion; suggestions[index--] = suggestion;