Github user barrotsteindev commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/438#discussion_r212803611
--- Diff: solr/server/solr/configsets/_default/conf/solrconfig.xml ---
@@ -1141,11 +1141,13 @@
<updateProcessor class="solr.ParseDoubleFieldUpdateProcessorFactory"
name="parse-double"/>
<updateProcessor class="solr.ParseDateFieldUpdateProcessorFactory"
name="parse-date">
<arr name="format">
- <str>yyyy-MM-dd'T'HH:mm[:ss[.SSS]][z</str>
- <str>yyyy-MM-dd'T'HH:mm[:ss[,SSS]][z</str>
+ <str>yyyy-MM-dd['T'[HH:mm[:ss[.SSS]][z</str>
+ <str>yyyy-MM-dd['T'[HH:mm[:ss[,SSS]][z</str>
<str>yyyy-MM-dd HH:mm[:ss[.SSS]][z</str>
<str>yyyy-MM-dd HH:mm[:ss[,SSS]][z</str>
- <str>yyyy-MM-dd</str>
+ <str>EEE MMM d [HH:mm:ss ][z ]yyyy</str>
+ <str>EEEE, dd-MMM-yy HH:mm:ss [z</str>
--- End diff --
>And can you add a test we parse "Sun Nov 6 08:49:37 1994"
BTW, I used "Fri Oct 7 13:14:15 2005" instead, since it uses the same date
format, but there is a helper method to generate this instant in
ParsingFieldUpdateProcessorsTest#inst20051007131415.
Hope it is OK.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]