lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: try outputting integer values
Date Sat, 30 May 2015 00:48:53 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 032742563 -> e2a96032a


try outputting integer values


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

Branch: refs/heads/failingtests
Commit: e2a96032abefab5947c4ebb0da4a3c67010c84c1
Parents: 0327425
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 29 20:48:35 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 29 20:48:35 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2a96032/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 c8ece85..aca3135 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -246,6 +246,10 @@ namespace Lucene.Net.Search
             // for some edit distance, keep dropping the max edit distance.
             while (MaxEdits > 0 && (termAfter ? Bottom >= CalculateMaxBoost(MaxEdits)
: Bottom > CalculateMaxBoost(MaxEdits)))
             {
+                var intBottom = Number.FloatToIntBits(Bottom);
+                var maxBoost = Number.FloatToIntBits(CalculateMaxBoost(MaxEdits));
+
+                OutputCollector.AppendLine("        max edits subtracted. Bottom (int): "
+ intBottom + ", maxBoost (int): " + maxBoost);
                 MaxEdits--;
             }
 


Mime
View raw message