You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by la...@apache.org on 2015/05/30 02:58:18 UTC

lucenenet git commit: add different logging

Repository: lucenenet
Updated Branches:
  refs/heads/failingtests e2a96032a -> bdf2899a0


add different logging


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

Branch: refs/heads/failingtests
Commit: bdf2899a02cef12a64b7080e13d299b81632b9ab
Parents: e2a9603
Author: Laimonas Simutis <la...@gmail.com>
Authored: Fri May 29 20:57:45 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Fri May 29 20:57:45 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bdf2899a/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 aca3135..bb38f32 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -235,13 +235,13 @@ namespace Lucene.Net.Search
         /// </summary>
         private void BottomChanged(BytesRef lastTerm, bool init)
         {
-            OutputCollector.AppendLine("FuzzyTermsEnum bottom changed, lastTerm=" + lastTerm + ", init=" + init + ", MaxEdits=" + MaxEdits);
-                
             int oldMaxEdits = MaxEdits;
 
             // 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("FuzzyTermsEnum bottom changed, termAfter=" + termAfter + ", MaxEdits=" + MaxEdits);
+
             // 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 >= CalculateMaxBoost(MaxEdits) : Bottom > CalculateMaxBoost(MaxEdits)))
@@ -253,7 +253,7 @@ namespace Lucene.Net.Search
                 MaxEdits--;
             }
 
-            OutputCollector.AppendLine("    oldMaxEdits=" + oldMaxEdits + ", maxEdits=" + MaxEdits);
+            OutputCollector.AppendLine("    oldMaxEdits=" + oldMaxEdits + ", maxEdits=" + MaxEdits + ", init=" + init);
             if (oldMaxEdits != MaxEdits || init) // the maximum n has changed
             {
                 OutputCollector.AppendLine("    Max distance changed");