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
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue