SpellChecker min score is incorrectly changed by suggestSimilar: LUCENE-575

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@410971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-06-01 21:36:13 +00:00
parent 847df551dc
commit 3afc9192b9
2 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,9 @@ Bug fixes
2. LUCENE-583: ISOLatin1AccentFilter fails to preserve positionIncrement
(Yonik Seeley)
3. LUCENE-575: SpellChecker min score is incorrectly changed by suggestSimilar
(Yonik Seeley)
Optimizations
1. LUCENE-586: TermDocs.skipTo() is now more efficient for multi-segment

View File

@ -125,6 +125,7 @@ public class SpellChecker {
public String[] suggestSimilar (String word, int num_sug, IndexReader ir, String field
, boolean morePopular) throws IOException {
float min = this.min;
final TRStringDistance sd=new TRStringDistance(word);
final int lengthWord=word.length();