lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: mre logging
Date Sat, 23 May 2015 17:47:56 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 91ad7f1b9 -> 8ef362e39


mre logging


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

Branch: refs/heads/failingtests
Commit: 8ef362e394d398be2891cbe70cc9b64052068101
Parents: 91ad7f1
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 13:47:45 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 13:47:45 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8ef362e3/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 f073ec0..dfa32f6 100644
--- a/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
+++ b/src/Lucene.Net.Core/Search/TopTermsRewrite.cs
@@ -76,8 +76,28 @@ namespace Lucene.Net.Search
 
             var q = TopLevelQuery;
             ScoreTerm[] scoreTerms = stQueue.ToArray(/*new ScoreTerm[stQueue.size()]*/);
+            OutputCollector.AppendLine("TopTermsRewrite.Rewrite Score terms:");
+            foreach (var t in scoreTerms)
+            {
+                OutputCollector.AppendLine("    " + t + ", term states:");
+                foreach (var s in t.TermState.States)
+                {
+                    OutputCollector.AppendLine("        " + s + " type " + (s != null ? s.GetType().ToString()
: "null"));
+                }
+            }
+
             ArrayUtil.TimSort(scoreTerms, scoreTermSortByTermComp);
 
+            OutputCollector.AppendLine("TopTermsRewrite.Rewrite After reorder terms:");
+            foreach (var t in scoreTerms)
+            {
+                OutputCollector.AppendLine("    " + t + ", term states:");
+                foreach (var s in t.TermState.States)
+                {
+                    OutputCollector.AppendLine("        " + s + " type " + (s != null ? s.GetType().ToString()
: "null"));
+                }
+            }
+
             foreach (ScoreTerm st in scoreTerms)
             {
                 Term term = new Term(query.field, st.Bytes);


Mime
View raw message