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 00:45:57 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 70f1d8495 -> 2e2f90b76


more logging


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

Branch: refs/heads/failingtests
Commit: 2e2f90b76577f4bcc6bc02232f083b1c28ca5bf9
Parents: 70f1d84
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 20:45:39 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 20:45:39 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs        | 4 ++--
 src/Lucene.Net.Core/Search/TermCollectingRewrite.cs | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2e2f90b7/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 655ad06..206c58a 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -180,8 +180,7 @@ namespace Lucene.Net.Search
             IList<CompiledAutomaton> runAutomata = InitAutomata(editDistance);
             if (editDistance < runAutomata.Count)
             {
-                OutputCollector.AppendLine("fte:getautomatonenum editDistance=" + editDistance
+ ", lastTerm=" +
-                                           lastTerm);
+                OutputCollector.AppendLine("fte:getautomatonenum editDistance=" + editDistance
+ ", lastTerm=" + lastTerm);
 
                 //if (BlockTreeTermsWriter.DEBUG) System.out.println("FuzzyTE.getAEnum: ed="
+ editDistance + " lastTerm=" + (lastTerm==null ? "null" : lastTerm.utf8ToString()));
                 CompiledAutomaton compiled = runAutomata[editDistance];
@@ -287,6 +286,7 @@ namespace Lucene.Net.Search
             OutputCollector.AppendLine("FuzzyTermsEnum.Next start");
             if (QueuedBottom != null)
             {
+                OutputCollector.AppendLine("FuzzyTermsEnum.Next bottom changed");
                 BottomChanged(QueuedBottom, false);
                 QueuedBottom = null;
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2e2f90b7/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 a8521b0..425f01f 100644
--- a/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
+++ b/src/Lucene.Net.Core/Search/TermCollectingRewrite.cs
@@ -50,9 +50,12 @@ namespace Lucene.Net.Search
         internal void CollectTerms(IndexReader reader, MultiTermQuery query, TermCollector
collector)
         {
             IndexReaderContext topReaderContext = reader.Context;
+            OutputCollector.AppendLine("TermCollectingRewrite start, leaves=" + topReaderContext.Leaves.Count);
             IComparer<BytesRef> lastTermComp = null;
             foreach (AtomicReaderContext context in topReaderContext.Leaves)
             {
+                OutputCollector.AppendLine("TermCollectingRewrite leave=" + context);
+            
                 Fields fields = context.AtomicReader.Fields;
                 if (fields == null)
                 {
@@ -87,8 +90,7 @@ namespace Lucene.Net.Search
                 BytesRef bytes;
                 while ((bytes = termsEnum.Next()) != null)
                 {
-                    OutputCollector.AppendLine("---");
-                    OutputCollector.AppendLine("inside TermCollectingRewrite while loop");
+                    OutputCollector.AppendLine("TermCollectingRewrite while loop");
                     if (!collector.Collect(bytes))
                     {
                         return; // interrupt whole term collection, so also don't iterate
other subReaders


Mime
View raw message