You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/10/02 14:35:26 UTC
[08/50] [abbrv] lucenenet git commit: Fixed bug in
SortedInputIterator where the sorting was using the wrong comparator instance,
which caused exceptions when trying to decode the files.
Fixed bug in SortedInputIterator where the sorting was using the wrong comparator instance, which caused exceptions when trying to decode the files.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/f7106d57
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/f7106d57
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/f7106d57
Branch: refs/heads/master
Commit: f7106d574af61721a965d91680627f9118b0aeaf
Parents: c7ed8cc
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Sep 15 19:01:42 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Oct 2 17:44:09 2016 +0700
----------------------------------------------------------------------
src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f7106d57/src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs b/src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs
index f9a9fd9..47a2aa9 100644
--- a/src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs
+++ b/src/Lucene.Net.Suggest/Suggest/SortedInputIterator.cs
@@ -185,7 +185,8 @@ namespace Lucene.Net.Search.Suggest
outerInstance.DecodeContexts(leftScratch, input);
outerInstance.DecodeContexts(rightScratch, input);
}
- int cmp = outerInstance.Comparator.Compare(leftScratch, rightScratch);
+ // LUCENENET NOTE: outerInstance.Comparator != outerInstance.comparator!!
+ int cmp = outerInstance.comparator.Compare(leftScratch, rightScratch);
if (cmp != 0)
{
return cmp;