lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r1062049 - /lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs
Date Fri, 21 Jan 2011 22:17:55 GMT
Author: digy
Date: Fri Jan 21 22:17:55 2011
New Revision: 1062049

URL: http://svn.apache.org/viewvc?rev=1062049&view=rev
Log:
LUCENENET-388 ("SystemException"  can not be caught by MultiSearcherThread expecting "IOException")

Modified:
    lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs

Modified: lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs?rev=1062049&r1=1062048&r2=1062049&view=diff
==============================================================================
--- lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs (original)
+++ lucene/lucene.net/tags/Lucene.Net_2_9_2/src/Lucene.Net/Search/FieldCacheImpl.cs Fri Jan
21 22:17:55 2011
@@ -869,7 +869,9 @@ namespace Lucene.Net.Search
 						// store term text
 						// we expect that there is at most one term per document
 						if (t >= mterms.Length)
-							throw new System.SystemException("there are more terms than " + "documents in field
\"" + field + "\", but it's impossible to sort on " + "tokenized fields");
+							//throw new System.SystemException("there are more terms than " + "documents in field
\"" + field + "\", but it's impossible to sort on " + "tokenized fields");
+                            //LUCENENET-388
+                            throw new System.IO.IOException("there are more terms than "
+ "documents in field \"" + field + "\", but it's impossible to sort on " + "tokenized fields");
 						mterms[t] = term.Text();
 						
 						termDocs.Seek(termEnum);



Mime
View raw message