fts-elastic
fts-elastic copied to clipboard
Date format errors in elasticsearch: failed to parse field [date] of type [date]
Can you please assist with issue I see in logs:
{"index":
{"_index":"m","_id":"23510/4f8ae61ae1902151d6120000bb28466e/[email protected]","status":400,
"error":{
"type":"document_parsing_exception",
"reason":"[1:338] failed to parse field [date] of type [date] in document with id '23510/4f8ae61ae1902151d6120000bb28466e/[email protected]'. Preview of field's value: 'Wed, 18 Jan 2023 13:00:20 +0500 (+05)'",
"caused_by":{
"type":"illegal_argument_exception",
"reason":"failed to parse date field [Wed, 18 Jan 2023 13:00:20 +0500 (+05)] with format [[EEE, ][ ]d MMM yyyy HH:mm:ss[ Z][ (z)]]",
"caused_by":{
"type":"date_time_parse_exception","reason":"Text 'Wed, 18 Jan 2023 13:00:20 +0500 (+05)' could not be parsed, unparsed text found at index 31"
}
}
}
}},
"Index 31" is "Thu, 2 Sep 2021 16:48:39 +0500 (+05)"
I use elasticsearch-8.8.1
and elastic7-schema.json
from repo.
References: #7 #8