lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Commented: (LUCENE-2466) fix some more locale problems in lucene/solr
Date Mon, 17 May 2010 19:24:42 GMT


Robert Muir commented on LUCENE-2466:

I talked to Hoss Man about some of these date problems, and he was of the opinion that for
Solr, the Locale should never be used for date parsing/formatting (only standard UTC/Locale.US).
So these are easy to fix.

But there is another problem, in this case the formats of floats themselves. Should they follow
the same rule in Solr, or should localized numerics formats be supported? 

   [junit] Caused by: java.lang.NumberFormatException: For input string: "<some thai digits
   [junit]     at sun.misc.FloatingDecimal.readJavaFormatString(
   [junit]     at java.lang.Float.parseFloat(
   [junit]     at org.apache.solr.util.NumberUtils.float2sortableStr(
   [junit]     at org.apache.solr.schema.SortableFloatField.toInternal(
   [junit]     at org.apache.solr.schema.FieldType.createField(
   [junit]     ... 38 more
   [junit] </result>)

Furthermore, what about DataImportHandlers use of some of the same DateMathParser stuff used
in other places in Solr? It tends to use TimeZone.getDefault/Locale.getDefault... should this
be changed?

> fix some more locale problems in lucene/solr
> --------------------------------------------
>                 Key: LUCENE-2466
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-2466.patch, LUCENE-2466.patch, LUCENE-2466_coretests.patch,
> set ANT_ARGS="-Dargs=-Duser.language=tr"
> ant clean test
> We should make sure this works across all of lucene/solr

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message