You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Felix Zimmermann <fe...@gmx.de> on 2009/12/16 17:04:36 UTC

CSV import & date modifying.

Hi,

 

when posting a CSV-file via curl to Solr, I´d like to convert a row with the
date format „30.12.2009“ (dd.mm.yyyy) into the date format accepted by Solr.
Is this possible?

 

Thanks for help

Felix.


Re: CSV import & date modifying.

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Dec 25, 2009 at 11:56 AM, Chris Hostetter
<ho...@fucit.org>wrote:

>
> : when posting a CSV-file via curl to Solr, I´d like to convert a row with
> the
> : date format „30.12.2009“ (dd.mm.yyyy) into the date format accepted by
> Solr.
> : Is this possible?
>
> not with the CSVUpdateHandler (the simple way of ingestinga CSV file) but
> I believe DataImportHandler can be configured to read from CSV files (not
> certain) nd it has a DateTransformer that can do that.
>
>
Yup, one can use a LineEntityProcessor with a RegexTransformer and
DateFormatTransformer to do that.

-- 
Regards,
Shalin Shekhar Mangar.

Re: CSV import & date modifying.

Posted by Chris Hostetter <ho...@fucit.org>.
: when posting a CSV-file via curl to Solr, I�d like to convert a row with the
: date format �30.12.2009� (dd.mm.yyyy) into the date format accepted by Solr.
: Is this possible?

not with the CSVUpdateHandler (the simple way of ingestinga CSV file) but 
I believe DataImportHandler can be configured to read from CSV files (not 
certain) nd it has a DateTransformer that can do that.


-Hoss