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

DateField throws error on iso8601 date

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      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
          28 kB
          Hoss Man
        2. SOLR-470.patch
          31 kB
          Hoss Man
        3. SOLR-470.patch
          21 kB
          Hoss Man
        4. SOLR-470.patch
          8 kB
          Hoss Man
        5. SOLR-470.patch
          2 kB
          Noble Paul

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                pjaol patrick o'leary
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: