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:19:46 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests ef33466ae -> 987d73b74


more logging


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

Branch: refs/heads/failingtests
Commit: 987d73b748998f02a2cb0494ac58795384c1309f
Parents: ef33466
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 21:19:36 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 21:19:36 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/987d73b7/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 2264307..84795db 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -242,15 +242,13 @@ 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);
 
-            var maxBoost = CalculateMaxBoost(MaxEdits);
-
-            OutputCollector.AppendLine("    termAfter=" + termAfter + ", Bottom=" + Bottom
+ ", maxBoost=" + maxBoost);
-            OutputCollector.AppendLine("    bottom >= maxBoost=" + (Bottom >= maxBoost)
+ ", bottom > maxBoost=" + (Bottom > maxBoost));
-
+            OutputCollector.AppendLine("    termAfter=" + termAfter + ", Bottom=" + Bottom);
+            
             // as long as the max non-competitive boost is >= the max boost
             // for some edit distance, keep dropping the max edit distance.
-            while (MaxEdits > 0 && (termAfter ? Bottom >= maxBoost : Bottom
> maxBoost))
+            while (MaxEdits > 0 && (termAfter ? Bottom >= CalculateMaxBoost(MaxEdits)
: Bottom > CalculateMaxBoost(MaxEdits)))
             {
+                OutputCollector.AppendLine("    subtract.");
                 MaxEdits--;
             }
 


Mime
View raw message