lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r940951 - /lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs
Date Tue, 04 May 2010 16:58:42 GMT
Author: digy
Date: Tue May  4 16:58:41 2010
New Revision: 940951

URL: http://svn.apache.org/viewvc?rev=940951&view=rev
Log:
Lost patch after 2.4.0 for LUCENENET-183 (SegmentTermVector IndexOf method always fails)

Modified:
    lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentTermVector.cs?rev=940951&r1=940950&r2=940951&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs Tue May  4 16:58:41
2010
@@ -80,7 +80,7 @@ namespace Lucene.Net.Index
 		{
 			if (terms == null)
 				return - 1;
-			int res = System.Array.BinarySearch(terms, termText);
+            int res = System.Array.BinarySearch(terms, termText, System.StringComparer.Ordinal);
 			return res >= 0?res:- 1;
 		}
 		



Mime
View raw message