mirror of https://github.com/apache/lucene.git
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:
parent
847df551dc
commit
3afc9192b9
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue