lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject [1/2] lucenenet git commit: put back the code that makes the test fail
Date Sat, 30 May 2015 00:37:51 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 632f810bd -> 032742563


put back the code that makes the test fail


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

Branch: refs/heads/failingtests
Commit: c1e308cd8135d320e0c09650e8ede510fee6e5db
Parents: 632f810
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 29 20:37:05 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 29 20:37:05 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c1e308cd/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 945a4a3..c8ece85 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -242,18 +242,11 @@ 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.ToString("f20"));
-            OutputCollector.AppendLine(string.Format("    Bottom >= maxBoost: {0}, Bottom
> maxBoost: {1}", Bottom >= maxBoost, Bottom > maxBoost));
-            
             // 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("        max edits subtracted");
                 MaxEdits--;
-                maxBoost = CalculateMaxBoost(MaxEdits);
             }
 
             OutputCollector.AppendLine("    oldMaxEdits=" + oldMaxEdits + ", maxEdits=" +
MaxEdits);


Mime
View raw message