lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r885824 - /incubator/lucene.net/trunk/C#/src/Test/Util/LuceneTestCase.cs
Date Tue, 01 Dec 2009 16:33:31 GMT
Author: digy
Date: Tue Dec  1 16:33:31 2009
New Revision: 885824

URL: http://svn.apache.org/viewvc?rev=885824&view=rev
Log:
LUCENENET-303 Running TestComplexExplanations.TestMA3 after TestBoolean2.TestQueries01 fails.

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Util/LuceneTestCase.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Util/LuceneTestCase.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Util/LuceneTestCase.cs?rev=885824&r1=885823&r2=885824&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Util/LuceneTestCase.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Util/LuceneTestCase.cs Tue Dec  1 16:33:31 2009
@@ -52,7 +52,8 @@
 		
 		[NonSerialized]
 		private bool savedAPISetting = false;
-		
+        bool allowDocsOutOfOrder = true;
+
 		public LuceneTestCase():base()
 		{
 		}
@@ -60,10 +61,14 @@
 		public LuceneTestCase(System.String name)
 		{
 		}
-		
+
+        
 		[SetUp]
 		public virtual void  SetUp()
 		{
+            //{{Lucene.Net-2.9.1}}
+            allowDocsOutOfOrder = Lucene.Net.Search.BooleanQuery.GetAllowDocsOutOfOrder();
+
 			ConcurrentMergeScheduler.SetTestMode();
 			
 			savedAPISetting = TokenStream.GetOnlyUseNewAPI();
@@ -117,6 +122,9 @@
 			TokenStream.SetOnlyUseNewAPI(savedAPISetting);
 			//base.TearDown();  // {{Aroush-2.9}}
             this.seed_init = false;
+
+            //{{Lucene.Net-2.9.1}}
+            Lucene.Net.Search.BooleanQuery.SetAllowDocsOutOfOrder(allowDocsOutOfOrder); 
 		}
 		
 		/// <summary> Asserts that FieldCacheSanityChecker does not detect any 



Mime
View raw message