lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SOLR-1762) DateFormatTransformer does not work correctly with non-default locale dates
Date Mon, 08 Feb 2010 07:01:29 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Noble Paul resolved SOLR-1762.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5
         Assignee: Noble Paul

committed : r907562
thanks tommy chheng

> DateFormatTransformer does not work correctly with non-default locale dates
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-1762
>                 URL: https://issues.apache.org/jira/browse/SOLR-1762
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>         Environment: Different locale in the imported data.
>            Reporter: tommy chheng
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: SOLR-1762.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The DateFormatTransformer assumes the default locale for date transformations. 
> If your computer or server has its language set to 'es' and the input file has "November
30, 2009", it'll throw an exception.
> Here's a reproducible test case:
> Define an XML file:
> <awardlist><award><expirationdate>November 30,  2009</expirationdate></award></awardlist>
> Define the data-config.xml with:
> <field column="expirationdate_dt" xpath="/awardslist/award/expirationdate" dateTimeFormat="MMMMM
dd, yyyy"  /> 
> It'll throw:
> Exception in thread "main" java.text.ParseException: Unparseable date: "November 30,
2009"

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


Mime
View raw message