Hi Bill, Previously, did you index the date in the same format as you are using now, or in the Solr format of "YYYY-MM-DDTHH:MM:SSZ"?
Regards, Edwin On Tue, 2 Apr 2019 at 00:32, Bill Tantzen <tantz...@umn.edu> wrote: > 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 >