lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject svn commit: r1381311 - /incubator/lucene.net/trunk/test/core/Index/TestDoc.cs
Date Wed, 05 Sep 2012 19:26:39 GMT
Author: sisve
Date: Wed Sep  5 19:26:38 2012
New Revision: 1381311

URL: http://svn.apache.org/viewvc?rev=1381311&view=rev
Log:
Fixed compilation error resulting for previous change to demo code.

Modified:
    incubator/lucene.net/trunk/test/core/Index/TestDoc.cs

Modified: incubator/lucene.net/trunk/test/core/Index/TestDoc.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestDoc.cs?rev=1381311&r1=1381310&r2=1381311&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestDoc.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestDoc.cs Wed Sep  5 19:26:38 2012
@@ -189,7 +189,7 @@ namespace Lucene.Net.Index
 		
 		private SegmentInfo IndexDoc(IndexWriter writer, System.String fileName)
 		{
-			System.IO.DirectoryInfo file = new System.IO.DirectoryInfo(System.IO.Path.Combine(workDir.FullName,
fileName));
+			System.IO.FileInfo file = new System.IO.FileInfo(System.IO.Path.Combine(workDir.FullName,
fileName));
 			Document doc = FileDocument.Document(file);
             doc.Add(new Field("contents", new System.IO.StreamReader(file.FullName)));
 			writer.AddDocument(doc);



Mime
View raw message