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 Sat, 23 May 2015 23:04:29 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 6fa00148a -> 651a3140b


more logging


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

Branch: refs/heads/failingtests
Commit: 651a3140b7f6ceadc622ca49fa4c6a70d67ca30a
Parents: 6fa0014
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 19:04:07 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 19:04:07 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/FilteredTermsEnum.cs | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/651a3140/src/Lucene.Net.Core/Index/FilteredTermsEnum.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/FilteredTermsEnum.cs b/src/Lucene.Net.Core/Index/FilteredTermsEnum.cs
index e3bffd4..5e7ba47 100644
--- a/src/Lucene.Net.Core/Index/FilteredTermsEnum.cs
+++ b/src/Lucene.Net.Core/Index/FilteredTermsEnum.cs
@@ -1,5 +1,6 @@
 using System.Collections.Generic;
 using System.Diagnostics;
+using Lucene.Net.Search;
 
 namespace Lucene.Net.Index
 {
@@ -250,6 +251,7 @@ namespace Lucene.Net.Index
                     {
                         // no more terms to seek to or enum exhausted
                         //System.out.println("  return null");
+                        OutputCollector.AppendLine("    fte:return null, t:" + t);
                         return null;
                     }
                     ActualTerm = Tenum.Term();
@@ -261,6 +263,7 @@ namespace Lucene.Net.Index
                     if (ActualTerm == null)
                     {
                         // enum exhausted
+                        OutputCollector.AppendLine("    fte:return null, enum exhausted");
                         return null;
                     }
                 }
@@ -274,6 +277,7 @@ namespace Lucene.Net.Index
                         goto case FilteredTermsEnum.AcceptStatus.YES;
                     case FilteredTermsEnum.AcceptStatus.YES:
                         // term accepted
+                        OutputCollector.AppendLine("    fte:term accepted: " + ActualTerm);
                         return ActualTerm;
 
                     case FilteredTermsEnum.AcceptStatus.NO_AND_SEEK:
@@ -283,6 +287,7 @@ namespace Lucene.Net.Index
 
                     case FilteredTermsEnum.AcceptStatus.END:
                         // we are supposed to end the enum
+                        OutputCollector.AppendLine("   fte:end return null");
                         return null;
                 }
             }


Mime
View raw message