lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r882256 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/QueryParser/ Lucene.Net/Search/ Test/Search/ Test/Search/Function/
Date Thu, 19 Nov 2009 19:15:50 GMT
Author: digy
Date: Thu Nov 19 19:15:49 2009
New Revision: 882256

URL: http://svn.apache.org/viewvc?rev=882256&view=rev
Log:
LUCENENET-285 Problem with "CurrentCulture"

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/QueryParser/QueryParser.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/FuzzyQuery.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SortField.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/Function/FunctionTestSetup.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/QueryParser/QueryParser.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/QueryParser/QueryParser.cs?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/QueryParser/QueryParser.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/QueryParser/QueryParser.cs Thu Nov 19 19:15:49
2009
@@ -1615,7 +1615,7 @@
 				float f = (float) 1.0;
 				try
 				{
-					f = (float) System.Single.Parse(boost.image);
+					f = (float) SupportClass.Single.Parse(boost.image);
 					q.SetBoost(f);
 				}
 				catch (System.Exception ignored)
@@ -1732,7 +1732,7 @@
 						float fms = fuzzyMinSim;
 						try
 						{
-							fms = (float) System.Single.Parse(fuzzySlop.image.Substring(1));
+							fms = (float) SupportClass.Single.Parse(fuzzySlop.image.Substring(1));
 						}
 						catch (System.Exception ignored)
 						{
@@ -1938,7 +1938,7 @@
 					{
 						try
 						{
-							s = (int) System.Single.Parse(fuzzySlop.image.Substring(1));
+							s = (int) SupportClass.Single.Parse(fuzzySlop.image.Substring(1));
 						}
 						catch (System.Exception ignored)
 						{
@@ -1958,7 +1958,7 @@
 				float f = (float) 1.0;
 				try
 				{
-					f = (float) System.Single.Parse(boost.image);
+					f = (float) SupportClass.Single.Parse(boost.image);
 				}
 				catch (System.Exception ignored)
 				{

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?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs Thu Nov 19 19:15:49
2009
@@ -249,7 +249,7 @@
 		{
             try
             {
-                return System.Single.Parse(value_Renamed);
+                return SupportClass.Single.Parse(value_Renamed);
             }
             catch (System.OverflowException)
             {

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?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCacheImpl.cs Thu Nov 19 19:15:49
2009
@@ -958,7 +958,7 @@
 							{
 								try
 								{
-									System.Single.Parse(termtext);
+                                    SupportClass.Single.Parse(termtext);
 									ret = wrapper.GetFloats(reader, field);
 								}
 								catch (System.FormatException nfe3)

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FuzzyQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FuzzyQuery.cs?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FuzzyQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FuzzyQuery.cs Thu Nov 19 19:15:49
2009
@@ -201,7 +201,7 @@
 			}
 			buffer.Append(term.Text());
 			buffer.Append('~');
-			buffer.Append(minimumSimilarity.ToString());
+			buffer.Append(SupportClass.Single.ToString(minimumSimilarity));
 			buffer.Append(ToStringUtils.Boost(GetBoost()));
 			return buffer.ToString();
 		}

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SortField.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/SortField.cs?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SortField.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SortField.cs Thu Nov 19 19:15:49 2009
@@ -662,7 +662,7 @@
 						{
 							try
 							{
-								System.Single.Parse(termtext);
+                                SupportClass.Single.Parse(termtext);
 								ret = SortField.FLOAT;
 							}
 							catch (System.FormatException nfe3)

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/CheckHits.cs?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs Thu Nov 19 19:15:49 2009
@@ -378,7 +378,7 @@
 							int k2 = descr.IndexOf(" ", k1);
 							try
 							{
-								x = System.Single.Parse(descr.Substring(k1, (k2) - (k1)).Trim());
+                                x = SupportClass.Single.Parse(descr.Substring(k1, (k2) -
(k1)).Trim());
 								if (descr.Substring(k2).Trim().Equals("times others of:"))
 								{
 									maxTimesOthers = true;

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/Function/FunctionTestSetup.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/Function/FunctionTestSetup.cs?rev=882256&r1=882255&r2=882256&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/Function/FunctionTestSetup.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/Function/FunctionTestSetup.cs Thu Nov 19
19:15:49 2009
@@ -145,7 +145,7 @@
 		// extract expected doc score from its ID Field: "ID7" --> 7.0
 		protected internal virtual float ExpectedFieldScore(System.String docIDFieldVal)
 		{
-			return System.Single.Parse(docIDFieldVal.Substring(2));
+            return SupportClass.Single.Parse(docIDFieldVal.Substring(2));
 		}
 		
 		// debug messages (change DBG to true for anything to print) 



Mime
View raw message