Github user dsmiley commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/428#discussion_r207577229
--- Diff:
solr/core/src/java/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.java
---
@@ -115,9 +123,10 @@ protected Object mutateValue(Object srcVal) {
for (Map.Entry<String,DateTimeFormatter> format :
formats.entrySet()) {
DateTimeFormatter parser = format.getValue();
try {
- DateTime dateTime = parser.parseDateTime(srcStringVal);
- return dateTime.withZone(DateTimeZone.UTC).toDate();
- } catch (IllegalArgumentException e) {
+ TemporalAccessor parsedTemporalDate =
parser.parseBest(srcStringVal, OffsetDateTime::from,
--- End diff --
I determined the functionality in the "extraction" module should simply go
away in lieu of this URP, so there will be no duplication.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]