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 15:49:12 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 0d3a32aed -> 1e9bcd75b


more logging


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

Branch: refs/heads/failingtests
Commit: 1e9bcd75bb2cbc5e6dd20b43e778024f7dc7c42a
Parents: 0d3a32a
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 11:49:02 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 11:49:02 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/IndexSearcher.cs        | 3 +++
 src/Lucene.Net.Core/Search/TopScoreDocCollector.cs | 2 ++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e9bcd75/src/Lucene.Net.Core/Search/IndexSearcher.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/IndexSearcher.cs b/src/Lucene.Net.Core/Search/IndexSearcher.cs
index c494231..fb41a38 100644
--- a/src/Lucene.Net.Core/Search/IndexSearcher.cs
+++ b/src/Lucene.Net.Core/Search/IndexSearcher.cs
@@ -647,6 +647,7 @@ namespace Lucene.Net.Search
                 }
                 catch (CollectionTerminatedException)
                 {
+                    OutputCollector.AppendLine("IndexSearcher.ColletionTerminated (no doc
of interest) for " + ctx);
                     // there is no doc of interest in this reader context
                     // continue with the following leaf
                     continue;
@@ -656,12 +657,14 @@ namespace Lucene.Net.Search
                 {
                     try
                     {
+                        OutputCollector.AppendLine("IndexSearcher.Search bulk scorer " +
scorer);
                         scorer.Score(collector);
                     }
                     catch (CollectionTerminatedException)
                     {
                         // collection was terminated prematurely
                         // continue with the following leaf
+                        OutputCollector.AppendLine("IndexSearcher.ColletionTerminated (prematurely)
for " + ctx);
                     }
                 }
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e9bcd75/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs b/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
index a9caa8b..37a813c 100644
--- a/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
+++ b/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
@@ -340,6 +340,8 @@ namespace Lucene.Net.Search
                 maxScore = Pq.Pop().Score;
             }
 
+            OutputCollector.AppendLine("Returning top collector. Total hits=" + TotalHits_Renamed
+ ", results.Length=" +
+                                       results.Length + ", maxScore=" + maxScore);
             return new TopDocs(TotalHits_Renamed, results, maxScore);
         }
 


Mime
View raw message