lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r419409 - /incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs
Date Thu, 06 Jul 2006 02:21:25 GMT
Author: aroush
Date: Wed Jul  5 19:21:24 2006
New Revision: 419409

URL: http://svn.apache.org/viewvc?rev=419409&view=rev
Log: (empty)

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestStopAnalyzer.cs?rev=419409&r1=419408&r2=419409&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs Wed Jul  5 19:21:24
2006
@@ -31,7 +31,8 @@
 		{
 			for (int i = 0; i < StopAnalyzer.ENGLISH_STOP_WORDS.Length; i++)
 			{
-				inValidTokens.Add(StopAnalyzer.ENGLISH_STOP_WORDS[i], StopAnalyzer.ENGLISH_STOP_WORDS[i]);
+                if (inValidTokens.ContainsKey(StopAnalyzer.ENGLISH_STOP_WORDS[i]) == false)
+				    inValidTokens.Add(StopAnalyzer.ENGLISH_STOP_WORDS[i], StopAnalyzer.ENGLISH_STOP_WORDS[i]);
 			}
 		}
 		



Mime
View raw message