lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r439677 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanTermQuery.cs
Date Sat, 02 Sep 2006 22:32:41 GMT
Author: aroush
Date: Sat Sep  2 15:32:40 2006
New Revision: 439677

URL: http://svn.apache.org/viewvc?rev=439677&view=rev
Log:
Before adding a new element to the Hastable, check that it doesn't already exists.

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanTermQuery.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanTermQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Spans/SpanTermQuery.cs?rev=439677&r1=439676&r2=439677&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanTermQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanTermQuery.cs Sat Sep  2
15:32:40 2006
@@ -149,7 +149,10 @@
 
         public override void  ExtractTerms(System.Collections.Hashtable terms)
         {
-            terms.Add(term, term);
+            if (terms.Contains(term) == false)
+            {
+                terms.Add(term, term);
+            }
         }
 		
 		public override System.String ToString(System.String field)



Mime
View raw message