Hello manju,
Thank you! It's really helpful for me.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solved-Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4112977.html
Sent from the Solr - User mailing list archive at Nabble.com.
Hi Tariq,
I'm glad that helped you :-).
Thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solved-Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4112979.html
Sent from the Solr - User mailing list archive at Nabble.com.
2013-11-13 10:26:32
2013-11-13 10:26:32
This is exactly what I was looking for.
If you guys have any other wise please free to share. :-).
Happy Solr!!!
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4109720.html
>
> http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4107138.html
> To unsubscribe from Storing MYSQL DATETIME field in solr as String, click
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&n
On 17 Dec 2013, at 17:30 , manju16832003 wrote:
> Hi Raymond,
> You mean during the DIH execution?
Yes; as part of the sql statement.
Hi Shekhar,
Yes :-).
Thanks for the references. Will try out the options you mentioned.
Thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4107135.html
Sent from the Solr - User mailing list archive at
Hi Raymond,
You mean during the DIH execution?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4107136.html
Sent from the Solr - User mailing list archive at Nabble.com.
uot; locale="en"/>
> >
> > schema.xml
> > > multiValued="false" default="NOW" />
> >
> > Output is
> > 2012-12-05T07:38:27Z
> >
> > *Scenario - 3*
> > dih.xml (aka data-config.xml)
> >
>
is
> 2012-12-05T07:38:27Z
>
> *Scenario - 3*
> dih.xml (aka data-config.xml)
>
> transformer="DateFormatTransformer">
>
> xpath="/RDF/item/date" dateTimeFormat="<b>-MM-dd
> HH:mm:ss*" locale="en"/>
>
>
MM-dd
HH:mm:ss*" locale="en"/>
schema.xml
Output is
Thu Dec 05 15:38:27 MYT 2013
My expectation was *2012-12-05 07:38:27* (MySQL DateTime format)
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4106854.html
Sent from the Solr - User mailing list archive at Nabble.com.
y applying DateFormatTransformer. No luck :-(.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4106852.html
Sent from the Solr - User mailing list archive at Nabble.com.
On Mon, Dec 16, 2013 at 12:38 PM, manju16832003 wrote:
> Hi Shekhar,
> Thanks for replying :-).
> Yes your answer is justifiable.
> DateFormatTransformer was a good consideration. However it doesn't out the
> format I expected. Rather it outputs in the following manner
>
> Tue Jun 05 00:00:00 MYT
s way
*-- without having 'T'*
Output is the same :-)
I expected date format to be *-MM-dd HH:mm:ss*
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836p4106849.html
Sent from the Solr - User mailing list archive at Nabble.com.
the behaviour of Solr? is there a reason behind that?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836.html
> Sent from the Solr - User mailing list archive at Nabble.com.
--
Regards,
Shalin Shekhar Mangar.
hanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/Storing-MYSQL-DATETIME-field-in-solr-as-String-tp4106836.html
Sent from the Solr - User mailing list archive at Nabble.com.
15 matches
Mail list logo