lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1083576 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Index/IndexWriter.cs Test/Index/TestIndexWriter.cs
Date Sun, 20 Mar 2011 21:30:28 GMT
Author: digy
Date: Sun Mar 20 21:30:27 2011
New Revision: 1083576

URL: http://svn.apache.org/viewvc?rev=1083576&view=rev
Log:
[LUCENENET-399] changed the visibility of IndexWriter.Merge

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/IndexWriter.cs?rev=1083576&r1=1083575&r2=1083576&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs Sun Mar 20 21:30:27
2011
@@ -5423,11 +5423,14 @@ namespace Lucene.Net.Index
 				throw new System.SystemException(null, t);
 		}
 		
+		public void Merge_ForNUnit(MergePolicy.OneMerge merge)
+        {
+            Merge(merge);
+        }
 		/// <summary> Merges the indicated segments, replacing them in the stack with a
 		/// single segment.
 		/// </summary>
-		
-		public /*internal*/ void  Merge(MergePolicy.OneMerge merge)
+		internal void  Merge(MergePolicy.OneMerge merge)
 		{
 			
 			bool success = false;

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexWriter.cs?rev=1083576&r1=1083575&r2=1083576&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs Sun Mar 20 21:30:27 2011
@@ -2401,7 +2401,7 @@ namespace Lucene.Net.Index
                             break;
                         for (int i = 0; i < merge.segments_ForNUnit.Count; i++)
                             ; // {{}} assert merge.segments.Info(i).docCount < 20;
-                        writer.Merge(merge);
+                        writer.Merge_ForNUnit(merge);
                     }
                 }
             }



Mime
View raw message