You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by yo...@apache.org on 2006/06/01 23:36:13 UTC

svn commit: r410971 - in /lucene/java/trunk: CHANGES.txt contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java

Author: yonik
Date: Thu Jun  1 14:36:13 2006
New Revision: 410971

URL: http://svn.apache.org/viewvc?rev=410971&view=rev
Log:
SpellChecker min score is incorrectly changed by suggestSimilar: LUCENE-575

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=410971&r1=410970&r2=410971&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu Jun  1 14:36:13 2006
@@ -16,10 +16,13 @@
 Bug fixes
 
  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)
 
- 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)
 
 Optimizations

Modified: lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java?rev=410971&r1=410970&r2=410971&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java (original)
+++ lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java Thu Jun  1 14:36:13 2006
@@ -125,6 +125,7 @@
     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();