In a legacy application using Solr 4.1 and solrj, I have always been able to add documents with TrieDateField types using java.util.Date objects, for instance,
doc.addField ( "date", new java.util.Date() ); having recently upgraded to Solr 7.7, and updating my schema to leverage DatePointField as my type, that code no longer works, it throws an exception with an error like: Invalid Date String: 'Sun Jul 31 19:00:00 CDT 2016' I understand that this String is not what solr expects, but in lieu of formatting the correct String, is there no longer a way to pass in a simple Date object? Was there some kind of implicit conversion taking place earlier that is no longer happening? In fact, in the some of the example code that come with the solr distribution, (SolrExampleTests.java), document timestamp fields are added using the same AddField call I am attempting to use, so I am very confused. Thanks for any advice! Regards, Bill