lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r479864 - in /incubator/lucene.net/trunk/C#/src: ./ Demo/DeleteFiles/ Demo/DemoLib/ Demo/IndexFiles/ Demo/IndexHtml/ Demo/SearchFiles/ Lucene.Net/ Lucene.Net/Index/ Lucene.Net/Search/ Test/ Test/Search/
Date Tue, 28 Nov 2006 02:58:04 GMT
Author: aroush
Date: Mon Nov 27 18:58:02 2006
New Revision: 479864

URL: http://svn.apache.org/viewvc?view=rev&rev=479864
Log:
Release of Lucene.Net.2.0 build 002 "Beta"

Modified:
    incubator/lucene.net/trunk/C#/src/Demo/DeleteFiles/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Demo/DemoLib/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Demo/IndexFiles/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Demo/IndexHtml/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Demo/SearchFiles/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/HISTORY.txt
    incubator/lucene.net/trunk/C#/src/Lucene.Net/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/FieldInfos.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentReader.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/IndexSearcher.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MatchAllDocsQuery.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/PrefixQuery.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/RangeQuery.cs
    incubator/lucene.net/trunk/C#/src/Test/AssemblyInfo.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestSort.cs

Modified: incubator/lucene.net/trunk/C#/src/Demo/DeleteFiles/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Demo/DeleteFiles/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Demo/DeleteFiles/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Demo/DeleteFiles/AssemblyInfo.cs Mon Nov 27 18:58:02
2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Demo/DemoLib/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Demo/DemoLib/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Demo/DemoLib/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Demo/DemoLib/AssemblyInfo.cs Mon Nov 27 18:58:02 2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Demo/IndexFiles/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Demo/IndexFiles/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Demo/IndexFiles/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Demo/IndexFiles/AssemblyInfo.cs Mon Nov 27 18:58:02
2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Demo/IndexHtml/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Demo/IndexHtml/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Demo/IndexHtml/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Demo/IndexHtml/AssemblyInfo.cs Mon Nov 27 18:58:02 2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Demo/SearchFiles/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Demo/SearchFiles/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Demo/SearchFiles/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Demo/SearchFiles/AssemblyInfo.cs Mon Nov 27 18:58:02
2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/HISTORY.txt
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/HISTORY.txt?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/HISTORY.txt (original)
+++ incubator/lucene.net/trunk/C#/src/HISTORY.txt Mon Nov 27 18:58:02 2006
@@ -2,6 +2,23 @@
 ------------------
 
 
+27Nov06:
+	- Release:  Lucene.Net.2.0 build 002 "Beta"
+	- Lucene.Net.Demo.SearchFiles.cs -- parted new code
+	- Lucene.Net.Index.SegmentReader.Get() -- changed Exception to SystemException
+	- Lucene.Net.Search.StringIndex.cs -- added a Close() method (to fix sort memory leak defect)
+	- Lucene.Net.Search.FieldCacheImpl.cs -- added a Close() method (to fix sort memory leak
defect)
+	- Lucene.Net.Search.FieldSortHitQueue.cs -- added a Close() method (to fix sort memory leak
defect)
+	- Lucene.Net.Search.IndexSearcher.cs -- added a Close() method (to fix sort memory leak
defect)
+	- Lucene.Net.Search.MatchAllDocsQuery.Clone() -- removed this unused methods
+	- Lucene.Net.Search.MultiPhraseQuery.Clone() -- removed this unused methods
+	- Lucene.Net.Search.PrefixQuery.Clone() -- removed this unused methods
+	- Lucene.Net.Search.RangeQuery.Clone() -- removed this unused methods
+	- Lucene.Net.Index.FieldInfos.FieldName()/FieldInfo() -- avoid the use of exception throwing
+	- Issues: Lucene.Net.Search.TestSort.TestInternationalMultiSearcherSort -- NUnit test FAILS
+	- Issues: Lucene.Net.Search.TestSort.TestInternationalSort -- NUnit test FAILS
+
+
 17Aug06:
 	- Release:  Lucene.Net.2.0 build 001 "Alpha"
 

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/AssemblyInfo.cs Mon Nov 27 18:58:02 2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/FieldInfos.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/FieldInfos.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/FieldInfos.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/FieldInfos.cs Mon Nov 27 18:58:02 2006
@@ -255,6 +255,12 @@
 		/// </returns>
 		public System.String FieldName(int fieldNumber)
 		{
+			FieldInfo fi = FieldInfo(fieldNumber);
+			if (fi != null)
+				return fi.name;
+			return "";
+
+			/*
 			try
 			{
 				return FieldInfo(fieldNumber).name;
@@ -263,6 +269,7 @@
 			{
 				return "";
 			}
+			*/
 		}
 		
 		/// <summary> Return the fieldinfo object referenced by the fieldNumber.</summary>
