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 verbose output
Date Sun, 24 May 2015 00:07:42 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 651a3140b -> 70f1d8495


more verbose output


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

Branch: refs/heads/failingtests
Commit: 70f1d8495ed775941f6ddb8b80a513848e34a7c0
Parents: 651a314
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 23 20:07:26 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 23 20:07:26 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/Terms.cs           | 3 +++
 src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/70f1d849/src/Lucene.Net.Core/Index/Terms.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/Terms.cs b/src/Lucene.Net.Core/Index/Terms.cs
index c544afc..223276a 100644
--- a/src/Lucene.Net.Core/Index/Terms.cs
+++ b/src/Lucene.Net.Core/Index/Terms.cs
@@ -1,4 +1,5 @@
 using System.Collections.Generic;
+using Lucene.Net.Search;
 
 namespace Lucene.Net.Index
 {
@@ -70,10 +71,12 @@ namespace Lucene.Net.Index
             }
             if (startTerm == null)
             {
+                OutputCollector.AppendLine("Terms.Intersect start null, " + compiled.ToDot());
                 return new AutomatonTermsEnum(Iterator(null), compiled);
             }
             else
             {
+                OutputCollector.AppendLine("Terms.Intersect start not null, " + compiled.ToDot());
                 return new AutomatonTermsEnumAnonymousInnerClassHelper(this, Iterator(null),
compiled, startTerm);
             }
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/70f1d849/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
index e1a7c4f..655ad06 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -180,6 +180,9 @@ namespace Lucene.Net.Search
             IList<CompiledAutomaton> runAutomata = InitAutomata(editDistance);
             if (editDistance < runAutomata.Count)
             {
+                OutputCollector.AppendLine("fte:getautomatonenum editDistance=" + editDistance
+ ", lastTerm=" +
+                                           lastTerm);
+
                 //if (BlockTreeTermsWriter.DEBUG) System.out.println("FuzzyTE.getAEnum: ed="
+ editDistance + " lastTerm=" + (lastTerm==null ? "null" : lastTerm.utf8ToString()));
                 CompiledAutomaton compiled = runAutomata[editDistance];
                 return new AutomatonFuzzyTermsEnum(this, Terms.Intersect(compiled, lastTerm
== null ? null : compiled.Floor(lastTerm, new BytesRef())), runAutomata.SubList(0, editDistance
+ 1).ToArray(/*new CompiledAutomaton[editDistance + 1]*/));


Mime
View raw message