You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2009/11/20 20:30:11 UTC

svn commit: r882691 - /incubator/lucene.net/trunk/C#/src/Test/Search/TestTopDocsCollector.cs

Author: digy
Date: Fri Nov 20 19:30:11 2009
New Revision: 882691

URL: http://svn.apache.org/viewvc?rev=882691&view=rev
Log:
LUCENENET-296 TestTopDocsCollector Setup

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Search/TestTopDocsCollector.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestTopDocsCollector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestTopDocsCollector.cs?rev=882691&r1=882690&r2=882691&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestTopDocsCollector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestTopDocsCollector.cs Fri Nov 20 19:30:11 2009
@@ -116,6 +116,7 @@
 			
 			// populate an index with 30 documents, this should be enough for the test.
 			// The documents have no content - the test uses MatchAllDocsQuery().
+            dir = new RAMDirectory();
 			IndexWriter writer = new IndexWriter(dir, new KeywordAnalyzer(), MaxFieldLength.UNLIMITED);
 			for (int i = 0; i < 30; i++)
 			{