@@ -273,7 +280,12 @@
 		/// </returns>
 		public FieldInfo FieldInfo(int fieldNumber)
 		{
-			try
+			if (fieldNumber > -1 && fieldNumber < byNumber.Count)
+				return (FieldInfo) byNumber[fieldNumber];
+			return null;
+
+			/*
+            try
 			{
 				return (FieldInfo) byNumber[fieldNumber];
 			}
@@ -281,6 +293,7 @@
 			{
 				return null;
 			}
+			*/
 		}
 		
 		public int Size()

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentReader.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentReader.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentReader.cs Mon Nov 27 18:58:02
2006
@@ -135,7 +135,7 @@
             }
             catch (System.Exception e)
             {
-                throw new System.Exception("cannot load SegmentReader class: " + e, e);
+                throw new System.SystemException("cannot load SegmentReader class: " + e,
e);
             }
             instance.Init(dir, sis, closeDir, ownDir);
             instance.Initialize(si);
@@ -624,12 +624,12 @@
                     }
                     catch (System.Exception e)
                     {
-                        throw new System.Exception("cannot load default SegmentReader class:
" + e, e); // {{Aroush-2.0}} How do we throw a RuntimeException
+                        throw new System.SystemException("cannot load default SegmentReader
class: " + e, e);
                     }
                 }
                 catch (System.Exception e)
                 {
-                    throw new System.Exception("cannot load SegmentReader class: " + e, e);
// {{Aroush-2.0}} How do we throw a RuntimeException
+                    throw new System.SystemException("cannot load SegmentReader class: "
+ e, e);
                 }
             }
         }

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldCache.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs Mon Nov 27 18:58:02
2006
@@ -63,7 +63,7 @@
 	}
 	public interface FieldCache
 	{
-		
+		void Close(IndexReader reader);
 		
 		/// <summary>Checks the internal cache for an appropriate entry, and if none is
 		/// found, reads the terms in <code>field</code> as integers and returns an
array

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldCacheImpl.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs Mon Nov 27 18:58:02
2006
@@ -38,6 +38,21 @@
 	/// </version>
 	class FieldCacheImpl : FieldCache
 	{
+		public virtual void Close(IndexReader reader)
+		{ 
+			lock (this) 
+			{ 
+				System.Collections.Hashtable readerCache = (System.Collections.Hashtable) cache[reader];

+				if (readerCache != null) 
+				{ 
+					readerCache.Clear(); 
+					readerCache = null;
+				}
+
+				cache.Remove(reader); 
+			} 
+		}
+
 		public class AnonymousClassIntParser : IntParser
 		{
 			public virtual int ParseInt(System.String value_Renamed)

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldSortedHitQueue.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs Mon Nov 27
18:58:02 2006
@@ -39,6 +39,21 @@
 	/// </seealso>
 	public class FieldSortedHitQueue : PriorityQueue
 	{
+		internal static void Close(IndexReader reader) 
+		{ 
+			lock (Comparators.SyncRoot) 
+			{ 
+				System.Collections.Hashtable readerCache = (System.Collections.Hashtable) Comparators[reader];

+				if (readerCache != null) 
+				{ 
+					readerCache.Clear(); 
+					readerCache = null;
+				} 
+
+				Comparators.Remove(reader);
+			} 
+		}
+
 		private class AnonymousClassScoreDocComparator : ScoreDocComparator
 		{
 			public AnonymousClassScoreDocComparator(int[] fieldOrder)

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/IndexSearcher.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/IndexSearcher.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/IndexSearcher.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/IndexSearcher.cs Mon Nov 27 18:58:02
2006
@@ -109,7 +109,12 @@
 		public override void  Close()
 		{
 			if (closeReader)
+			{
+				FieldSortedHitQueue.Close(reader); 
+				Lucene.Net.Search.FieldCache_Fields.DEFAULT.Close(reader);
+
 				reader.Close();
+			}
 		}
 		
 		// inherit javadoc

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MatchAllDocsQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/MatchAllDocsQuery.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MatchAllDocsQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MatchAllDocsQuery.cs Mon Nov 27 18:58:02
2006
@@ -202,11 +202,5 @@
 		{
 			return BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0);
 		}
-
-        // {{Aroush-1.9}} Do we need this?!
-        override public System.Object Clone()
-		{
-			return null;
-		}
 	}
 }

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/MultiPhraseQuery.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs Mon Nov 27 18:58:02
2006
@@ -397,10 +397,5 @@
         {
             return BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ slop ^ termArrays.GetHashCode()
^ positions.GetHashCode() ^ 0x4AC65113;
         }
-        // {{Aroush-1.9}} Do we need this?!
-        override public System.Object Clone()
-		{
-			return null;
-		}
 	}
 }

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/PrefixQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/PrefixQuery.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/PrefixQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/PrefixQuery.cs Mon Nov 27 18:58:02
2006
@@ -104,10 +104,5 @@
 		{
 			return BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ prefix.GetHashCode()
^ 0x6634D93C;
 		}
