You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2007/03/03 09:26:50 UTC

[jira] Created: (LUCENENET-36) Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5

Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5
--------------------------------------------------------------------------------------------------------

                 Key: LUCENENET-36
                 URL: https://issues.apache.org/jira/browse/LUCENENET-36
             Project: Lucene.Net
          Issue Type: Bug
         Environment: WindowsXP,Windows2003 - VS2005  - Lucene.NET 2.0.0.3
            Reporter: Digy
            Priority: Minor


Hi,

Can you submit a JIRA on this issue so we can keep track of it for 2.1
release.

Thanks.

-- George Aroush


-----Original Message-----
From: digy digy [mailto:digydigy@gmail.com] 
Sent: Thursday, March 01, 2007 4:49 PM
To: lucene-net-dev@incubator.apache.org
Subject: Globalization.CultureInfo

Hi all,

Countries using "," as decimal separator gets an exception in
QueryParser.cs(ex.
Lucene.NET V2.0.0.3 QueryParser.cs Line:1023)  with a query like
color~0.5    because Single.Parse("0.5") is parsed as 5 and exceeds 1.0.
[see Control Panel/Regional And Language Options] I have been using
Lucene.NET since v1.9Beta and with every release making the change in the
code as below:


  " fms = (float) System.Single.Parse(fuzzySlop.image.Substring(1)); "
to-->
  " fms = (float) System.Single.Parse(
    fuzzySlop.image.Substring(1).Replace(
     ".",
     System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)

   );


Can that fix be included in the next releases of lucene?

Regars

DIGY




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (LUCENENET-36) Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush closed LUCENENET-36.
----------------------------------


> Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5
> --------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-36
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-36
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: WindowsXP,Windows2003 - VS2005  - Lucene.NET 2.0.0.3
>            Reporter: Digy
>         Assigned To: George Aroush
>            Priority: Minor
>
> Hi,
> Can you submit a JIRA on this issue so we can keep track of it for 2.1
> release.
> Thanks.
> -- George Aroush
> -----Original Message-----
> From: digy digy [mailto:digydigy@gmail.com] 
> Sent: Thursday, March 01, 2007 4:49 PM
> To: lucene-net-dev@incubator.apache.org
> Subject: Globalization.CultureInfo
> Hi all,
> Countries using "," as decimal separator gets an exception in
> QueryParser.cs(ex.
> Lucene.NET V2.0.0.3 QueryParser.cs Line:1023)  with a query like
> color~0.5    because Single.Parse("0.5") is parsed as 5 and exceeds 1.0.
> [see Control Panel/Regional And Language Options] I have been using
> Lucene.NET since v1.9Beta and with every release making the change in the
> code as below:
>   " fms = (float) System.Single.Parse(fuzzySlop.image.Substring(1)); "
> to-->
>   " fms = (float) System.Single.Parse(
>     fuzzySlop.image.Substring(1).Replace(
>      ".",
>      System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)
>    );
> Can that fix be included in the next releases of lucene?
> Regars
> DIGY

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (LUCENENET-36) Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush resolved LUCENENET-36.
------------------------------------

    Resolution: Fixed

Fixed for Apache Lucene.Net 2.0 build 004

> Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5
> --------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-36
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-36
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: WindowsXP,Windows2003 - VS2005  - Lucene.NET 2.0.0.3
>            Reporter: Digy
>         Assigned To: George Aroush
>            Priority: Minor
>
> Hi,
> Can you submit a JIRA on this issue so we can keep track of it for 2.1
> release.
> Thanks.
> -- George Aroush
> -----Original Message-----
> From: digy digy [mailto:digydigy@gmail.com] 
> Sent: Thursday, March 01, 2007 4:49 PM
> To: lucene-net-dev@incubator.apache.org
> Subject: Globalization.CultureInfo
> Hi all,
> Countries using "," as decimal separator gets an exception in
> QueryParser.cs(ex.
> Lucene.NET V2.0.0.3 QueryParser.cs Line:1023)  with a query like
> color~0.5    because Single.Parse("0.5") is parsed as 5 and exceeds 1.0.
> [see Control Panel/Regional And Language Options] I have been using
> Lucene.NET since v1.9Beta and with every release making the change in the
> code as below:
>   " fms = (float) System.Single.Parse(fuzzySlop.image.Substring(1)); "
> to-->
>   " fms = (float) System.Single.Parse(
>     fuzzySlop.image.Substring(1).Replace(
>      ".",
>      System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)
>    );
> Can that fix be included in the next releases of lucene?
> Regars
> DIGY

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (LUCENENET-36) Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush reassigned LUCENENET-36:
--------------------------------------

    Assignee: George Aroush

> Countries using "," as decimal separator gets an exception in QueryParser.cs with a query like color~0.5
> --------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-36
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-36
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: WindowsXP,Windows2003 - VS2005  - Lucene.NET 2.0.0.3
>            Reporter: Digy
>         Assigned To: George Aroush
>            Priority: Minor
>
> Hi,
> Can you submit a JIRA on this issue so we can keep track of it for 2.1
> release.
> Thanks.
> -- George Aroush
> -----Original Message-----
> From: digy digy [mailto:digydigy@gmail.com] 
> Sent: Thursday, March 01, 2007 4:49 PM
> To: lucene-net-dev@incubator.apache.org
> Subject: Globalization.CultureInfo
> Hi all,
> Countries using "," as decimal separator gets an exception in
> QueryParser.cs(ex.
> Lucene.NET V2.0.0.3 QueryParser.cs Line:1023)  with a query like
> color~0.5    because Single.Parse("0.5") is parsed as 5 and exceeds 1.0.
> [see Control Panel/Regional And Language Options] I have been using
> Lucene.NET since v1.9Beta and with every release making the change in the
> code as below:
>   " fms = (float) System.Single.Parse(fuzzySlop.image.Substring(1)); "
> to-->
>   " fms = (float) System.Single.Parse(
>     fuzzySlop.image.Substring(1).Replace(
>      ".",
>      System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator)
>    );
> Can that fix be included in the next releases of lucene?
> Regars
> DIGY

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.