lucene-lucene-net-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r940067 - in /lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net: AssemblyInfo.cs Spell/SpellChecker.cs
Date Sat, 01 May 2010 16:13:25 GMT
Author: digy
Date: Sat May  1 16:13:24 2010
New Revision: 940067

URL: http://svn.apache.org/viewvc?rev=940067&view=rev
Log:
LUCENENET-359 Spellchecker accuracy gets overwritten

Modified:
    lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/AssemblyInfo.cs
    lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/Spell/SpellChecker.cs

Modified: lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/contrib/SpellChecker.Net/SpellChecker.Net/AssemblyInfo.cs?rev=940067&r1=940066&r2=940067&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/AssemblyInfo.cs (original)
+++ lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/AssemblyInfo.cs Sat
May  1 16:13:24 2010
@@ -26,7 +26,7 @@ using System.Runtime.CompilerServices;
 // You can specify all the values or you can default the Revision and Build Numbers
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.1")]
+[assembly: AssemblyVersion("2.0.0.2")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/Spell/SpellChecker.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/contrib/SpellChecker.Net/SpellChecker.Net/Spell/SpellChecker.cs?rev=940067&r1=940066&r2=940067&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/Spell/SpellChecker.cs
(original)
+++ lucene/lucene.net/trunk/C#/contrib/SpellChecker.Net/SpellChecker.Net/Spell/SpellChecker.cs
Sat May  1 16:13:24 2010
@@ -63,9 +63,9 @@ namespace SpellChecker.Net.Search.Spell
             this.spellindex = spellindex;
         }
         /// <summary>  Set the accuracy 0 &lt; min &lt; 1; default 0.5</summary>
-        virtual public void SetAccuracy(float min)
+        virtual public void SetAccuracy(float minScore)
         {
-            this.min = min;
+            this.minScore = minScore;
         }
 		
         /// <summary> Field name for each word in the ngram index.</summary>
@@ -81,7 +81,7 @@ namespace SpellChecker.Net.Search.Spell
 		
 		
         private IndexReader reader;
-        internal float min = 0.5f;
+        internal float minScore = 0.5f;  //LUCENENET-359 Spellchecker accuracy gets overwritten
 		
 		
         public SpellChecker(Directory gramIndex)
@@ -124,7 +124,7 @@ namespace SpellChecker.Net.Search.Spell
         /// </returns>
         public virtual System.String[] SuggestSimilar(System.String word, int num_sug, IndexReader
ir, System.String field, bool morePopular)
         {
-			
+            float min = this.minScore;
             TRStringDistance sd = new TRStringDistance(word);
             int lengthWord = word.Length;
 			



Mime
View raw message