lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: change back calculation
Date Sun, 24 May 2015 01:58:11 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 18cba956b -> 61c2d0681


change back calculation


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/61c2d068
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/61c2d068
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/61c2d068

Branch: refs/heads/failingtests
Commit: 61c2d06814fa942331ce229e26553d6148a292fe
Parents: 18cba95
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 21:57:54 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 21:57:54 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/61c2d068/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
index be11d27..1dab0e0 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -283,9 +283,7 @@ namespace Lucene.Net.Search
         private float CalculateMaxBoost(int nEdits)
         {
             float similarity = 1.0f - ((float)nEdits / (float)(TermLength));
-            var val = (similarity - MinSimilarity_Renamed) * Scale_factor;
-            OutputCollector.AppendLine("        max boost calculated: " + val.ToString("R"));
-            return val;
+            return (similarity - MinSimilarity_Renamed) * Scale_factor;
         }
 
         private BytesRef QueuedBottom = null;


Mime
View raw message