-        // {{Aroush-1.9}} Do we need this?!
-        override public System.Object Clone()
-		{
-			return null;
-		}
 	}
 }

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/RangeQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/RangeQuery.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/RangeQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/RangeQuery.cs Mon Nov 27 18:58:02
2006
@@ -194,10 +194,5 @@
             h ^= (this.inclusive ? 0x2742E74A : 0);
             return h;
         }
-		// {{Aroush-1.9}} Do we need this?!
-		override public System.Object Clone()
-		{
-			return null;
-		}
 	}
 }

Modified: incubator/lucene.net/trunk/C#/src/Test/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/AssemblyInfo.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/AssemblyInfo.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/AssemblyInfo.cs Mon Nov 27 18:58:02 2006
@@ -26,7 +26,7 @@
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersion("2.0.0.001")]
+[assembly: AssemblyVersion("2.0.0.002")]
 
 //
 // In order to sign your assembly you must specify a key to use. Refer to the 

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestDisjunctionMaxQuery.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs Mon Nov 27 18:58:02
2006
@@ -257,13 +257,13 @@
 				DisjunctionMaxQuery q1 = new DisjunctionMaxQuery(0.0f);
 				q1.Add(Tq("hed", "albino"));
 				q1.Add(Tq("dek", "albino"));
-                q.Add(q1, BooleanClause.Occur.SHOULD); //false,false);
+                q.Add(q1, BooleanClause.Occur.MUST); //false,false);
             }
 			{
 				DisjunctionMaxQuery q2 = new DisjunctionMaxQuery(0.0f);
 				q2.Add(Tq("hed", "elephant"));
 				q2.Add(Tq("dek", "elephant"));
-                q.Add(q2, BooleanClause.Occur.SHOULD); //false,false);
+                q.Add(q2, BooleanClause.Occur.MUST); //false,false);
             }
 			
 			

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestSort.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestSort.cs?view=diff&rev=479864&r1=479863&r2=479864
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestSort.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestSort.cs Mon Nov 27 18:58:02 2006
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright 2004 The Apache Software Foundation
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -127,7 +127,23 @@
         // the float field to sort by float
         // the string field to sort by string
         // the i18n field includes accented characters for testing locale-specific sorting
