Re: Solr RSS DIH dateTimeFormat does work

2012-08-18 Thread jayantu
yes it does SimpleDateFormat sdt = new SimpleDateFormat("EEE',' dd MMM HH:mm:ss z"); try { Date myDate = sdt.parse(myDateStr); System.out.println("Parsed date: " + myDate); } catch (ParseException e) { /

Solr RSS DIH dateTimeFormat does work

2012-08-17 Thread jayantu
I have DIH for indexing RSS feeds. the problem is that the date format expected by solr is 1995-12-31T23:59:59Z while the way i see the date that comes in rss feed is 'Wed, 15 Aug 2012 14:11:27 EDT' so I used the dateTimeFormat transformer like this: The filed "pubDate" is defined as type date in