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 17:24:36 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests c64a1aa00 -> 91ad7f1b9


more logging


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

Branch: refs/heads/failingtests
Commit: 91ad7f1b98817e870188b010fc12d43830f33ec8
Parents: c64a1aa
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 13:24:25 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 13:24:25 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/TermContext.cs | 2 +-
 src/Lucene.Net.Core/Search/TermQuery.cs  | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/91ad7f1b/src/Lucene.Net.Core/Index/TermContext.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/TermContext.cs b/src/Lucene.Net.Core/Index/TermContext.cs
index 36ba770..cfebb80 100644
--- a/src/Lucene.Net.Core/Index/TermContext.cs
+++ b/src/Lucene.Net.Core/Index/TermContext.cs
@@ -43,7 +43,7 @@ namespace Lucene.Net.Index
         /// </summary>
         public readonly IndexReaderContext TopReaderContext;
 
-        private readonly TermState[] States;
+        internal readonly TermState[] States;
         private int docFreq;
         private long totalTermFreq;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/91ad7f1b/src/Lucene.Net.Core/Search/TermQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/TermQuery.cs b/src/Lucene.Net.Core/Search/TermQuery.cs
index 29d8d9d..fae12c4 100644
--- a/src/Lucene.Net.Core/Search/TermQuery.cs
+++ b/src/Lucene.Net.Core/Search/TermQuery.cs
@@ -179,6 +179,12 @@ namespace Lucene.Net.Search
         /// </summary>
         public TermQuery(Term t, TermContext states)
         {
+            OutputCollector.AppendLine("term query created: " + t + ". States:");
+            foreach (var s in states.States)
+            {
+                OutputCollector.AppendLine("    " + s + ", " + (s != null ? s.GetType().ToString()
: "null"));
+            }
+
             Debug.Assert(states != null);
             _term = t;
             DocFreq = states.DocFreq;


Mime
View raw message