lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r788087 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs
Date Wed, 24 Jun 2009 17:11:25 GMT
Author: digy
Date: Wed Jun 24 17:11:25 2009
New Revision: 788087

URL: http://svn.apache.org/viewvc?rev=788087&view=rev
Log:
LUCENENET-183 SegmentTermVector IndexOf method always fails

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentTermVector.cs?rev=788087&r1=788086&r2=788087&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermVector.cs Wed Jun 24 17:11:25
2009
@@ -80,7 +80,7 @@
 		{
 			if (terms == null)
 				return - 1;
-			int res = System.Array.BinarySearch(terms, termText);
+			int res = System.Array.BinarySearch(terms, termText,StringComparer.Ordinal);
 			return res >= 0 ? res : - 1;
 		}
 		



Mime
View raw message