Hi Karl, I have created a pull request on github. You can see the problem from here: https://github.com/apache/manifoldcf/pull/10/commits/6a71a44ead5507c00302cb3a0a6a96d2bd2a02ce
2016-11-20 19:25 GMT+03:00 Karl Wright <[email protected]>: > The code for formatting a date is here: > > >>>>>> > public static String formatISO8601Date(Date dateValue) > { > java.text.DateFormat df = new > java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", > Locale.ROOT); > df.setTimeZone(TimeZone.getTimeZone("GMT")); > return df.format(dateValue); > } > > <<<<<< > > The code that fills in the modified_date attribute in the Solr connector > is here: > > >>>>>> > if ( modifiedDateAttributeName != null ) > { > Date date = document.getModifiedDate(); > if ( date != null ) > { > outputDoc.addField( modifiedDateAttributeName, > DateParser.formatISO8601Date( date ) ); > } > } > <<<<<< > > I can't see any way that a number could be prepended to this. > > Karl > > > On Sun, Nov 20, 2016 at 11:08 AM, Cihad Guzel <[email protected]> wrote: > >> Hi, >> >> I use SharedDrive and Solr connector. I run my job and I have seen >> invalid date format in modified_date field in my Solr index. Otherwise the >> size metadata is mising in solr index. The invalid metadata as >> follow: "modified_date": "102400 2016-11-17T13:21:22.163Z" >> >> "102400" is unnecessary value and it should not be added in >> modified_date. I found the problem and edited it. I will create a pull >> request on github. >> >> -- >> Kind Regards >> Cihad Güzel >> > > -- Teşekkürler Cihad Güzel
