Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-470

DateField throws error on iso8601 date

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • search
    • None

    Description

      A correct iso 8601 date 2006-01-01T12:01:00Z throws an error.
      Unparseable date: "2006-01-01T12:01:00Z" at org.apache.solr.schema.DateField.toObject(DateField.java:173) at org.apache.solr.schema.DateField.toObject(DateField.java:83)

      The ThreadLocalDateFormat requires fractional seconds "yyyy-MM-dd'T'HH:mm:ss.SSS"
      to parse with simple date format. Where as the jdoc states their optional.

      Attachments

        1. SOLR-470.patch
          2 kB
          Noble Paul
        2. SOLR-470.patch
          8 kB
          Chris M. Hostetter
        3. SOLR-470.patch
          21 kB
          Chris M. Hostetter
        4. SOLR-470.patch
          31 kB
          Chris M. Hostetter
        5. SOLR-470.patch
          28 kB
          Chris M. Hostetter

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            pjaol Patrick O'Leary
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment