Use the parse date update request processor:
http://lucene.apache.org/solr/4_9_0/solr-core/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html
Additional examples are in my e-book:
http://www.lulu.com/us/en/shop/jack-krupansky/solr-4x-deep-dive-early-access-release-7/ebook/product-21203548.html
-- Jack Krupansky
-----Original Message-----
From: Modassar Ather
Sent: Tuesday, August 12, 2014 7:24 AM
To: solr-user@lucene.apache.org
Subject: Modifying date format when using TrieDateField.
Hi,
I have a TrieDateField where I want to store a date in "yyyy-MM-dd" format
as my source contains the date in same format.
As I understand TrieDateField stores date in "yyyy-MM-dd'T'HH:mm:ss" format
hence the date is getting formatted to the same.
Kindly let me know:
How can I change the date format during indexing when using
TrieDateField?
How I can stop the date modification due to time zone? E.g. My
1972-07-03 date is getting changed to 1972-07-03T18:30:00Z when using
TrieDateField.
Thanks,
Modassar