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:08:45 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 7a93ebc87 -> 4eadaef97


more logging


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

Branch: refs/heads/failingtests
Commit: 4eadaef97e4a909be2d370a069285efd7f6c5fbd
Parents: 7a93ebc
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 11:08:27 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 11:08:27 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/TopScoreDocCollector.cs | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4eadaef9/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 55313c1..a9caa8b 100644
--- a/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
+++ b/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
@@ -97,6 +97,8 @@ namespace Lucene.Net.Search
                 Debug.Assert(score != float.NegativeInfinity);
                 Debug.Assert(!float.IsNaN(score));
 
+                OutputCollector.AppendLine("In order paging scored " + doc + " with score
" + score);
+
                 TotalHits_Renamed++;
 
                 if (score > After.Score || (score == After.Score && doc <=
AfterDoc))
@@ -158,6 +160,8 @@ namespace Lucene.Net.Search
                 // this collector cannot handle NaN
                 Debug.Assert(!float.IsNaN(score));
 
+                OutputCollector.AppendLine("Out of order scored " + doc + " with score "
+ score);
+
                 TotalHits_Renamed++;
                 if (score < PqTop.Score)
                 {
@@ -204,6 +208,8 @@ namespace Lucene.Net.Search
                 // this collector cannot handle NaN
                 Debug.Assert(!float.IsNaN(score));
 
+                OutputCollector.AppendLine("Out of order paging scored " + doc + " with score
" + score);
+
                 TotalHits_Renamed++;
                 if (score > After.Score || (score == After.Score && doc <=
AfterDoc))
                 {
@@ -284,6 +290,8 @@ namespace Lucene.Net.Search
                 throw new System.ArgumentException("numHits must be > 0; please use TotalHitCountCollector
if you just need the total hit count");
             }
 
+            OutputCollector.AppendLine("Creating collector numHits=" + numHits + ", scored
in order: " + docsScoredInOrder);
+
             if (docsScoredInOrder)
             {
                 return after == null ? (TopScoreDocCollector)new InOrderTopScoreDocCollector(numHits)
: new InOrderPagingScoreDocCollector(after, numHits);


Mime
View raw message