[
https://issues.apache.org/jira/browse/CONNECTORS-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steph van Schalkwyk resolved CONNECTORS-1525.
---------------------------------------------
Resolution: Fixed
Fix Version/s: ManifoldCF 2.10
Add multi-format to offending field as follows:
"Last-Modified": {
"type": "date",
"format": "EEE, dd MMM YYYY HH:mm:ss
zzz||strict_date_optional_time||epoch_millis"
}
The "||" allows multiple formats to be specified on date fields.
> ElasticSearch Connector date issue
> ----------------------------------
>
> Key: CONNECTORS-1525
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1525
> Project: ManifoldCF
> Issue Type: Bug
> Components: Elastic Search connector
> Affects Versions: ManifoldCF 2.10
> Reporter: Steph van Schalkwyk
> Priority: Minor
> Fix For: ManifoldCF 2.10
>
>
> One data format that's apparently not being parsed correctly:
> "Mon, 09 Nov 2015 20:07:11 GM", as in
> HTTP code = 400, Response =
> \{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed
> to parse
> [Last-Modified]"}],"type":"mapper_parsing_exception","reason":"failed to
> parse
> [Last-Modified]","caused_by":\{"type":"illegal_argument_exception","reason":"Invalid
> format: \"Mon, 09 Nov 2015 20:07:11 GMT\""}},"status":400}
> I'll take a look at it in a couple of days. Not urgent.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)