Not sure why the date is not recognized. But to parse alternative formats, you can create a custom UpdateRequestProcessor with a number of formats to accept.
That's part of how "schema less" mode works, you can explore that by checking solrconfig.xml Regards, Alex On Sat., May 15, 2021, 5:42 a.m. WORK Gaétan QUENTIN, < work.gaetan.quen...@gmail.com> wrote: > Hi, > > > I have a problem with dateformat not recognized in ods document: > > Environment: > > ------------------ > > > ubuntu 20.04, lxd container > > openjdk version "14.0.2" 2020-07-14 > > solr 8.8.2 > > > Problem: > > ---------- > > Indexer fails with a LibreOffice document .ods file: > > SimplePostTool: WARNING: Response: { > "responseHeader":{ > "status":400, > "QTime":552}, > "error":{ > "metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","org.apache.solr.common.SolrException"], > "msg":"ERROR: [doc=XXX.ods] Error adding field > 'last_modified'='2019-01-08T00:22:05.772138594' msg=Invalid Date > String:'2019-01-08T00:22:05.772138594'", > "code":400}} > > But i don't understand why: the date format looks ok for me. > > The doc says that subseconds would be truncated if too long, and Z for > utc is not mandatory isn't it? > > > And question 2: how to tell solr to turn an invalid date format into a > valid one on the fly, or to recognize a new format? > > > Regards, > > Gaétan > >