-        private System.String[][] data = new System.String[][]{new System.String[]{"A", "x
a", "5", "4f", "c", "A-3", "p\u00EAche"}, new System.String[]{"B", "y a", "5", "3.4028235E38",
"i", "B-10", "HAT"}, new System.String[]{"C", "x a b c", "2147483647", "1.0", "j", "A-2",
"p\u00E9ch\u00E9"}, new System.String[]{"D", "y a b c", "-1", "0.0f", "a", "C-0", "HUT"},
new System.String[]{"E", "x a b c d", "5", "2f", "h", "B-8", "peach"}, new System.String[]{"F",
"y a b c d", "2", "3.14159f", "g", "B-1", "H\u00C5T"}, new System.String[]{"G", "x a b c d",
"3", "-1.0", "f", "C-100", "sin"}, new System.String[]{"H", "y a b c d", "0", "1.4E-45", "e",
"C-88", "H\u00D8T"}, new System.String[]{"I", "x a b c d e f", "-2147483648", "1.0e+0", "d",
"A-10", "s\u00EDn"}, new System.String[]{"J", "y a b c d e f", "4", ".5", "b", "C-7", "HOT"},
new System.String[]{"W", "g", "1", null, null, null, null}, new System.String[]{"X", "g",
"1", "0.1", null, null, null}, new System.String[]{"Y", "g", "1
 ", "0.2", null, null, null}, new System.String[]{"Z", "f g", null, null, null, null, null}};
+        private System.String[][] data = new System.String[][]{
+                               // tracer  contents         int            float         
 string   custom   i18n
+            new System.String[]{   "A",   "x a",           "5",           "4f",         
 "c",     "A-3",   "p\u00EAche"},
+            new System.String[]{   "B",   "y a",           "5",           "3.4028235E38",
"i",     "B-10",  "HAT"},
+            new System.String[]{   "C",   "x a b c",       "2147483647",  "1.0",        
 "j",     "A-2",   "p\u00E9ch\u00E9"},
+            new System.String[]{   "D",   "y a b c",       "-1",          "0.0f",       
 "a",     "C-0",   "HUT"},
+            new System.String[]{   "E",   "x a b c d",     "5",           "2f",         
 "h",     "B-8",   "peach"},
+            new System.String[]{   "F",   "y a b c d",     "2",           "3.14159f",   
 "g",     "B-1",   "H\u00C5T"},
+            new System.String[]{   "G",   "x a b c d",     "3",           "-1.0",       
 "f",     "C-100", "sin"},
+            new System.String[]{   "H",   "y a b c d",     "0",           "1.4E-45",    
 "e",     "C-88",  "H\u00D8T"},
+            new System.String[]{   "I",   "x a b c d e f", "-2147483648", "1.0e+0",     
 "d",     "A-10",  "s\u00EDn"},
+            new System.String[]{   "J",   "y a b c d e f", "4",           ".5",         
 "b",     "C-7",   "HOT"},
+            new System.String[]{   "W",   "g",             "1",           null,         
 null,    null,    null},
+            new System.String[]{   "X",   "g",             "1",           "0.1",        
 null,    null,    null},
+            new System.String[]{   "Y",   "g",             "1",           "0.2",        
 null,    null,    null},
+            new System.String[]{   "Z",   "f g",           null,          null,         
 null,    null,    null}};
+
 		
 		// create an index of all the documents, or just the x, or just the y documents
 		private Searcher GetIndex(bool even, bool odd)



Mime
View raw message