You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by la...@apache.org on 2015/05/24 22:28:07 UTC
lucenenet git commit: change logging
Repository: lucenenet
Updated Branches:
refs/heads/failingtests 8248490ef -> 17f0683bf
change logging
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/17f0683b
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/17f0683b
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/17f0683b
Branch: refs/heads/failingtests
Commit: 17f0683bf5dda268c4e8e885d67a1436eef94715
Parents: 8248490
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sun May 24 16:27:57 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sun May 24 16:27:57 2015 -0400
----------------------------------------------------------------------
src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/17f0683b/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 4757fd0..0fc04ac 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -245,12 +245,18 @@ namespace Lucene.Net.Search
OutputCollector.AppendLine(" termAfter=" + termAfter + ", Bottom=" + Bottom.ToString("f20"));
var maxBoost = CalculateMaxBoost(MaxEdits);
+
+ // this is just silliness, but worth a shot
+ for (int i = 0; i < 10; i++)
+ {
+ OutputCollector.AppendLine(" repeated calc: " + maxBoost.ToString("f20"));
+ maxBoost = CalculateMaxBoost(MaxEdits);
+ }
// as long as the max non-competitive boost is >= the max boost
// for some edit distance, keep dropping the max edit distance.
while (MaxEdits > 0 && (termAfter ? Bottom >= maxBoost : Bottom > maxBoost))
{
- OutputCollector.AppendLine(" subtract. maxBoost was:" + maxBoost.ToString("f20"));
MaxEdits--;
maxBoost = CalculateMaxBoost(MaxEdits);
}