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 18:40:50 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests b86ef5203 -> 30b4f0d97


more logging


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

Branch: refs/heads/failingtests
Commit: 30b4f0d97c82bcef307c50d56be670193d2d154b
Parents: b86ef52
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 14:40:41 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 14:40:41 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/MultiTermQuery.cs        | 4 +++-
 src/Lucene.Net.Core/Search/TermCollectingRewrite.cs | 2 ++
 src/Lucene.Net.Core/Search/TopTermsRewrite.cs       | 1 -
 3 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30b4f0d9/src/Lucene.Net.Core/Search/MultiTermQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/MultiTermQuery.cs b/src/Lucene.Net.Core/Search/MultiTermQuery.cs
index 8952e69..c44bbea 100644
--- a/src/Lucene.Net.Core/Search/MultiTermQuery.cs
+++ b/src/Lucene.Net.Core/Search/MultiTermQuery.cs
@@ -77,7 +77,9 @@ namespace Lucene.Net.Search
             /// <seealso cref= MultiTermQuery#getTermsEnum(Terms, AttributeSource) </seealso>
             protected internal virtual TermsEnum GetTermsEnum(MultiTermQuery query, Terms
terms, AttributeSource atts)
             {
-                return query.GetTermsEnum(terms, atts); // allow RewriteMethod subclasses
to pull a TermsEnum from the MTQ
+                var te = query.GetTermsEnum(terms, atts); // allow RewriteMethod subclasses
to pull a TermsEnum from the MTQ
+                OutputCollector.AppendLine("RewriteMethod.GetTermsEnum returned " + te);
+                return te;
             }
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30b4f0d9/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs b/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
index b25de4d..a8521b0 100644
--- a/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
+++ b/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
@@ -87,6 +87,8 @@ namespace Lucene.Net.Search
                 BytesRef bytes;
                 while ((bytes = termsEnum.Next()) != null)
                 {
+                    OutputCollector.AppendLine("---");
+                    OutputCollector.AppendLine("inside TermCollectingRewrite while loop");
                     if (!collector.Collect(bytes))
                     {
                         return; // interrupt whole term collection, so also don't iterate
other subReaders

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30b4f0d9/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/TopTermsRewrite.cs b/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
index 94865f9..80a8549 100644
--- a/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
+++ b/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
@@ -173,7 +173,6 @@ namespace Lucene.Net.Search
 
             public override bool Collect(BytesRef bytes)
             {
-                OutputCollector.AppendLine("");
                 OutputCollector.AppendLine("TopTermsRewrite collector");
                 float boost = boostAtt.Boost;
 


Mime
View raw message