You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by si...@apache.org on 2012/06/14 20:25:04 UTC
svn commit: r1350362 -
/incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs
Author: sisve
Date: Thu Jun 14 18:25:04 2012
New Revision: 1350362
URL: http://svn.apache.org/viewvc?rev=1350362&view=rev
Log:
LUCENENET-490, call Support.Single.Parse for culture insensitivity
Modified:
incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs
Modified: incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs?rev=1350362&r1=1350361&r2=1350362&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs (original)
+++ incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs Thu Jun 14 18:25:04 2012
@@ -1412,7 +1412,7 @@ namespace Lucene.Net.QueryParsers
{
try
{
- float f = float.Parse(boost.image);
+ float f = Single.Parse(boost.image);
q.Boost = f;
}
catch (Exception ignored)
@@ -1509,7 +1509,7 @@ namespace Lucene.Net.QueryParsers
float fms = fuzzyMinSim;
try
{
- fms = float.Parse(fuzzySlop.image.Substring(1));
+ fms = Single.Parse(fuzzySlop.image.Substring(1));
}
catch (Exception)
{
@@ -1673,7 +1673,7 @@ namespace Lucene.Net.QueryParsers
{
try
{
- s = (int)float.Parse(fuzzySlop.image.Substring(1));
+ s = (int)Single.Parse(fuzzySlop.image.Substring(1));
}
catch (Exception ignored)
{
@@ -1692,7 +1692,7 @@ namespace Lucene.Net.QueryParsers
float f = (float)1.0;
try
{
- f = float.Parse(boost.image);
+ f = Single.Parse(boost.image);
}
catch (Exception ignored)
{