mirror of https://github.com/apache/lucene.git
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:
parent
7f766cf603
commit
6870592252
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue