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 14:53:49 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 0af2d193b -> 7a93ebc87


more logging


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

Branch: refs/heads/failingtests
Commit: 7a93ebc877ab138afc652abfa107a991439ca7e9
Parents: 0af2d19
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 10:53:38 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 10:53:38 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7a93ebc8/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 3697bd0..55313c1 100644
--- a/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
+++ b/src/Lucene.Net.Core/Search/TopScoreDocCollector.cs
@@ -51,10 +51,12 @@ namespace Lucene.Net.Search
                 // this collector cannot handle these scores:
                 Debug.Assert(score != float.NegativeInfinity);
                 Debug.Assert(!float.IsNaN(score));
+                OutputCollector.AppendLine("Scored " + doc + " with score " + score);
 
                 TotalHits_Renamed++;
                 if (score <= PqTop.Score)
                 {
+                    OutputCollector.AppendLine("--- Returned");
                     // Since docs are returned in-order (i.e., increasing doc Id), a document
                     // with equal score to pqTop.score cannot compete since HitQueue favors
                     // documents with lower doc Ids. Therefore reject those docs too.


Mime
View raw message