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

@ -16,10 +16,13 @@ API Changes
Bug fixes Bug fixes
1. Fixed the web application demo (built with "ant war-demo") which 1. Fixed the web application demo (built with "ant war-demo") which
didn't work because it used a QueryParser method that had didn't work because it used a QueryParser method that had
been removed (Daniel Naber) been removed (Daniel Naber)
2. LUCENE-583: ISOLatin1AccentFilter fails to preserve positionIncrement 2. LUCENE-583: ISOLatin1AccentFilter fails to preserve positionIncrement
(Yonik Seeley)
3. LUCENE-575: SpellChecker min score is incorrectly changed by suggestSimilar
(Yonik Seeley) (Yonik Seeley)
Optimizations Optimizations

View File

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