lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r836038 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs
Date Fri, 13 Nov 2009 22:39:37 GMT
Author: digy
Date: Fri Nov 13 22:39:37 2009
New Revision: 836038

URL: http://svn.apache.org/viewvc?rev=836038&view=rev
Log:
LUCENENET-235 SegmentMerger.patch

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentMerger.cs?rev=836038&r1=836037&r2=836038&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs Fri Nov 13 22:39:37
2009
@@ -310,7 +310,9 @@
 			System.Collections.IEnumerator i = names.GetEnumerator();
 			while (i.MoveNext())
 			{
-				System.String field = (System.String) i.Current;
+                //There are too much indirections here. After all tests pass, some cleanup
may be needed. {{DIGY}}
+                System.Collections.DictionaryEntry tmp = (System.Collections.DictionaryEntry)((System.Collections.DictionaryEntry)i.Current).Key;
+				System.String field = (System.String) tmp.Key;
 				fInfos.Add(field, true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector,
!reader.HasNorms(field), storePayloads, omitTFAndPositions);
 			}
 		}



Mime
View raw message