lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: more logging
Date Sun, 24 May 2015 01:42:01 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 987d73b74 -> 18cba956b


more logging


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

Branch: refs/heads/failingtests
Commit: 18cba956b4b2b118205edb91ff9f937ababfd218
Parents: 987d73b
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 21:41:39 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 21:41:39 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18cba956/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 84795db..be11d27 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -242,7 +242,7 @@ namespace Lucene.Net.Search
             // true if the last term encountered is lexicographically equal or after the
bottom term in the PQ
             bool termAfter = BottomTerm == null || (lastTerm != null && TermComparator.Compare(lastTerm,
BottomTerm) >= 0);
 
-            OutputCollector.AppendLine("    termAfter=" + termAfter + ", Bottom=" + Bottom);
+            OutputCollector.AppendLine("    termAfter=" + termAfter + ", Bottom=" + Bottom.ToString("R"));
             
             // as long as the max non-competitive boost is >= the max boost
             // for some edit distance, keep dropping the max edit distance.
@@ -283,7 +283,9 @@ namespace Lucene.Net.Search
         private float CalculateMaxBoost(int nEdits)
         {
             float similarity = 1.0f - ((float)nEdits / (float)(TermLength));
-            return (similarity - MinSimilarity_Renamed) * Scale_factor;
+            var val = (similarity - MinSimilarity_Renamed) * Scale_factor;
+            OutputCollector.AppendLine("        max boost calculated: " + val.ToString("R"));
+            return val;
         }
 
         private BytesRef QueuedBottom = null;


Mime
View raw message