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 <cguz...@gmail.com> 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
>

Reply via email to