[ 
https://issues.apache.org/jira/browse/SOLR-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071606#comment-13071606
 ] 

Matteo Melli commented on SOLR-2658:
------------------------------------

Some uses cases need the ability to manipulate the format of the timestamp used 
in DeltaImports. One example for the use of this improvement could be but are 
not limited to the use of miliseconds (MySQL don't but MariaDB support it) in a 
system where updates are on the fly, or maybe the use of some database with 
different format.

It could be configured in an optional parameter of xml configuration file for 
the DataImporthandler:

<dataConfig>
    <dataSource />

    <timestamp format="yyyy-MM-dd HH:mm:ss.SSS" />
        
    <document>
        <entity />
    <document>
</dataConfig>

> dataimport.properties : change datetime format 
> -----------------------------------------------
>
>                 Key: SOLR-2658
>                 URL: https://issues.apache.org/jira/browse/SOLR-2658
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4.1, 3.3
>            Reporter: Frédéric AUGUSTE
>            Priority: Minor
>
> I have to use URLDataSource  in order to index an "Atom Feed".
> The REST API provided specify a "start time" parameter formated in UTC-Z 
> (RFC3339).
> The dataimporter last index time parameter is not in this format.
> Is it possible to improve solr in order to specify the datetime format ?
> Class : org.apache.solr.handler.dataimport.DataImporter#DATE_TIME_FORMAT
> Current value :
>       return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
> Regards,

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to