You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/03/15 23:49:54 UTC
[12/50] [abbrv] lucenenet git commit: BUG:
Lucene.Net.Core.Index.CheckIndex: Compare field name ordinal
BUG: Lucene.Net.Core.Index.CheckIndex: Compare field name ordinal
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/b4f5c0c2
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/b4f5c0c2
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/b4f5c0c2
Branch: refs/heads/api-work
Commit: b4f5c0c2f989171950604de0f15929edf640f8e8
Parents: a7006e5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Mar 14 18:06:21 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Mar 14 22:04:25 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Core/Index/CheckIndex.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b4f5c0c2/src/Lucene.Net.Core/Index/CheckIndex.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/CheckIndex.cs b/src/Lucene.Net.Core/Index/CheckIndex.cs
index c7e386a..4261d32 100644
--- a/src/Lucene.Net.Core/Index/CheckIndex.cs
+++ b/src/Lucene.Net.Core/Index/CheckIndex.cs
@@ -1012,7 +1012,7 @@ namespace Lucene.Net.Index
foreach (string field in fields)
{
// MultiFieldsEnum relies upon this order...
- if (lastField != null && field.CompareTo(lastField) <= 0)
+ if (lastField != null && field.CompareToOrdinal(lastField) <= 0)
{
throw new Exception("fields out of order: lastField=" + lastField + " field=" + field);
}