lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Melli (JIRA)" <>
Subject [jira] [Commented] (SOLR-2658) : change datetime format
Date Wed, 27 Jul 2011 09:00:11 GMT


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:

    <dataSource />

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

> : change datetime format 
> -----------------------------------------------
>                 Key: SOLR-2658
>                 URL:
>             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:


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

View raw message