Solr does not enjoy this at all and indexing will result in an error:
2020-03-26 15:13:28 ERROR ftw.solr.connection Update command failed. Server responded with code 400, Invalid Date in Date Math String:'2015-04-07T14:43:60.000Z'.
This has the consequence that statistically 5‰ of the documents in solr are not indexed, or not updated correctly when ftw.solr is used. If there are more than one DateTime based date fields in solr multiply the value by the number of affected fields.
In https://github.com/4teamwork/ftw.solr/blob/16f13492f9c991eb3cb07ab8a5ce32452d5ecbc8/ftw/solr/converters.py#L7-L11 we convert
DateTime
to an ISO 8601 date format string. The code currently contains rounding errors so that anyDateTime
with milliseconds >=999501
will be converted to an ISO 8601 date format string with the string60
in the [ss] part of the date format e.g.:Will result in:
Solr does not enjoy this at all and indexing will result in an error:
This has the consequence that statistically 5‰ of the documents in solr are not indexed, or not updated correctly when
ftw.solr
is used. If there are more than oneDateTime
based date fields in solr multiply the value by the number of affected fields.